Memory Leak in mm, slub Package
Summary
GSD-2021-1002011: mm, slub: fix potential memoryleak in kmem_cache_open(). Affects Kernel versions >= 210e7a43fa905bccafa9bb5966fba1d71f33eb8b, < 4f5d1c29cfab5cb0ab885059818751bdef32e2bb. 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 mm, slub package is a component of the Linux Kernel, which is responsible for managing memory allocation and deallocation. It provides a memory management subsystem that allows efficient allocation and deallocation of memory blocks. The slub allocator is a slab allocator implementation used by the mm subsystem to manage kernel memory caches. It is designed to be fast and efficient, providing a high-performance memory allocation mechanism for the kernel. However, a vulnerability has been discovered in the kmem_cache_open() function of the slub allocator, which can lead to potential memory leaks.
Vulnerability Detail
The vulnerability in the mm, slub package arises from a potential memory leak in the kmem_cache_open() function. When this function is called to open a kernel memory cache, there is a possibility that memory allocated for the cache may not be properly deallocated under certain conditions. This can result in a gradual accumulation of memory leaks over time, leading to memory exhaustion and potential system instability. Attackers may be able to exploit this vulnerability to cause denial-of-service (DoS) conditions or other memory-related issues. The vulnerability was introduced in version v4.8 of the Linux Kernel and has been fixed in version v5.4.156.
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. The recommended approach is to update the Linux Kernel to the fixed version.
Conclusion
The mm, slub package in the Linux Kernel is vulnerable to a memory leak issue in the kmem_cache_open() function. This vulnerability can lead to memory exhaustion and potential system instability. It is recommended to update the Linux Kernel to version v5.4.156 or later to fix this vulnerability. Users can also use Vulert's playground (https://vulert.com/scanner) to check if their application is affected by this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to memory leaks, which can result in memory exhaustion and potential system instability. Attackers may be able to exploit this vulnerability to cause denial-of-service (DoS) conditions or other memory-related issues.
You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability without requiring access to the code or installation.
The recommended fix is to update the Linux Kernel to version v5.4.156 or later. Instructions for building and installing the kernel can be found in the official repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/).
There are no known exploits for this vulnerability at the moment. However, it is important to apply the fix as soon as possible to mitigate the risk.
This vulnerability is not specifically mentioned to be exploitable remotely. However, it is still recommended to apply the fix to prevent any potential exploitation.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.