Stack Corruption Vulnerability in Linux Kernel due to BPF Memory Allocation
Summary
DEBIAN-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(). Affects linux versions < 6.11.7-1. Fixed in 6.11.7-1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Linux kernel is the core component of many operating systems, providing essential services for all other parts of the system. It manages hardware resources and enables communication between software and hardware. The kernel is crucial for system stability and performance. This vulnerability affects the BPF (Berkeley Packet Filter) subsystem, which is used for network packet filtering and monitoring. The issue arises from improper validation of memory allocation parameters, potentially leading to severe system instability.
Vulnerability Detail
In the Linux kernel, a vulnerability has been identified in the BPF subsystem, specifically in the function bpf_iter_bits_new(). The vulnerability stems from a lack of validation for the variable nr_words, which can lead to multiplication overflow. For instance, if nr_words is set to 0x0400-0001, it can cause nr_bits to become 64, resulting in stack corruption during memory read operations. This flaw can compromise system integrity and lead to unexpected behavior or crashes.
How To Fix
Minimum fixed version
6.11.7-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade linux
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the patch by updating the package as described above.
Conclusion
The vulnerability identified in the Linux kernel's BPF subsystem poses a significant risk due to potential stack corruption. Users are strongly encouraged to update their systems to the patched version to ensure stability and security. Monitoring tools like Vulert can assist in identifying vulnerabilities in open-source software.
See every vulnerability recorded for linux →
FAQ
The vulnerability is a stack corruption issue in the Linux kernel's BPF subsystem due to improper validation of memory allocation parameters.
Exploitation of this vulnerability can lead to system instability, unexpected behavior, or crashes, potentially compromising the integrity of the system.
Yes, a patch is available in version 6.11.7-1 of the Linux package. Users are advised to update to this version or later.
While there are no specific workarounds, it is crucial to plan for an update as soon as possible to mitigate the risk associated with this vulnerability.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using a manifest file like package-lock.json. You can also check your application against this vulnerability using the Vulert playground without any signup.
References
Related vulnerabilities
Recent vulnerabilities recorded for linux.