CVE-2026-100094

Source
https://cve.org/CVERecord?id=CVE-2026-100094
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100094.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-100094
Downstream
Published
2026-11-30T13:23:43Z
Modified
2026-11-30T15:00:27Z
Summary
f2fs: fix defragment writeback range truncation on 32-bit
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100094.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d323d005ac4a2d413128267af76bb9d71f7303da
Fixed
465d1f88b83828f969113faef1978fe6da0ca17f
Fixed
159489fafc3f9a5c8b2c2c4778b93b5b7f4ee4b1
Fixed
c58db6d7e4ac63921940abd6c506621de78fd972
Fixed
55e004e52af96801577b6c3c4d52a578f369f4b5
Fixed
16cb21f3f99296c2c93da11158d2c6a3577ba370
Fixed
ff39a2d5d66e6cd74f04d40ac36db5952a302271
Fixed
92154fe28c3701bebf75176dc5522bec62519a8f

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100094.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.5.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100094.json"