Use-After-Free Vulnerability in Linux Kernel's cpu5wdt Module
Summary
DEBIAN-CVE-2024-38630: In the Linux kernel, the following vulnerability has been resolved: watchdog: cpu5wdt.c: Fix use-after-free bug caused by cpu5wdt_trigger When the cpu5wdt module is removing, the origin code uses del_timer() to de-activa... Affects linux versions < 6.9.7-1. Fixed in 6.9.7-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, providing essential services for hardware and software interaction. The 'linux' package in Debian is crucial for system stability and performance. This package is frequently updated to address security vulnerabilities, ensuring the integrity and security of systems running Debian. The recent vulnerability identified as DEBIAN-CVE-2024-38630 affects the cpu5wdt module, which is responsible for managing watchdog timers for CPU monitoring.
Vulnerability Detail
In the Linux kernel, a use-after-free vulnerability has been discovered in the cpu5wdt module. This issue arises when the module is being removed, and the del_timer() function is called to deactivate a timer. If the timer handler is still executing, del_timer() cannot stop it, leading to a scenario where the port region is released by release_region(). If the timer handler then attempts to write to this released region using outb(), it results in a use-after-free condition. This vulnerability could potentially allow an attacker to execute arbitrary code or cause system instability.
How To Fix
Minimum fixed version
6.9.7-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 mentioned for this vulnerability. The best course of action is to apply the patch as soon as it becomes available.
Conclusion
The use-after-free vulnerability in the Linux kernel's cpu5wdt module poses significant risks to system stability and security. Users are strongly advised to update their systems to the patched version 6.9.7-1 to mitigate these risks. Regular updates and monitoring for vulnerabilities are essential practices for maintaining system integrity.
See every vulnerability recorded for linux →
FAQ
A use-after-free vulnerability occurs when a program continues to use a memory reference after it has been freed, potentially leading to arbitrary code execution or crashes.
You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without needing to install any software.
If exploited, this vulnerability could allow an attacker to execute arbitrary code, leading to system compromise or instability.
While the primary concern is system stability and unauthorized code execution, there is a potential risk of data loss if the system becomes unstable.
It is recommended to regularly check for and apply updates to your Linux packages to ensure that you are protected against known vulnerabilities.
References
Related vulnerabilities
Recent vulnerabilities recorded for linux.