# bpf: Protect against int overflow for stack access size

CVE record · `CVE-2024-35905`

- **Identifiers:** `CVE-2024-35905`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 19 May 2024
- **Updated:** 15 Oct 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 19 May 2024, 08:34 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: `afea95d319ccb4ad2060dece9ac5e2e364dec543 to before 9970e059af471478455f9534e8c3db82f8c5496d` (git)
  - affected: `02962684258eb53f414a8a59854767be526e6abb to before 37dc1718dc0c4392dbfcb9adec22a776e745dd69` (git)
  - affected: `b1d4d54d32ce6342f5faffe71bae736540ce7cb5 to before 98cdac206b112bec63852e94802791e316acc2c1` (git)
  - affected: `08b91babccbb168353f8d43fea0ed28a4cad568c to before 3f0784b2f1eb9147973d8c43ba085c5fdf44ff69` (git)
  - affected: `a833a17aeac73b33f79433d7cee68d5cafd71e4f to before 203a68151e8eeb331d4a64ab78303f3a15faf103` (git)
  - affected: `a833a17aeac73b33f79433d7cee68d5cafd71e4f to before ecc6a2101840177e57c925c102d2d29f260d37c8` (git)
  - affected: `1858b8a331937f3976d8482cd5f6e1f945294ad3` (git)
  - affected: `5.10.209 to before 5.10.215` (semver)
  - affected: `5.15.148 to before 5.15.154` (semver)
  - affected: `6.1.75 to before 6.1.85` (semver)
  - affected: `6.6.14 to before 6.6.26` (semver)
  - affected: `6.7.2 to before 6.8` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `6.8`
  - unaffected: `before 6.8` (semver)
  - unaffected: `5.10.215 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.154 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.85 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.26 to 6.6.*, inclusive` (semver)
  - unaffected: `6.8.5 to 6.8.*, inclusive` (semver)
  - unaffected: `6.9 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)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0022, the 13th 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 19 May 2024. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/9970e059af471478455f9534e8c3db82f8c5496d>
- <https://git.kernel.org/stable/c/37dc1718dc0c4392dbfcb9adec22a776e745dd69>
- <https://git.kernel.org/stable/c/98cdac206b112bec63852e94802791e316acc2c1>
- <https://git.kernel.org/stable/c/3f0784b2f1eb9147973d8c43ba085c5fdf44ff69>
- <https://git.kernel.org/stable/c/203a68151e8eeb331d4a64ab78303f3a15faf103>
- <https://git.kernel.org/stable/c/ecc6a2101840177e57c925c102d2d29f260d37c8>

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-35905>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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