CVE-2024-35793

MEDIUM

Linux Kernel < 6.7.12 - Improper Locking

Title source: rule

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

CVSS v3 5.5
EPSS 0.0003
EPSS Percentile 6.7%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE
CWE-667
Status published

Affected Products (9)

linux/linux_kernel < 6.7.12
linux/linux_kernel
linux/linux_kernel
linux/linux_kernel
linux/linux_kernel
linux/linux_kernel
linux/linux_kernel
linux/Kernel < 6.7.12linux
linux/Kernel < 6.8.3linux

Timeline

Published May 17, 2024
Tracked Since Feb 18, 2026