CVE-2026-100094: f2fs: fix defragment writeback range truncation on 32-bit
f2fs: fix defragment writeback range truncation on 32-bit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1
Event History
Frequently Asked Questions
Which systems are affected by this issue?
The issue affects 32-bit Linux kernel builds using f2fs when defragmenting files larger than 4 GiB. The truncation occurs because the page-offset values are shifted in 32-bit arithmetic before being passed as file offsets.
What conditions trigger the faulty writeback range?
A defragmentation operation must be performed on a sufficiently large file. For a 5 GiB file, only the first 1 GiB may be flushed before block movement; for an 8 GiB file, the computed end can become -1 and cause writeback over the full possible range.
What is the practical consequence of the bug?
Dirty pages outside the incorrectly calculated writeback range can remain unwritten when the file's blocks are moved during defragmentation. This creates a consistency risk for affected large files.
How is the issue corrected?
The fix casts the start and end page indices to loff_t before shifting by PAGE_SHIFT, ensuring that the writeback offsets are computed with sufficient width on 32-bit kernels.