# CVE-2025-40333: f2fs: fix infinite loop in __insert_extent_tree()

- Severity: not scored yet
- 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.28%, higher than 13% of CVEs (2026-11-30)
- Published: 2025-12-09T04:09:50.051Z
- Modified: 2026-10-14T22:10:00.210Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

f2fs: fix infinite loop in __insert_extent_tree()

When we get wrong extent info data, and look up extent_node in rb tree,
it will cause infinite loop (CONFIG_F2FS_CHECK_FS=n). Avoiding this by
return NULL and print some kernel messages in that case.

(As written by CVE List.)

## Affected

- Linux Linux: from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before 765f8816d3959ef1f3f7f85e2af748594d091f40; from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before c0b9951bb2668d67eb4817bb23fc109abc08c075; from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before f4c31adcb2a0556f43776d4e51a67de88d7fb9ee; from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before 23361bd54966b437e1ed3eb1a704572f4b279e58; 3.8 (not affected: before 3.8; from 6.6.117 up to 6.6.*; from 6.12.58 up to 6.12.*; from 6.17.8 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/765f8816d3959ef1f3f7f85e2af748594d091f40>
- <https://git.kernel.org/stable/c/c0b9951bb2668d67eb4817bb23fc109abc08c075>
- <https://git.kernel.org/stable/c/f4c31adcb2a0556f43776d4e51a67de88d7fb9ee>
- <https://git.kernel.org/stable/c/23361bd54966b437e1ed3eb1a704572f4b279e58>

## Sources

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

---

Page: https://cve.day/CVE-2025-40333 · Whole record: https://cve.day/CVE-2025-40333.json · Rebuilt by cve.day 2026-11-25T22:59:08.473Z
