Security mailing lists by PureSourceCode

CVE-2026-100094

not scored yet

f2fs: fix defragment writeback range truncation on 32-bit

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.

Published
30 Nov 2026
Last modified
3 Dec 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= 2e6cdff4a464569b939b84710db00bf3ce8e6d53, < 465d1f88b83828f969113faef1978fe6da0ca17f; >= 09b521af56b6b6b666b3f29c21072cc24ea48ec0, < 159489fafc3f9a5c8b2c2c4778b93b5b7f4ee4b1; >= d6737d14e65ae1a26c42f1b5188ab5c6e5ed11f2, < c58db6d7e4ac63921940abd6c506621de78fd972; >= 197080156f27b6bf8cf198e9313dfbb94769c736, < 55e004e52af96801577b6c3c4d52a578f369f4b5; >= 197080156f27b6bf8cf198e9313dfbb94769c736, < 16cb21f3f99296c2c93da11158d2c6a3577ba370; >= 197080156f27b6bf8cf198e9313dfbb94769c736, < ff39a2d5d66e6cd74f04d40ac36db5952a302271; >= 197080156f27b6bf8cf198e9313dfbb94769c736, < 92154fe28c3701bebf75176dc5522bec62519a8f 465d1f88b83828f969113faef1978fe6da0ca17f, 159489fafc3f9a5c8b2c2c4778b93b5b7f4ee4b1, c58db6d7e4ac63921940abd6c506621de78fd972, 55e004e52af96801577b6c3c4d52a578f369f4b5, 16cb21f3f99296c2c93da11158d2c6a3577ba370, ff39a2d5d66e6cd74f04d40ac36db5952a302271, 92154fe28c3701bebf75176dc5522bec62519a8f
CVE List Linux Linux = 6.10

References

History

  • 3 Dec 2026 05:06 UTC · NVD: updated (other details)
  • 3 Dec 2026 04:06 UTC · CVE List: affected list changed (2 entries)
  • 30 Nov 2026 14:45 UTC · NVD: first stored (published 30 Nov 2026)
  • 30 Nov 2026 13:31 UTC · CVE List: first stored (published 30 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.