CVE-2024-35793
JSON

7.8high

debugfs: fix wait/cancellation handling during remove

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 8c88a474357ead632b07c70bf7f119ace8c3b39e before e88b5ae01901c4a655a53158397746334778a57b, from 8c88a474357ead632b07c70bf7f119ace8c3b39e before 3d08cca5fd0aabb62b7015067ab40913b33da906, from 8c88a474357ead632b07c70bf7f119ace8c3b39e before 952c3fce297f12c7ff59380adb66b564e2bc9b64, 6.7
Not affected: before 6.7, from 6.7.12 up to 6.7.*, from 6.8.3 up to 6.8.*, from 6.9 up to *
CVE List
linux linux_kernelfrom 6.7.1 before 6.7.12, from 6.8 before 6.8.3, 6.7NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-667

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (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

Sources

SourceRecordLicence
CVE ListCVE-2024-35793 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-35793 changed 2026-08-04Public domain