CVE-2024-35793

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.7:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.7:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.7:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.7:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.7:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.7:rc8:*:*:*:*:*:*

History

26 Sep 2025, 16:20

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
First Time Linux
Linux linux Kernel
CWE CWE-667
References () https://git.kernel.org/stable/c/3d08cca5fd0aabb62b7015067ab40913b33da906 - () https://git.kernel.org/stable/c/3d08cca5fd0aabb62b7015067ab40913b33da906 - Patch
References () https://git.kernel.org/stable/c/952c3fce297f12c7ff59380adb66b564e2bc9b64 - () https://git.kernel.org/stable/c/952c3fce297f12c7ff59380adb66b564e2bc9b64 - Patch
References () https://git.kernel.org/stable/c/e88b5ae01901c4a655a53158397746334778a57b - () https://git.kernel.org/stable/c/e88b5ae01901c4a655a53158397746334778a57b - Patch
CPE cpe:2.3:o:linux:linux_kernel:6.7:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.7:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.7:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.7:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.7:rc8:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.7:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

Information

Published : 2024-05-17 13:15

Updated : 2025-09-26 16:20


NVD link : CVE-2024-35793

Mitre link : CVE-2024-35793

CVE.ORG link : CVE-2024-35793


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-667

Improper Locking