Vulnerability in Kernel Package: dm stats: add cond_resched when looping over entries
Summary
GSD-2022-1003787: dm stats: add cond_resched when looping over entries. Affects Kernel versions < f00597350210ac9458e7865b176b982dfb33d8c0. 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 Kernel package is an integral part of the Linux operating system, responsible for managing the core functionalities and communication between hardware and software components. It provides essential services such as process management, memory management, and device drivers. The dm stats module within the Kernel package is used for collecting and reporting statistics related to device mapper events and operations. This vulnerability in the dm stats module could potentially allow an attacker to cause a denial-of-service (DoS) condition or execute arbitrary code with elevated privileges.
Vulnerability Detail
The vulnerability arises from a missing 'cond_resched' call when looping over entries in the dm stats module. This omission can lead to a situation where a long-running loop can monopolize the CPU, causing a DoS condition by starving other processes of CPU time. Additionally, an attacker may be able to exploit this vulnerability to execute arbitrary code with elevated privileges, potentially leading to further compromise of the system. The vulnerability has been addressed in the Linux Kernel version v5.4.197 by commit f00597350210ac9458e7865b176b982dfb33d8c0.
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
As a temporary workaround, users can disable the dm stats module if it is not required for their system. This can be done by removing or commenting out the relevant configuration options in the Kernel configuration file and rebuilding the Kernel. However, it is strongly advised to apply the official fix as soon as possible.
Conclusion
In conclusion, the dm stats module in the Kernel package is vulnerable to a missing 'cond_resched' call when looping over entries. This can result in a denial-of-service condition or arbitrary code execution. It is crucial to update the Kernel package to version v5.4.197 or later, or apply the provided fix manually. Users can also utilize the Vulert Playground at https://vulert.com/scanner to check if their system is affected by this vulnerability. For further support and assistance with vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to a denial-of-service condition or allow an attacker to execute arbitrary code with elevated privileges.
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 and the Vulert Playground will provide real-time alerts for open-source vulnerabilities.
At the time of this report, there is no known public exploit for this vulnerability. However, it is advisable to apply the fix or workaround as soon as possible to mitigate any potential risks.
Yes, you can manually apply the fix by adding the commit f00597350210ac9458e7865b176b982dfb33d8c0 to your Kernel source code and rebuilding the Kernel. However, it is recommended to update the entire Kernel package to the latest version for comprehensive security.
You can find more information about this vulnerability in the official Linux Kernel security advisory or by referring to the provided references link in the vulnerability details section.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.