CVE-2026-99916: mm/truncate: fix the zeroing end of pagecache_isize_extended()

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

mm/truncate: fix the zeroing end of pagecacheisizeextended()

A process that extends a file by 4 GiB or more past a dirty folio, on a file system whose block size is smaller than the page size (ext4 with 1k blocks), reads back the bytes it wrote through a shared mapping beyond the old end of file instead of zeroes, and a later write into that block carries them to the disk. With the example of commit 52aecaee1c26 ("mm: zero range of eof folio exposed by inode size extension") and the truncate taken 4 GiB further (pwrite 2k at 0, mmap the first page and write 'X' over [2k, 4k), truncate(2) to 4 GiB + 2k), the read of [2k, 4k) returns the 2048 'X' bytes, and a pwrite of 16 bytes at 3k followed by fsync() and a remount leaves 1008 'X' bytes on the disk in [3k+16, 4k). No privilege is needed, and every size extension of 4 GiB or more reaches it: truncate(2)/ftruncate(2) through truncatesetsize(), writes beyond the end of file through genericwriteend(), ext4, iomap, btrfs, exfat, ntfs, afs and orangefs. Affected since v6.13.

pagecacheisizeextended() zeroes the part of the dirty folio straddling the old end of file that the size extension exposes, from the old size to the new size or the end of the folio, whichever comes first:

end = mint(unsigned int, to - foliopos(folio), foliosize(folio));

mint() converts both operands to unsigned int before comparing, so the lofft difference to - foliopos(folio) is reduced modulo 2^32 first. When the file grows by 4 GiB or more past the folio, end is that residue instead of foliosize(folio): below offset nothing is zeroed, above it only [offset, end) is. The bytes beyond the old end of file stay in the dirty folio and, now inside isize, are file data.

Compare in lofft; the result is at most foliosize(folio) and fits end.

Found while formally verifying pagecacheisizeextended() against the kernel binary.

Affected Software

1 affected component
Linux Linux kernel>=6.13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In pagecache_isize_extended(), compare the size difference in loff_t before computing end; the result is at most folio_size(folio) and fits in end.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:18 PM
Data Sourced
via MITRE·01:18 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203