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

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2025-01-11T12:25:09.701Z
- Modified: 2026-10-30T13:17:31.470Z
- Weaknesses: CWE-125
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before e05d3eab90d6657bdcaa40ed129e9c767ed43188; from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before 295b50e95e900da31ff237e46e04525fa799b2cf; from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before 924f7dd1e832e4e4530d14711db223d2803f7b61; from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before 3fc5d5a182f6a1f8bd4dc775feb54c369dd2c343; 3.8 (not affected: before 3.8; from 6.1.191 up to 6.1.*; from 6.6.66 up to 6.6.*; from 6.12.5 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 3.8 before 6.6.66; from 6.7 before 6.12.5

## References

- <https://git.kernel.org/stable/c/e05d3eab90d6657bdcaa40ed129e9c767ed43188>
- <https://git.kernel.org/stable/c/295b50e95e900da31ff237e46e04525fa799b2cf> (patch)
- <https://git.kernel.org/stable/c/924f7dd1e832e4e4530d14711db223d2803f7b61> (patch)
- <https://git.kernel.org/stable/c/3fc5d5a182f6a1f8bd4dc775feb54c369dd2c343> (patch)

## Sources

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

---

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