---
cve: "CVE-2024-35905"
severity: "HIGH"
cvss: 7.8
epss: "0.2%"
vendor: "Linux"
kev: false
exploited: false
published: "2024-05-19 08:34:58"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-21T10:43:59+02:00"
---

# CVE-2024-35905

> 7.8 HIGH

## Beschreibung

In the Linux kernel, the following vulnerability has been resolved:

bpf: Protect against int overflow for stack access size

This patch re-introduces protection against the size of access to stack
memory being negative; the access size can appear negative as a result
of overflowing its signed int representation. This should not actually
happen, as there are other protections along the way, but we should
protect against it anyway. One code path was missing such protections
(fixed in the previous patch in the series), causing out-of-bounds array
accesses in check_stack_range_initialized(). This patch causes the
verification of a program with such a non-sensical access size to fail.

This check used to exist in a more indirect way, but was inadvertendly
removed in a833a17aeac7.

## CVSS-Vektor

```
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Lokal | good |
| AC Komplexität | Gering | bad |
| PR Privilegien | Gering | warn |
| UI Interaktion | Keine | bad |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## Patch verfügbar (OSV)

- Kernel ≥ 5.10.215
- Kernel ≥ 5.15.154
- Kernel ≥ 6.1.85
- Kernel ≥ 6.6.26
- Kernel ≥ 6.8.5

## Referenzen

- <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>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2024-35905) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
