# CVE-2024-35793: debugfs: fix wait/cancellation handling during remove

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2024-05-17T12:24:56.630Z
- Modified: 2026-08-05T11:29:59.377Z
- Weaknesses: CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 6.7.1 before 6.7.12; from 6.8 before 6.8.3; 6.7

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/e88b5ae01901c4a655a53158397746334778a57b> (patch)
- <https://git.kernel.org/stable/c/3d08cca5fd0aabb62b7015067ab40913b33da906> (patch)
- <https://git.kernel.org/stable/c/952c3fce297f12c7ff59380adb66b564e2bc9b64> (patch)

## Sources

- CVE List: [CVE-2024-35793](https://www.cve.org/CVERecord?id=CVE-2024-35793), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-35793](https://nvd.nist.gov/vuln/detail/CVE-2024-35793), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-35793 · Whole record: https://cve.day/CVE-2024-35793.json · Rebuilt by cve.day 2026-11-25T22:58:40.510Z
