CVE-2024-50253
CVSS 3.1 Score 5.5 of 10 (medium)
Details
Summary
CVE-2024-50253 is a vulnerability in the Linux kernel that affects the bpf (Berkeley Packet Filter) subsystem. The issue lies in the function bpf_iter_bits_new(), where the validation of nr_words is bypassed. If nr_bits multiplied by nr_words results in an overflow, stack corruption may occur due to bpf_probe_read_kernel_common, leading to potential security risks. The vulnerability is resolved by limiting nr_words to a maximum value of 511, a size derived from the current BPF memory allocator implementation. To maintain compatibility with future changes to the BPF memory allocator, developers should use the helper function bpf_mem_alloc_check_size() to check for oversized nr_bytes, and return -E2BIG instead of -ENOMEM for such cases.
Prevent cyber attacks with Recorded Future by prioritizing and patching critical vulnerabilities being exploited by threat actors targeting your industry. Book your demo to learn more.
Affected Products
- Linux Kernel
Affected Vendors
- LINUX