{"api_version":"1","generated_at":"2026-07-24T20:52:59+00:00","cve":"CVE-2026-64216","urls":{"html":"https://cve.report/CVE-2026-64216","api":"https://cve.report/api/cve/CVE-2026-64216.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-64216","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-64216"},"summary":{"title":"netfs: Fix potential UAF in netfs_unlock_abandoned_read_pages()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix potential UAF in netfs_unlock_abandoned_read_pages()\n\nnetfs_unlock_abandoned_read_pages(rreq) accesses the index of the folios it\nis wanting to unlock and compares that to rreq->no_unlock_folio so that it\ndoesn't unlock a folio being read for netfs_perform_write() or\nnetfs_write_begin().\n\nHowever, given that netfs_unlock_abandoned_read_pages() is called _after_\nNETFS_RREQ_IN_PROGRESS is cleared, the one folio that it's not allowed to\ndereference is the one specified by ->no_unlock_folio as ownership\nimmediately reverts to the caller.\n\nFix this by storing the folio pointer instead and using that rather than\nthe index.  Also fix netfs_unlock_read_folio() where the same applies.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-07-24 16:16:49","updated_at":"2026-07-24 16:16:49"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/3866d015f33aeedf81338dd99154703bef33faef","name":"https://git.kernel.org/stable/c/3866d015f33aeedf81338dd99154703bef33faef","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/dbe556972100fabb8e5a1b3d2163831ff07b1e8e","name":"https://git.kernel.org/stable/c/dbe556972100fabb8e5a1b3d2163831ff07b1e8e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6080fa3ecfbb4448a3b47368629534c09b6ec750","name":"https://git.kernel.org/stable/c/6080fa3ecfbb4448a3b47368629534c09b6ec750","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-64216","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64216","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ee4cdf7ba857a894ad1650d6ab77669cbbfa329e 6080fa3ecfbb4448a3b47368629534c09b6ec750 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ee4cdf7ba857a894ad1650d6ab77669cbbfa329e 3866d015f33aeedf81338dd99154703bef33faef git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ee4cdf7ba857a894ad1650d6ab77669cbbfa329e dbe556972100fabb8e5a1b3d2163831ff07b1e8e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.34 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0.11 7.0.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/netfs/buffered_read.c","fs/netfs/read_collect.c","fs/netfs/read_retry.c","include/linux/netfs.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"6080fa3ecfbb4448a3b47368629534c09b6ec750","status":"affected","version":"ee4cdf7ba857a894ad1650d6ab77669cbbfa329e","versionType":"git"},{"lessThan":"3866d015f33aeedf81338dd99154703bef33faef","status":"affected","version":"ee4cdf7ba857a894ad1650d6ab77669cbbfa329e","versionType":"git"},{"lessThan":"dbe556972100fabb8e5a1b3d2163831ff07b1e8e","status":"affected","version":"ee4cdf7ba857a894ad1650d6ab77669cbbfa329e","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/netfs/buffered_read.c","fs/netfs/read_collect.c","fs/netfs/read_retry.c","include/linux/netfs.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.12"},{"lessThan":"6.12","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.34","versionType":"semver"},{"lessThanOrEqual":"7.0.*","status":"unaffected","version":"7.0.11","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.34","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.0.11","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1","versionStartIncluding":"6.12","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix potential UAF in netfs_unlock_abandoned_read_pages()\n\nnetfs_unlock_abandoned_read_pages(rreq) accesses the index of the folios it\nis wanting to unlock and compares that to rreq->no_unlock_folio so that it\ndoesn't unlock a folio being read for netfs_perform_write() or\nnetfs_write_begin().\n\nHowever, given that netfs_unlock_abandoned_read_pages() is called _after_\nNETFS_RREQ_IN_PROGRESS is cleared, the one folio that it's not allowed to\ndereference is the one specified by ->no_unlock_folio as ownership\nimmediately reverts to the caller.\n\nFix this by storing the folio pointer instead and using that rather than\nthe index.  Also fix netfs_unlock_read_folio() where the same applies."}],"providerMetadata":{"dateUpdated":"2026-07-24T15:23:04.673Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/6080fa3ecfbb4448a3b47368629534c09b6ec750"},{"url":"https://git.kernel.org/stable/c/3866d015f33aeedf81338dd99154703bef33faef"},{"url":"https://git.kernel.org/stable/c/dbe556972100fabb8e5a1b3d2163831ff07b1e8e"}],"title":"netfs: Fix potential UAF in netfs_unlock_abandoned_read_pages()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-64216","datePublished":"2026-07-24T15:23:04.673Z","dateReserved":"2026-07-19T15:36:31.770Z","dateUpdated":"2026-07-24T15:23:04.673Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-07-24 16:16:49","lastModifiedDate":"2026-07-24 16:16:49","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"64216","Ordinal":"1","Title":"netfs: Fix potential UAF in netfs_unlock_abandoned_read_pages()","CVE":"CVE-2026-64216","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"64216","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix potential UAF in netfs_unlock_abandoned_read_pages()\n\nnetfs_unlock_abandoned_read_pages(rreq) accesses the index of the folios it\nis wanting to unlock and compares that to rreq->no_unlock_folio so that it\ndoesn't unlock a folio being read for netfs_perform_write() or\nnetfs_write_begin().\n\nHowever, given that netfs_unlock_abandoned_read_pages() is called _after_\nNETFS_RREQ_IN_PROGRESS is cleared, the one folio that it's not allowed to\ndereference is the one specified by ->no_unlock_folio as ownership\nimmediately reverts to the caller.\n\nFix this by storing the folio pointer instead and using that rather than\nthe index.  Also fix netfs_unlock_read_folio() where the same applies.","Type":"Description","Title":"netfs: Fix potential UAF in netfs_unlock_abandoned_read_pages()"}]}}}