CVE-2024-35793: debugfs: fix wait/cancellation handling during remove
In the Linux kernel, the following vulnerability has been resolved:
debugfs: fix wait/cancellation handling during remove
Ben Greear further reports deadlocks during concurrent debugfs remove while files are being accessed, even though the code in question now uses debugfs cancellations. Turns out that despite all the review on the locking, we missed completely that the logic is wrong: if the refcount hits zero we can finish (and need not wait for the completion), but if it doesn't we have to trigger all the cancellations. As written, we can never get into the loop triggering the cancellations. Fix this, and explain it better while at it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
Linux kernel debugfsto a version that resolves this vulnerability.Fixed in 29 November 2024Patch debugfs: fix wait/cancellation handling during remove
Event History
Frequently Asked Questions
What is the severity of CVE-2024-35793?
CVE-2024-35793 has been categorized with a notable severity due to potential deadlocks during concurrent debugfs remove operations.
How do I fix CVE-2024-35793?
To mitigate CVE-2024-35793, ensure you update to the patched kernel versions, such as 5.10.223-1, 5.10.226-1, 6.1.123-1, or later.
What systems are affected by CVE-2024-35793?
CVE-2024-35793 affects various versions of the Linux kernel, specifically those prior to the fixed versions released by Debian.
What are the implications of CVE-2024-35793?
The implications of CVE-2024-35793 include potential system stability issues due to deadlocks when accessing files during debugfs removals.
Who reported CVE-2024-35793?
CVE-2024-35793 was reported by Ben Greear, highlighting issues with wait and cancellation handling in the debugfs system.