CVE-2026-99575: f2fs: return -EIO for a lost inode block after cp_error
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
f2fs: return -EIO for a lost inode block after cp_error
After cp_error, dirty node caches are dropped without being written. If such an inode was never written, its NAT entry is still NEW_ADDR, and reading its inode block returns -ENOENT.
f2fs_get_dnode_of_data() passes that -ENOENT up, and callers take it as a hole. Since the inode block is missing, the next offset can only advance one block, so fiemap walks block by block up to maxbytes, about 2^30 blocks, while holding the inode lock. It took hours in a power-off recovery test after shutdown and blocked unlink and umount on the file.
Return -EIO instead of -ENOENT when the inode block itself is missing after cp_error or shutdown. A missing direct or indirect node is still reported as -ENOENT.
The Linux kernel CVE team has assigned CVE-2026-99575 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.14 with commit 28607bf3aa6f9762b32dc7f1ed0488823c0651b8 and fixed in 6.12.118 with commit 9960426b20021e2a92916f7836b53ca53f4deeee Issue introduced in 5.14 with commit 28607bf3aa6f9762b32dc7f1ed0488823c0651b8 and fixed in 6.18.64 with commit 935bcf17f7052198a3ec82c55642c8e58f3a483c Issue introduced in 5.14 with commit 28607bf3aa6f9762b32dc7f1ed0488823c0651b8 and fixed in 7.3.5 with commit 86dfdf4f2aeaf68905e9b08752d72624a05dd471 Issue introduced in 5.14 with commit 28607bf3aa6f9762b32dc7f1ed0488823c0651b8 and fixed in 7.4-rc1 with commit 53b12b63304b34a3850a901c4de3cc6ad08e0aee
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99575
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/f2fs/node.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/9960426b20021e2a92916f7836b53ca53f4deeee https://git.kernel.org/stable/c/935bcf17f7052198a3ec82c55642c8e58f3a483c https://git.kernel.org/stable/c/86dfdf4f2aeaf68905e9b08752d72624a05dd471 https://git.kernel.org/stable/c/53b12b63304b34a3850a901c4de3cc6ad08e0aee