CVE-2024-35905
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.
How to fix
- linux linux_kernel5.10.215, 5.15.154, 6.1.85, 6.6.26, 6.8.5 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| linux linux_kernel | 5.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.9 | 5.10.215, 5.15.154, 6.1.85, 6.6.26, 6.8.5 |
| debian debian_linux | 10.0 | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.