{"id":"CVE-2026-64058","state":"PUBLISHED","title":"netfs: Fix netfs_read_folio() to wait on writeback","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix netfs_read_folio() to wait on writeback\n\nFix netfs_read_folio() to wait for an ongoing writeback to complete so that\nit can trust the dirty flag and whatever is attached to folio->private\n(folio->private may get cleaned up by the collector before it clears the\nwriteback flag).","publishedAt":"2026-07-19T15:39:38.978Z","updatedAt":"2026-09-14T11:58:36.477Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ee4cdf7ba857a894ad1650d6ab77669cbbfa329e","status":"affected","lessThan":"090a8aa1894b72f5b3fc18dee68d42ad45f4a2c6","versionType":"git"},{"version":"ee4cdf7ba857a894ad1650d6ab77669cbbfa329e","status":"affected","lessThan":"f17b9121bb99f88188ec9be2db5da1d561f4c01b","versionType":"git"},{"version":"ee4cdf7ba857a894ad1650d6ab77669cbbfa329e","status":"affected","lessThan":"b8271cccdd5e43cc8d738afb8b51f6ad05b1cb4b","versionType":"git"},{"version":"ee4cdf7ba857a894ad1650d6ab77669cbbfa329e","status":"affected","lessThan":"ded0c6f1606061148c202825f7e53d711f9f84cf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/netfs/buffered_read.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.34","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.11","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/netfs/buffered_read.c"]}],"references":["https://git.kernel.org/stable/c/090a8aa1894b72f5b3fc18dee68d42ad45f4a2c6","https://git.kernel.org/stable/c/f17b9121bb99f88188ec9be2db5da1d561f4c01b","https://git.kernel.org/stable/c/b8271cccdd5e43cc8d738afb8b51f6ad05b1cb4b","https://git.kernel.org/stable/c/ded0c6f1606061148c202825f7e53d711f9f84cf"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:41.951Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/64xxx/CVE-2026-64058.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-64058","state":"PUBLISHED","datePublished":"2026-07-19T15:39:38.978Z","dateUpdated":"2026-09-14T11:58:36.477Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-19T07:54:57.030Z"},"containers":{"cna":{"title":"netfs: Fix netfs_read_folio() to wait on writeback","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix netfs_read_folio() to wait on writeback\n\nFix netfs_read_folio() to wait for an ongoing writeback to complete so that\nit can trust the dirty flag and whatever is attached to folio->private\n(folio->private may get cleaned up by the collector before it clears the\nwriteback flag)."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ee4cdf7ba857a894ad1650d6ab77669cbbfa329e","status":"affected","lessThan":"090a8aa1894b72f5b3fc18dee68d42ad45f4a2c6","versionType":"git"},{"version":"ee4cdf7ba857a894ad1650d6ab77669cbbfa329e","status":"affected","lessThan":"f17b9121bb99f88188ec9be2db5da1d561f4c01b","versionType":"git"},{"version":"ee4cdf7ba857a894ad1650d6ab77669cbbfa329e","status":"affected","lessThan":"b8271cccdd5e43cc8d738afb8b51f6ad05b1cb4b","versionType":"git"},{"version":"ee4cdf7ba857a894ad1650d6ab77669cbbfa329e","status":"affected","lessThan":"ded0c6f1606061148c202825f7e53d711f9f84cf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/netfs/buffered_read.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.34","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.11","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/netfs/buffered_read.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/090a8aa1894b72f5b3fc18dee68d42ad45f4a2c6"},{"url":"https://git.kernel.org/stable/c/f17b9121bb99f88188ec9be2db5da1d561f4c01b"},{"url":"https://git.kernel.org/stable/c/b8271cccdd5e43cc8d738afb8b51f6ad05b1cb4b"},{"url":"https://git.kernel.org/stable/c/ded0c6f1606061148c202825f7e53d711f9f84cf"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is in the netfs client page-cache path (`netfs_read_folio()`), reached only through local VFS operations (read/mmap/page fault) on mounted network filesystems (CIFS, Ceph, AFS, 9p, NFS+fscache), not from remote packet handling.\nAC:L - An attacker can reliably trigger the race by concurrently performing streaming writes and reads on the same folio from threads they control, forcing writeback while reads hit the vulnerable dirty-folio path.\nPR:L - Exploitation requires only unprivileged access to read/write files on an already-mounted netfs-backed filesystem; no CAP_SYS_ADMIN, real root, or user-namespace capability is needed.\nUI:N - No victim interaction is required beyond the attacker (or any local process with file access) issuing the concurrent read/write operations that trigger the race.\nS:U - The vulnerability corrupts kernel heap memory during local filesystem I/O in the same kernel security domain; it does not inherently cross VM, container, or IOMMU boundaries.\nC:H - The race frees `struct netfs_folio` in `folio->private` before writeback completes, creating a use-after-free that can expose or leak kernel heap contents when `netfs_read_gaps()` dereferences stale metadata.\nI:H - UAF on the kmalloc'd `netfs_folio` object can be leveraged for heap manipulation; corrupted `dirty_offset`/`dirty_len` values drive subsequent I/O vector setup and pagecache writes in `netfs_read_gaps()`.\nA:H - Winning the race causes kernel oops/panic via NULL dereference or use-after-free during `netfs_read_gaps()`, and a malicious local user can repeat the trigger to deny availability on shared servers with CIFS/NFS/Ceph mounts."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-09-14T11:58:36.477Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.18.34"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.0.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}