# exec: Fix ToCToU between perm check and set-uid/gid usage

CVE record · `CVE-2024-43882`

- **Identifiers:** `CVE-2024-43882`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Weakness (CWE):** [CWE-367](https://cwe.mitre.org/data/definitions/367.html)
- **Tags:** [Race condition](https://agentprime.io/advisories/tag/race-condition.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 21 Aug 2024
- **Updated:** 15 Oct 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 21 Aug 2024, 00:10 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `9167b0b9a0ab7907191523f5a0528e3b9c288e21 to before d5c3c7e26275a2d83b894d30f7582a42853a958f` (git)
  - affected: `9167b0b9a0ab7907191523f5a0528e3b9c288e21 to before 368f6985d46657b8b466a421dddcacd4051f7ada` (git)
  - affected: `9167b0b9a0ab7907191523f5a0528e3b9c288e21 to before 15469d46ba34559bfe7e3de6659115778c624759` (git)
  - affected: `9167b0b9a0ab7907191523f5a0528e3b9c288e21 to before 9b424c5d4130d56312e2a3be17efb0928fec4d64` (git)
  - affected: `9167b0b9a0ab7907191523f5a0528e3b9c288e21 to before f6cfc6bcfd5e1cf76115b6450516ea4c99897ae1` (git)
  - affected: `9167b0b9a0ab7907191523f5a0528e3b9c288e21 to before d2a2a4714d80d09b0f8eb6438ab4224690b7121e` (git)
  - affected: `9167b0b9a0ab7907191523f5a0528e3b9c288e21 to before 90dfbba89ad4f0d9c9744ecbb1adac4aa2ff4f3e` (git)
  - affected: `9167b0b9a0ab7907191523f5a0528e3b9c288e21 to before f50733b45d865f91db90919f8311e2127ce5a0cb` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `2.6.18`
  - unaffected: `before 2.6.18` (semver)
  - unaffected: `4.19.320 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.282 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.224 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.165 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.106 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.47 to 6.6.*, inclusive` (semver)
  - unaffected: `6.10.6 to 6.10.*, inclusive` (semver)
  - unaffected: `6.11 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux) (used for this record)
- 8.4 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0024, the 15th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 21 Aug 2024. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2024-43882](https://www.cve.org/CVERecord?id=CVE-2024-43882)
- [NVD: CVE-2024-43882](https://nvd.nist.gov/vuln/detail/CVE-2024-43882)

### References from the CNA

- <https://git.kernel.org/stable/c/d5c3c7e26275a2d83b894d30f7582a42853a958f>
- <https://git.kernel.org/stable/c/368f6985d46657b8b466a421dddcacd4051f7ada>
- <https://git.kernel.org/stable/c/15469d46ba34559bfe7e3de6659115778c624759>
- <https://git.kernel.org/stable/c/9b424c5d4130d56312e2a3be17efb0928fec4d64>
- <https://git.kernel.org/stable/c/f6cfc6bcfd5e1cf76115b6450516ea4c99897ae1>
- <https://git.kernel.org/stable/c/d2a2a4714d80d09b0f8eb6438ab4224690b7121e>
- <https://git.kernel.org/stable/c/90dfbba89ad4f0d9c9744ecbb1adac4aa2ff4f3e>
- <https://git.kernel.org/stable/c/f50733b45d865f91db90919f8311e2127ce5a0cb>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2024-43882>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2024-43882/>. Everything for agents: <https://agentprime.io/llms.txt>.
