Memory Leak in cgroup due to missing cgroup_bpf_offline
Summary
GSD-2021-1002064: cgroup: Fix memory leak caused by missing cgroup_bpf_offline. Affects Kernel versions >= 2b0d3d3e4fcfb19d10f9a82910b8f0f05c56ee3e, < 01599bf7cc2b49c3d2be886cb438647dc25446ed. No fix is published. 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 affected package is the Linux Kernel, which is a critical component of the Linux operating system. It provides the core functionality and interfaces for various hardware devices, system resources, and software components. The cgroup subsystem in the Linux Kernel is responsible for organizing and managing system resources, such as CPU, memory, and I/O, for different processes or groups of processes. It ensures fair resource allocation and isolation. However, a vulnerability has been discovered in the cgroup subsystem that leads to a memory leak due to the absence of cgroup_bpf_offline functionality.
Vulnerability Detail
The vulnerability arises from the missing cgroup_bpf_offline functionality in the cgroup subsystem. This functionality is responsible for handling offline operations related to Berkeley Packet Filter (BPF) programs. Due to the absence of this functionality, a memory leak occurs when BPF programs are unloaded or when cgroup subsystems are destroyed. This memory leak can result in resource exhaustion and system instability. An attacker could potentially exploit this vulnerability to exhaust system memory and cause a denial-of-service (DoS) condition. The vulnerability was introduced in Linux Kernel version 5.10 and has been fixed in version 5.10.77.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
In conclusion, the cgroup subsystem in the Linux Kernel is vulnerable to a memory leak due to the absence of cgroup_bpf_offline functionality. This vulnerability can lead to resource exhaustion and system instability. It is recommended to update the Linux Kernel to version 5.10.77 or later to fix this issue. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to a memory leak, resource exhaustion, and system instability. It could be exploited by an attacker to cause a denial-of-service (DoS) condition.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time alerts for open-source vulnerabilities.
There is no known exploit available at the moment. However, it is advisable to apply the recommended fix as soon as possible to mitigate the risk.
No, only versions 5.10 to 5.10.76 of the Linux Kernel are affected. The vulnerability has been fixed in version 5.10.77 and later.
No, this vulnerability requires local access to the system to exploit it. However, an attacker with local access could potentially cause a denial-of-service (DoS) condition.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.