CVE-2024-41935 f2fs: fix to shrink read extent node in batches

High 7.1 Published Updated

A flaw in the Linux kernel f2fs filesystem can cause a kernel hang during extent tree shrinking, 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-41935?

CVE-2024-41935 is a high-severity denial of service vulnerability in Linux kernel, published on 11 Jan 2025. 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:

f2fs: fix to shrink read extent node in batches

We use rwlock to protect core structure data of extent tree during its shrink, however, if there is a huge number of extent nodes in extent tree, during shrink of extent tree, it may hold rwlock for a very long time, which may trigger kernel hang issue.

This patch fixes to shrink read extent node in batches, so that, critical region of the rwlock can be shrunk to avoid its extreme long time hold.

Weakness: CWE-125

Which versions are affected by CVE-2024-41935?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-41935?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-41935 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-41935, DEBIAN-CVE-2024-41935, GHSA-mrcm-jxqx-2mxp, ROOT-OS-DEBIAN-11-CVE-2024-41935, ROOT-OS-DEBIAN-12-CVE-2024-41935, ROOT-OS-UBUNTU-2204-CVE-2024-41935 and 1 more.

Is CVE-2024-41935 in your software?

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

Check your SBOMs for free