CVE-2026-99968: exfat: mark straddling folio RO and zero the post-EOF range
In the Linux kernel, the following vulnerability has been resolved:
exfat: mark straddling folio RO and zero the post-EOF range
When extending a file across a non-page-aligned EOF, the folio containing the old EOF must be marked RO so that subsequent mmap writes trigger ->pagemkwrite() and update validsize.
The straddling folio remains mapped to the same filesystem block after the file is extended. As a result, the existing writable PTE may remain in place, allowing mmap writes to bypass ->pagemkwrite() and leave validsize unchanged.
Furthermore, writes to the post-EOF range may occur between truncatepagecache() and locking the folio. So the post-EOF range should be zeroed after marking the straddling folio RO, and using truncatepagecache() to zero out the post-EOF range is redundant.
Introduce exfatpagecacheisizeextended() to mark the straddling folio RO and zero the post-EOF range after clearing writable mapping. This ensures that data written beyond the old EOF before the extension is not exposed as valid file data, and that subsequent mmap writes trigger ->pagemkwrite() to update validsize.