CVE-2026-99969: exfat: zero invalid tail on partial overwrites
In the Linux kernel, the following vulnerability has been resolved:
exfat: zero invalid tail on partial overwrites
Buffered overwrite that ends before validsize in the same filesystem block reads the entire block without IOMAPFZEROTAIL. If an existing cluster contains stale bytes beyond validsize, the synchronous read loads them into the page cache and marks the block uptodate. Subsequent buffered reads can return these bytes while isize exceeds validsize.
For example, with 512-byte blocks, validsize of 1000 and isize of 2048, a cold-cache overwrite of [900, 950) exposes stale data in [1000, 1024). Setting ZEROTAIL for this write would also erase valid data in [950, 1000).
Use iomaptruncatepage() to zero only the invalid tail at validsize before preparing such buffered overwrites. Call it after dropping slock and before iomap locks the write folio. The inode lock held by buffered writes serializes validsize against truncation and pagemkwrite.
Skip direct I/O, fault mappings and new allocations. Writes that reach validsize continue to use IOMAPFZEROTAIL.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
For exFAT buffered overwrites that end before valid_size, call iomap_truncate_page() after dropping s_lock and before preparing the overwrite, to zero only the invalid tail at valid_size. Do not apply this to direct I/O, fault mappings, or new allocations; writes that reach valid_size should continue using IOMAP_F_ZERO_TAIL.