CVE-2024-50253
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
09/11/2024
Last modified:
01/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
bpf: Check the validity of nr_words in bpf_iter_bits_new()<br />
<br />
Check the validity of nr_words in bpf_iter_bits_new(). Without this<br />
check, when multiplication overflow occurs for nr_bits (e.g., when<br />
nr_words = 0x0400-0001, nr_bits becomes 64), stack corruption may occur<br />
due to bpf_probe_read_kernel_common(..., nr_bytes = 0x2000-0008).<br />
<br />
Fix it by limiting the maximum value of nr_words to 511. The value is<br />
derived from the current implementation of BPF memory allocator. To<br />
ensure compatibility if the BPF memory allocator&#39;s size limitation<br />
changes in the future, use the helper bpf_mem_alloc_check_size() to<br />
check whether nr_bytes is too larger. And return -E2BIG instead of<br />
-ENOMEM for oversized nr_bytes.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.11 (including) | 6.11.7 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc5:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



