CVE-2024-35905

HIGH

Linux Kernel - Use-After-Free in BPF Stack Access Size Validation

Title source: llm
STIX 2.1

Description

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.

Scores

CVSS v3 7.8
EPSS 0.0022
EPSS Percentile 12.7%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-129 CWE-190
Status published
Products (28)
debian/debian_linux 10.0
linux/Kernel < 5.10.215linux
linux/Kernel 5.11.0 - 5.15.154linux
linux/Kernel 5.16.0 - 6.1.85linux
linux/Kernel 6.2.0 - 6.6.26linux
linux/Kernel 6.7.0 - 6.8.5linux
Linux/Linux < 6.8
Linux/Linux 02962684258eb53f414a8a59854767be526e6abb - 37dc1718dc0c4392dbfcb9adec22a776e745dd69
Linux/Linux 08b91babccbb168353f8d43fea0ed28a4cad568c - 3f0784b2f1eb9147973d8c43ba085c5fdf44ff69
Linux/Linux 1858b8a331937f3976d8482cd5f6e1f945294ad3
... and 18 more
Published May 19, 2024
Tracked Since Feb 18, 2026