Use-after-free vulnerability in mm, slub package
Summary
GSD-2021-1002112: mm, slub: fix potential use-after-free in slab_debugfs_fops. Affects Kernel versions >= 64dd68497be76ab4e237cca06f5324e220d0f050, < 159d8cfbd0428d487c53be4722f33cdab0d25d83. 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 utilizes the SLUB (the unqueued slab allocator) subsystem to efficiently allocate and free memory objects. The SLUB subsystem maintains a list of free memory objects in a cache, allowing for faster allocation. However, a use-after-free vulnerability has been discovered in the slab_debugfs_fops function of the mm, slub package.
Vulnerability Detail
The use-after-free vulnerability in slab_debugfs_fops can be exploited by an attacker to execute arbitrary code or cause a denial-of-service condition. The vulnerability occurs when a slab cache is destroyed while it is still in use, leading to a use-after-free scenario. An attacker can manipulate the memory layout to gain control over the freed memory and potentially execute malicious code. This vulnerability was introduced in version v5.14 of the Linux Kernel and has been fixed in version v5.14.15.
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. Updating the Linux Kernel to the fixed version is the recommended solution.
Conclusion
The use-after-free vulnerability in mm, slub can pose a significant security risk, allowing attackers to execute arbitrary code or cause a denial-of-service condition. It is crucial to update the Linux Kernel to version v5.14.15 or later to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The use-after-free vulnerability in mm, slub can allow an attacker to execute arbitrary code or cause a denial-of-service 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, including this one.
Yes, a patch is available in the Linux Kernel version v5.14.15. It is recommended to update to this version to fix the vulnerability.
Yes, this vulnerability can be exploited remotely if an attacker can gain access to the affected system.
There are no known instances of this vulnerability being exploited in the wild at the time of this report.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.