Vulnerability in Linux
CVE-2024-50253
In the Linux kernel, the following vulnerability has been resolved: bpf: Check the validity of nr_words in bpf_iter_bits_new() Check the validity of nr_words in bpf_iter_bits_new(). Without this check, when multiplication overflow occurs for nr_bits (e.g., when nr_words = 0x0400-0001, nr_bits becomes 64), stack corruption may occur due to bpf_probe_read_kernel_common(..., nr_bytes = 0x2000-0008). Fix it by limiting the maximum value of nr_words to 511. The value is derived from the current implementation of BPF memory allocator. To ensure compatibility if the BPF memory allocator's size limitation changes in the future, use the helper bpf_mem_alloc_check_size() to check whether nr_bytes is too larger. And return -E2BIG instead of -ENOMEM for oversized nr_bytes.
EPSS: 0.002 (8.5th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Linux — versions 4665415975b0827e9646cab91c61d02a6b364d59, 6.11, 0
- Linux Linux_kernel — versions 6.12
References
Frequently asked questions
- What is CVE-2024-50253?
- CVE-2024-50253 is a high-severity vulnerability in Linux. CVSS score: 7.8/10. Published 2024-11-09.
- How severe is CVE-2024-50253?
- High severity. CVSS v3 base score is 7.8 out of 10.