CVE-2026-100094
publishedf2fs: fix defragment writeback range truncation on 32-bit
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd323d005ac4a2d413128267af76bb9d71f7303da to < 465d1f88b83828f969113faef1978fe6da0ca17f · d323d005ac4a2d413128267af76bb9d71f7303da to < 159489fafc3f9a5c8b2c2c4778b93b5b7f4ee4b1 · d323d005ac4a2d413128267af76bb9d71f7303da to < c58db6d7e4ac63921940abd6c506621de78fd972 · d323d005ac4a2d413128267af76bb9d71f7303da to < 55e004e52af96801577b6c3c4d52a578f369f4b5 · d323d005ac4a2d413128267af76bb9d71f7303da to < 16cb21f3f99296c2c93da11158d2c6a3577ba370 · d323d005ac4a2d413128267af76bb9d71f7303da to < ff39a2d5d66e6cd74f04d40ac36db5952a302271 · d323d005ac4a2d413128267af76bb9d71f7303da to < 92154fe28c3701bebf75176dc5522bec62519a8f · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.5 (affected) · 0 to < 4.5 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | d323d005ac4a2d413128267af76bb9d71f7303da to < 465d1f88b83828f969113faef1978fe6da0ca17f (affected · git)d323d005ac4a2d413128267af76bb9d71f7303da to < 159489fafc3f9a5c8b2c2c4778b93b5b7f4ee4b1 (affected · git)d323d005ac4a2d413128267af76bb9d71f7303da to < c58db6d7e4ac63921940abd6c506621de78fd972 (affected · git)d323d005ac4a2d413128267af76bb9d71f7303da to < 55e004e52af96801577b6c3c4d52a578f369f4b5 (affected · git)d323d005ac4a2d413128267af76bb9d71f7303da to < 16cb21f3f99296c2c93da11158d2c6a3577ba370 (affected · git)d323d005ac4a2d413128267af76bb9d71f7303da to < ff39a2d5d66e6cd74f04d40ac36db5952a302271 (affected · git)d323d005ac4a2d413128267af76bb9d71f7303da to < 92154fe28c3701bebf75176dc5522bec62519a8f (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.5 (affected)0 to < 4.5 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/159489fafc3f9a5c8b2c2c4778b93b5b7f4ee4b1
- https://git.kernel.org/stable/c/16cb21f3f99296c2c93da11158d2c6a3577ba370
- https://git.kernel.org/stable/c/465d1f88b83828f969113faef1978fe6da0ca17f
- https://git.kernel.org/stable/c/55e004e52af96801577b6c3c4d52a578f369f4b5
- https://git.kernel.org/stable/c/92154fe28c3701bebf75176dc5522bec62519a8f
- https://git.kernel.org/stable/c/c58db6d7e4ac63921940abd6c506621de78fd972
- https://git.kernel.org/stable/c/ff39a2d5d66e6cd74f04d40ac36db5952a302271
Provider assertions
1Linux · cna
f2fs: fix defragment writeback range truncation on 32-bit
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 165631aca5784a25bc052c1689bfeaba310b0e7229142218456a6b6a9be00911
- Ingested
- 30 Nov 2026, 13:30:06 UTC
- Source record
- Official CVE record