Linux · Linux Kernel · CVE-2025-22127
**Name of the Vulnerable Software and Affected Versions**
Linux kernel versions prior to the fixed version
**Description**
A potential deadloop issue in the Linux kernel's f2fs file system has been resolved. The problem occurred when the `f2fs prepare compress overwrite()` function looped reading compressed cluster pages due to an IO error, blocking all other writeback tasks. This issue was reported by Jan Prusakowski while running xfstests on the linux-next kernel. The root cause was identified as the function holding the `.writepages` lock while looping, causing the blockage.
**Recommendations**
To resolve this issue, apply the changes that add `f2fs handle page eio()` in `prepare compress overwrite()` to detect IO errors and detect `cp error` earlier in `f2fs read multi pages()`. As a temporary workaround, consider disabling the compression feature in the f2fs file system until a patch is available. Update to a newer version of the Linux kernel that includes the fix for this issue.