CVE-2026-64064·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: netfs: Fix netfs_invalidate_folio() to clear dirty bit if all changes gone If a streaming write is made, this will leave the relevant modified folio in a not-uptodate, but dirty state with a netfs_folio struct hung off of folio->private indicating the dirty range. Subsequently truncating the file such that the dirty data in the folio is removed, but the first part of the folio theoretically remains will cause the netfs_folio struct to be discarded... but will leave the dirty flag set. If the folio is then read via mmap(), netfs_read_folio() will see that the page is dirty and jump to netfs_read_gaps() to fill in the missing bits. netfs_read_gaps(), however, expects there to be a netfs_folio struct present and can oops because truncate removed it. Fix this by calling folio_cancel_dirty() in netfs_invalidate_folio() in the event that all the dirty data in the folio is erased (as nfs does). Also add some tracepoints to log modifications to a dirty page. This can be reproduced with something like: dd if=/dev/zero of=/xfstest.test/foo bs=1M count=1 umount /xfstest.test mount /xfstest.test xfs_io -c "w 0xbbbf 0xf96c" \ -c "truncate 0xbbbf" \ -c "mmap -r 0xb000 0x11000" \ -c "mr 0xb000 0x11000" \ /xfstest.test/foo with fscaching disabled (otherwise streaming writes are suppressed) and a change to netfs_perform_write() to disallow streaming writes if the fd is open O_RDWR: if (//(file->f_mode & FMODE_READ) || <--- comment this out netfs_is_cache_enabled(ctx)) { It should be reproducible even without this change, but if prevents the above trivial xfs_io command from reproducing it. Note that the initial dd is important: the file must start out sufficiently large that the zero-point logic doesn't just clear the gaps because it knows there's nothing in the file to read yet. Unmounting and mounting is needed to clear the pagecache (there are other ways to do that that may also work). This was initially reproduced with the generic/522 xfstest on some patches that remove the FMODE_READ restriction.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 7.0.11
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.16% — higher than 5% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 7.0.11
Fixed in: 7.0.11
How to fix this CVE
Update your Linux kernel to version 7.0.11 or later to resolve this netfs folio state management vulnerability. Systems running kernels between 6.19 and 7.0.10 should prioritize this update, as the fix ensures proper cleanup of dirty page flags when file truncation removes all modified data from a folio. Reboot your system after applying the kernel update to activate the patched version.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version and confirm if it falls within the vulnerable range (6.19.x through 7.0.10)
- Check if netfs/fscache is active on your system by running 'grep -i netfs /proc/modules' or 'cat /proc/cmdline | grep -i netfs'
- Monitor system logs for kernel oops or panic messages related to netfs_read_folio or netfs_read_gaps by running 'sudo journalctl -k | grep -i netfs'
- After patching, verify the new kernel version with 'uname -r' and confirm it is 7.0.11 or later
FAQ
What is CVE-2026-64064?
This is a kernel netfs vulnerability where truncating a file with pending dirty data causes the kernel to lose track of folio state information, leaving the dirty flag set without the associated metadata structure. This can trigger a kernel panic when the page is later accessed via memory-mapped I/O.
Is CVE-2026-64064 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available. However, it can cause denial of service through kernel crashes under specific file operations.
What versions of Kernel are affected by CVE-2026-64064?
Linux kernel versions 6.19.0 through 7.0.10 are vulnerable. The fix was introduced in kernel 7.0.11.
How do I check if my server is vulnerable to CVE-2026-64064?
Run 'uname -r' to display your kernel version. If it shows a version between 6.19 and 7.0.10, your system is vulnerable.
Does Defensia detect CVE-2026-64064?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-64064 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-64064. Free for 1 server.
Get started free