CVE-2025-40333

published 9 Dec 2025 · updated 11 May 2026

f2fs: fix infinite loop in __insert_extent_tree()

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 23361bd54966b437e1ed3eb1a704572f4b279e58, Kernel 765f8816d3959ef1f3f7f85e2af748594d091f40, Kernel c0b9951bb2668d67eb4817bb23fc109abc08c075 and 1 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=3.8, >=98e4da8ca301e062d79ae168c67e56f3c3de3ce4 <23361bd54966b437e1ed3eb1a704572f4b279e58, >=98e4da8ca301e062d79ae168c67e56f3c3de3ce4 <765f8816d3959ef1f3f7f85e2af748594d091f40, >=98e4da8ca301e062d79ae168c67e56f3c3de3ce4 <c0b9951bb2668d67eb4817bb23fc109abc08c075, >=98e4da8ca301e062d79ae168c67e56f3c3de3ce4 <f4c31adcb2a0556f43776d4e51a67de88d7fb9ee23361bd54966b437e1ed3eb1a704572f4b279e58, 765f8816d3959ef1f3f7f85e2af748594d091f40, c0b9951bb2668d67eb4817bb23fc109abc08c075, f4c31adcb2a0556f43776d4e51a67de88d7fb9ee

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40333 severity on Zeptric[![CVE-2025-40333](https://zeptric.io/badge/cve/CVE-2025-40333.svg)](https://zeptric.io/cve/CVE-2025-40333)