Vulnerability in Kernel Package: dm stats: add cond_resched when looping over entries

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1003787: dm stats: add cond_resched when looping over entries. Affects Kernel versions < f00597350210ac9458e7865b176b982dfb33d8c0. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback