CVE-2024-35905

High

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.

SeverityHigh
CVSS7.8
Exploit probability13. percentile0.2%
ProductLinux Kernel
PublishedMay 19, 2024
First seenMay 19, 2024

How to fix

Update
  • linux linux_kernel5.10.215, 5.15.154, 6.1.85, 6.6.26, 6.8.5 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel5.10.209 ≤ v < 5.10.215, 5.15.148 ≤ v < 5.15.154, 6.1.75 ≤ v < 6.1.85, 6.6.14 ≤ v < 6.6.26, 6.7.2 ≤ v < 6.8.5, 6.95.10.215, 5.15.154, 6.1.85, 6.6.26, 6.8.5
debian debian_linux10.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.