VYPR
Unrated severityNVD Advisory· Published Dec 9, 2025· Updated Apr 15, 2026

CVE-2025-40333

CVE-2025-40333

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Infinite loop in Linux kernel f2fs filesystem's __insert_extent_tree() when processing corrupted extent data, leading to denial of service.

Vulnerability

In the Linux kernel's f2fs filesystem, the function __insert_extent_tree() can enter an infinite loop when it encounters corrupted extent information data. The issue occurs during a lookup in the red-black tree (rb tree) for an extent node, which fails to terminate correctly when the data is malformed, especially when CONFIG_F2FS_CHECK_FS is disabled.

Exploitation

An attacker with the ability to mount a crafted f2fs filesystem image or trigger corrupted extent data could cause the kernel to hang, leading to a denial of service. No authentication is required beyond access to the filesystem, making it exploitable from a local user or via a malicious storage device.

Impact

Successful exploitation results in a kernel infinite loop, causing a system hang or watchdog reset. This is a denial-of-service vulnerability that could render the system unresponsive.

Mitigation

The fix, included in upstream stable kernel commits, modifies __insert_extent_tree() to return NULL and print kernel messages when encountering invalid extent data, breaking the loop. Users should update to patched kernel versions as referenced in the stable updates [1], [2].

AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

4

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

4

News mentions

0

No linked articles in our index yet.