Integer overflow in Linux kernel f2fs defragment writeback range on 32-bit
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel f2fs file system is affected from 4.5 before 5.15.226, and the affected range is also limited by fixes in later branches. In f2fs_defragment_range(), page offsets are 32-bit on 32-bit kernels, so the byte offset shifts overflow before they are widened, which truncates the range that gets written back. A file larger than 4 GiB can have its dirty pages left unwritten before defragmentation moves blocks, and a large enough file can make the range cover up to the maximum loff_t value. The sources do not describe an attacker requirement or any exploitation.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix defragment writeback range truncation on 32-bit f2fs_defragment_range() flushes the range it is about to defragment: filemap_write_and_wait_range(inode->i_mapping, pg_start << PAGE_SHIFT, (pg_end << PAGE_SHIFT) - 1); pg_start and pg_end are pgoff_t, 32 bits on 32-bit kernels, so both shifts are evaluated in 32 bits and truncated before they are widened to the loff_t parameters. pg_end is only capped by the file's page count, so for a file larger than 4 GiB the shift wraps. For a 5 GiB file pg_end is 1310720 and the range collapses from [0, 5 GiB) to [0, 1 GiB), leaving the rest of the dirty pages unwritten before the blocks are moved. For 8 GiB the shift yields 0, the minus one makes it (loff_t)-1, and the range becomes [0, LLONG_MAX]. The matching call in f2fs_collapse_range() already casts: filemap_write_and_wait_range(inode->i_mapping, (loff_t)index << PAGE_SHIFT, ((loff_t)pg_end << PAGE_SHIFT) - 1); Do the same here. On i386 the shift changes from "shl $0xc,%ecx" to "shld", i.e. from a 32-bit shift to a double-precision one.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Update to Linux kernel 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63, 7.3.4, or 7.4-rc1 or later, the fixed versions listed for each branch. The sources list no fixed version for Red Hat Enterprise Linux, and Red Hat rates this issue Moderate.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA Linux (Linux) Fixed in 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63, 7.3.4, 7.4-rc1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 7 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
Timeline
- 2026-11-30 Threatist record created from CVE-2026-100094
- 2026-11-30 Alias added: GHSA-cv7r-2p27-xj6g
- 2026-12-01 Affected versions changed · Red Hat
- 2026-12-01 CVSS score added · Red Hat
References
Other 7
- https://git.kernel.org/stable/c/465d1f88b83828f969113faef1978fe6da0ca17f
- https://git.kernel.org/stable/c/159489fafc3f9a5c8b2c2c4778b93b5b7f4ee4b1
- https://git.kernel.org/stable/c/c58db6d7e4ac63921940abd6c506621de78fd972
- https://git.kernel.org/stable/c/55e004e52af96801577b6c3c4d52a578f369f4b5
- https://git.kernel.org/stable/c/16cb21f3f99296c2c93da11158d2c6a3577ba370
- https://git.kernel.org/stable/c/ff39a2d5d66e6cd74f04d40ac36db5952a302271
- https://git.kernel.org/stable/c/92154fe28c3701bebf75176dc5522bec62519a8f
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-100094 · CVE Program
- CVE-2026-100094 · NVD
- GHSA-cv7r-2p27-xj6g · GitHub Advisory Database · CC BY 4.0
- CVE-2026-100094 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences