CVE-2026-99575: f2fs: return -EIO for a lost inode block after cp_error

Published Nov 20, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

f2fs: return -EIO for a lost inode block after cperror

After cperror, dirty node caches are dropped without being written. If such an inode was never written, its NAT entry is still NEWADDR, and reading its inode block returns -ENOENT.

f2fsgetdnodeofdata() 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 cperror or shutdown. A missing direct or indirect node is still reported as -ENOENT.

Affected Software

3 affected componentsFixes available
linux/kernel>=5.14.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5

Frequently Asked Questions

1

What conditions are required to trigger the prolonged fiemap walk?

The filesystem must have entered cp_error or shutdown, causing dirty node caches to be dropped before an inode block has ever been written. The affected inode retains a NEW_ADDR NAT entry, and a fiemap operation then encounters the missing inode block as -ENOENT and treats it as a hole.

2

What is the operational impact?

Fiemap can scan one block at a time up to maxbytes, roughly 2^30 blocks, while holding the inode lock. In the reported power-off recovery test this took hours and blocked unlink and unmount operations involving the file.

3

How does the fix change error handling?

When the inode block itself is missing after cp_error or shutdown, the fix returns -EIO rather than -ENOENT, preventing callers from interpreting the condition as a hole. Missing direct or indirect node blocks continue to return -ENOENT.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203