CVE-2025-40333
CBL Mariner vulnerability analysis and mitigation

Overview

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

Technical details

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

Impact

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

Mitigation and workarounds

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

Additional resources


SourceThis report was generated using AI

Related CBL Mariner vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-60082CRITICAL9.1
  • CBL Mariner logoCBL Mariner
  • perl-DBI
NoYesJul 14, 2026
CVE-2026-48863HIGH7.5
  • CBL Mariner logoCBL Mariner
  • ruby-solv
NoYesJul 16, 2026
CVE-2026-59886HIGH7.5
  • Python logoPython
  • rhel9::keylime-verifier
NoYesJul 14, 2026
CVE-2026-59885HIGH7.5
  • Python logoPython
  • kubeflow-jupyter-web-app
NoYesJul 14, 2026
CVE-2026-59884HIGH7.5
  • Python logoPython
  • pyssn1
NoYesJul 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management