
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-40333 is a denial-of-service vulnerability in the Linux kernel's F2FS (Flash-Friendly File System) subsystem caused by an infinite loop in the __insert_extent_tree() function. When incorrect extent information is processed during a red-black tree lookup for an extent_node, the system can become trapped in an endless loop when CONFIG_F2FS_CHECK_FS is disabled. The vulnerability affects the Linux kernel broadly and was published on December 9, 2025. It carries a CVSS v3.1 base score of 5.5 (Medium), reflecting a local, low-privilege attack vector with high availability impact (Feedly, MSRC).
The root cause is improper input validation within the F2FS extent tree management code (CWE-835: Loop with Unreachable Exit Condition). When the kernel receives malformed or corrupted extent information and attempts to look up an extent_node in the red-black tree via __insert_extent_tree(), the traversal logic enters an infinite loop because the erroneous data prevents a valid exit condition from being reached. This condition is only triggered when CONFIG_F2FS_CHECK_FS=n (the default in most production kernels), as the additional safety checks in that mode would catch the inconsistency earlier. The fix returns NULL and emits kernel log messages when invalid extent data is detected, breaking the loop (Feedly, MSRC).
Successful exploitation causes a denial-of-service condition by consuming CPU resources in an infinite loop, rendering the affected system unresponsive or completely non-functional. The impact is limited to availability — there is no confidentiality or integrity impact. An attacker with local, low-privilege access on a system using the F2FS filesystem can trigger this condition, potentially causing a kernel hang that requires a reboot to recover (Feedly).
Patches have been backported to multiple stable Linux kernel versions: 6.12.58, 6.6.117, 6.17.8, and 6.18. Administrators should update to the latest patched kernel version for their distribution. As a configuration-based mitigation, enabling CONFIG_F2FS_CHECK_FS provides additional safety checks that prevent the infinite loop from occurring, though this may have performance implications. Limiting local user access to systems using F2FS filesystems reduces exposure until patching is complete (Feedly, MSRC).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."