CVE-2026-64159: netfs: Fix zeropoint update where i_size > remote_i_size
In the Linux kernel, the following vulnerability has been resolved:
netfs: Fix zeropoint update where isize > remoteisize
Fix the update of the zero point[] by netfsreleasefolio() when there is uncommitted data in the pagecache beyond the folio being released but the on-server EOF is in this folio (ie. isize > remoteisize). The update needs to limit zeropoint to remoteisize, not isize as isize is a local phenomenon reflecting updates made locally to the pagecache, not stuff written to the server. remoteisize tracks the server's isize.
[] The zero point is the file position from which we can assume that the server will just return zeros, so we can avoid generating reads.
Note that netfsinvalidatefolio() probably doesn't need fixing as zeropoint should be updated by setattr after truncation or fallocate.
Found with:
fsx -q -N 1000000 -p 10000 -o 128000 -l 600000 \ /xfstest.test/junk --replay-ops=junk.fsxops
using the following as junk.fsxops:
truncate 0x0 0x1bbae 0x82864 write 0x3ef2e 0xf9c8 0x1bbae write 0x67e05 0xcb5a 0x4e8f6 mapread 0x57781 0x85b6 0x7495f copyrange 0x5d3d 0x10329 0x54fac 0x7495f write 0x64710 0x1c2b 0x7495f mapread 0x64000 0x1000 0x7495f
on cifs with the default cache option.
It shows read-gaps on folio 0x64 failing with a short read (ie. it hits EOF) if the FMODEREAD check is commented out in netfsperformwrite():
if (//(file->fmode & FMODEREAD) || netfsiscacheenabled(ctx)) {
and no fscache. This was initially found with the generic/522 xfstest.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
On CIFS deployments using the default cache option, ensure the behavior is mitigated by avoiding generating reads for zero-point beyond remote_i_size (i.e., align zero_point updates/reads with remote_i_size rather than local i_size).
Event History
Frequently Asked Questions
What is the severity of CVE-2026-64159?
CVE-2026-64159 has a risk rating of 21, indicating a critical security vulnerability within the Linux kernel.
How do I fix CVE-2026-64159?
To fix CVE-2026-64159, update your Linux kernel to the latest version where the vulnerability has been patched.
What systems are affected by CVE-2026-64159?
CVE-2026-64159 affects various distributions of the Linux kernel, particularly those using netfs functionalities.
What kind of vulnerability is CVE-2026-64159?
CVE-2026-64159 is a vulnerability related to improper handling of zero point updates in the netfs subsystem of the Linux kernel.
Can CVE-2026-64159 lead to data loss?
Yes, CVE-2026-64159 can potentially lead to data loss due to mishandling of pagecache and file size inconsistencies.