CVE-2025-22127: Linux kernel · f2fs: fix potential deadloop in prepare_compress_overwrite()
Affects Linux kernelSource GCVE Database
Not known to be exploited.
Data as of 30 Oct 2026, 14:06 UTC
Rated High by Threat Radar's AI analysis · No CVSS score from NVD or the CNA
Thin evidence
One scorer or noneExploitation evidence
Disclosed: evidence found.
CVE published 16 Apr 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
AI-suggested
A fix has been implemented in the Linux kernel to address this issue by improving error detection and handling in the f2fs filesystem's compression overwrite preparation code. Users should update to a Linux kernel version that includes this fix once available. No alternative mitigations or workarounds are described.
Description
A potential deadlock issue was identified and fixed in the Linux kernel's f2fs filesystem code within the prepare_compress_overwrite() function. The problem caused kernel hang during writeback operations when IO errors occurred while reading compressed cluster pages, leading to a deadloop while holding a writepages lock. This could block other writeback tasks and cause system instability under specific filesystem and mount options involving compression and quotas.
References
- git.kernel.org/stable/c/353b262268c1646a0e7c96d4ed14c5d72a30ccb4 (opens in a new tab)
- git.kernel.org/stable/c/4513843d58d8fa1daebd3817205a15309b146342 (opens in a new tab)
- git.kernel.org/stable/c/7cd460bd9e7c6e6c30a33982603f65fb5deab1e4 (opens in a new tab)
- git.kernel.org/stable/c/7215cf8ef54bdc9082dffac4662416d54961e258 (opens in a new tab)
- git.kernel.org/stable/c/3147ee567dd9004a49826ddeaf0a4b12865d4409 (opens in a new tab)