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

High 7.8 Published Updated

A race condition in the Linux kernel debugfs subsystem can cause deadlocks during concurrent file removal and access, leading to denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-35793?

CVE-2024-35793 is a high-severity vulnerability in Linux kernel, published on 17 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-667

Which versions are affected by CVE-2024-35793?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-35793?

Apply the vendor's patch.

Is CVE-2024-35793 being exploited?

There is no known exploitation of CVE-2024-35793 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-35793, DEBIAN-CVE-2024-35793, GHSA-pv8w-5hmg-8mf4, UBUNTU-CVE-2024-35793.

Is CVE-2024-35793 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free