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
CWE CWE-667
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
First Time Linux
Linux linux Kernel
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:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.7:rc4:*:*:*:*:*:*
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:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.7:rc5:*:*:*:*:*:*

21 Nov 2024, 09:20

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, se resolvió la siguiente vulnerabilidad: debugfs: corrige el manejo de espera/cancelación durante la eliminación Ben Greear informa además bloqueos durante la eliminación de debugfs concurrentes mientras se accede a los archivos, aunque el código en cuestión ahora usa cancelaciones de debugfs. Resulta que a pesar de toda la revisión sobre el bloqueo, no entendimos por completo que la lógica es incorrecta: si el recuento llega a cero, podemos finalizar (y no necesitamos esperar a que se complete), pero si no es así, tenemos que activar todos los cancelaciones. Tal como está escrito, _nunca_ podemos entrar en el ciclo que desencadena las cancelaciones. Arregla esto y explícalo mejor mientras lo haces.
References () https://git.kernel.org/stable/c/3d08cca5fd0aabb62b7015067ab40913b33da906 - () https://git.kernel.org/stable/c/3d08cca5fd0aabb62b7015067ab40913b33da906 -
References () https://git.kernel.org/stable/c/952c3fce297f12c7ff59380adb66b564e2bc9b64 - () https://git.kernel.org/stable/c/952c3fce297f12c7ff59380adb66b564e2bc9b64 -
References () https://git.kernel.org/stable/c/e88b5ae01901c4a655a53158397746334778a57b - () https://git.kernel.org/stable/c/e88b5ae01901c4a655a53158397746334778a57b -

17 May 2024, 18:35

Type Values Removed Values Added
New CVE

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