CVE-2024-35905

HIGH

Linux Kernel < 5.10.215 - Integer Overflow

Title source: rule

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.0003
EPSS Percentile 8.0%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE
CWE-190 CWE-129
Status published

Affected Products (8)

linux/linux_kernel < 5.10.215
linux/linux_kernel
debian/debian_linux
linux/Kernel < 5.10.215linux
linux/Kernel < 5.15.154linux
linux/Kernel < 6.1.85linux
linux/Kernel < 6.6.26linux
linux/Kernel < 6.8.5linux

Timeline

Published May 19, 2024
Tracked Since Feb 18, 2026