CVE-2026-139259: ntfs: clear stale pagecache on initialized-size extension
In the Linux kernel, the following vulnerability has been resolved:
ntfs: clear stale pagecache on initialized-size extension
iomapzerorange() skips holes, so EOF-polluted cache data can survive gap zeroing. Discard the uninitialized cache range before advancing initializedsize so later reads cannot expose stale bytes.
Perform the cleanup in ntfsextendinitializedsize() so both file writes and shared writable mmap preparation use it. Hold the invalidate lock while reading initializedsize, clearing the cache, zeroing the gap, and updating the attribute. Release the lock on every exit path.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Operational
In ntfs_extend_initialized_size(), hold the invalidate lock while reading initialized_size, discard stale page-cache data in the uninitialized range, zero the gap before updating initialized_size, and release the lock on every exit path.