VDB

CVE-2026-64064

CVE-2026-64064 PUBLISHED

netfs: Fix netfs_invalidate_folio() to clear dirty bit if all changes gone

Reported by linux · Published July 19, 2026

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.

EPSS 0.12% · 2.0th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
microvm-kernel6.18Amazon Linux1:6.18.35-68.127.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.92-122.166.amzn2023
python3-perf6.12Amazon Linux1:6.12.92-122.166.amzn2023

Risk scores

EPSS Score
0.12%
2.0th percentile

Affected products

VendorProductVersions
LinuxLinux9ebff83e648148b9ece97d4e4890dd84ca54d6ce, 9ebff83e648148b9ece97d4e4890dd84ca54d6ce, 9ebff83e648148b9ece97d4e4890dd84ca54d6ce
LinuxLinux6.8, 0, 6.12.92
amazon:2023microvm-kernel6.180
amazon:2023kernel6.12-tools-devel0
amazon:2023python3-perf6.120
linuxlinux_kernel6.8, 6.8, 6.8
amazon:2023kernel-livepatch-6.18.35-68.1270
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.18-tools-devel0
LinuxLinux7.1, 9ebff83e648148b9ece97d4e4890dd84ca54d6ce, 9ebff83e648148b9ece97d4e4890dd84ca54d6ce
amazon:2023kernel6.18-headers0
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.120
amazon:2023kernel6.18-devel0
amazon:2023kernel6.18-tools0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.180
amazon:2023kernel6.12-headers0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023perf6.120

…and 7 more

Timeline

  • Jul 19, 2026 CVE Published
  • Jul 20, 2026 Coalition ESS Score
  • Jul 20, 2026 Security Advisory (31 in total, the first dated here)
  • Aug 7, 2026 EPSS Score (9 in total, the first dated here)
  • Aug 12, 2026 Distribution Patch (30 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-64064
vulnetix vdb fixes CVE-2026-64064

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64064/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›