CVE-2025-40333Published Dec 9, 2025 · Dec 9Updated Oct 28
f2fs: fix infinite loop in __insert_extent_tree()
Linux
Unrated
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The f2fs __insert_extent_tree() function can enter an infinite loop when it encounters incorrect extent information while CONFIG_F2FS_CHECK_FS is disabled. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running Linux kernels with f2fs should check their versions; affected versions are not specified.