Kernel Vulnerability in Linux Package: Flushing Stats in RCU Read Section
Summary
DEBIAN-CVE-2024-41033: In the Linux kernel, the following vulnerability has been resolved: cachestat: do not flush stats in recency check syzbot detects that cachestat() is flushing stats, which can sleep, in its RCU read section (see [1]). Affects linux versions < 6.9.10-1. Fixed in 6.9.10-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 a core component of the operating system that manages hardware, system resources, and provides essential services for software applications. It is known for its stability, performance, and flexibility, making it a popular choice for various distributions, including Debian. The vulnerability in question affects the Linux package in Debian versions 13 and 14, specifically related to the cachestat functionality, which is responsible for managing cache statistics.
Vulnerability Detail
In the Linux kernel, a vulnerability has been identified in the cachestat function, where statistics are flushed during a recency check within an RCU (Read-Copy-Update) read section. This can lead to unexpected behavior as the flushing operation can sleep, potentially causing deadlocks or performance degradation. The issue arises during the workingset_test_recent() step, which checks if a folio's eviction is recent. The vulnerability has been resolved by moving the stat flushing step outside the RCU read section and skipping it during the recency check.
How To Fix
Minimum fixed version
6.9.10-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
There are no specific workarounds mentioned for this vulnerability. The recommended action is to apply the patch by updating to the fixed version of the Linux package.
Conclusion
The identified vulnerability in the Linux kernel's cachestat function poses a risk to systems running Debian versions 13 and 14. It is crucial for users to update to the patched version 6.9.10-1 to safeguard their systems against potential performance issues and deadlocks. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for linux →
FAQ
The vulnerability involves flushing cache statistics during an RCU read section, which can lead to performance issues and potential deadlocks.
The vulnerability affects Debian versions 13 and 14 of the Linux package prior to version 6.9.10-1.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected.
While there are no specific workarounds, it is advisable to prioritize the update to mitigate the risk associated with this vulnerability.
Detailed information about the vulnerability can be found in the Debian CVE database at https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-41033.json.
References
Related vulnerabilities
Recent vulnerabilities recorded for linux.