CVE-2024-35793

debugfs: fix wait/cancellation handling during remove

State
Published
Severity
7.8 High
Published
May 17, 2024
Updated
Aug 5, 2026
Reserved
May 17, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 8c88a474357ead632b07c70bf7f119ace8c3b39e to before e88b5ae01901c4a655a53158397746334778a57bAffected
  • 8c88a474357ead632b07c70bf7f119ace8c3b39e to before 3d08cca5fd0aabb62b7015067ab40913b33da906Affected
  • 8c88a474357ead632b07c70bf7f119ace8c3b39e to before 952c3fce297f12c7ff59380adb66b564e2bc9b64Affected
LinuxLinux
  • 6.7Affected
  • before 6.7Not affected
  • 6.7.12 through 6.7.*Not affected
  • 6.8.3 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.