Memory Leak Vulnerability in Linux Kernel - CVE-2022-49902
Summary
CVE-2022-49902: In the Linux kernel, the following vulnerability has been resolved: block: Fix possible memory leak for rq_wb on add_disk failure kmemleak reported memory leaks in device_add_disk(): kmemleak: 3 new suspected memory leak... Affects linux versions < 6.0.8-1. Fixed in 6.0.8-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, responsible for managing hardware resources and providing essential services to software applications. It is widely used in various environments, from servers to embedded systems. This vulnerability affects the Linux kernel versions prior to 6.0.8-1, specifically in Debian 12 and 13, where a memory leak can occur during the disk addition process, potentially leading to resource exhaustion.
Vulnerability Detail
CVE-2022-49902 is a memory leak vulnerability in the Linux kernel that arises when the device_add_disk function fails to properly release memory allocated during the wbt_enable_default process. This oversight can lead to unreferenced memory objects persisting in the system, which can accumulate over time, resulting in degraded performance or system crashes due to resource exhaustion. The vulnerability is particularly concerning in environments where disk operations are frequent, as it can lead to significant memory leaks that may not be immediately apparent.
How To Fix
Minimum fixed version
6.0.8-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 provided for this vulnerability. The best course of action is to apply the patch by updating the kernel as mentioned above.
Conclusion
CVE-2022-49902 is a significant memory leak vulnerability in the Linux kernel that can lead to performance issues and system instability. Updating to the patched version is crucial to mitigate the risks associated with this vulnerability. Regular monitoring and timely updates are essential for maintaining system security.
See every vulnerability recorded for linux →
FAQ
CVE-2022-49902 is a memory leak vulnerability in the Linux kernel that can lead to resource exhaustion due to unreferenced memory objects.
If your system is running an affected version of the Linux kernel, it may experience performance degradation or crashes due to memory leaks during disk operations.
The vulnerability affects Linux kernel versions prior to 6.0.8-1 in Debian 12 and 13.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
While there are no specific workarounds, it is advisable to monitor your system for unusual behavior and plan to update the kernel as soon as possible.
Related vulnerabilities
Recent vulnerabilities recorded for linux.