What’s Vulnerable › Vulnerabilities
CVE-2024-35793: debugfs: fix wait/cancellation handling during remove
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-17 · updated 2026-08-04
- Weakness: CWE-667
Description
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 products
- Linux kernel: from 6.7.1 before 6.7.12; from 6.8 before 6.8.3; 6.7, 6.7-rc4, 6.7-rc5, 6.7-rc6, 6.7-rc7, 6.7-rc8 — fixed in 6.7.12, 6.8.3
How to fix
Upgrade to a fixed version: Linux kernel 6.7.12, 6.8.3. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/3d08cca5fd0aabb62b7015067ab40913b33da906
- https://git.kernel.org/stable/c/952c3fce297f12c7ff59380adb66b564e2bc9b64
- https://git.kernel.org/stable/c/e88b5ae01901c4a655a53158397746334778a57b
- https://git.kernel.org/stable/c/3d08cca5fd0aabb62b7015067ab40913b33da906
- https://git.kernel.org/stable/c/952c3fce297f12c7ff59380adb66b564e2bc9b64
- https://git.kernel.org/stable/c/e88b5ae01901c4a655a53158397746334778a57b
Get alerted when CVE-2024-35793 or the next vulnerability affects your stack