CVE-2026-64216

netfs: Fix potential UAF in netfs_unlock_abandoned_read_pages()

CRITICAL
9.8
CVSS Score
Published: July 24, 2026 at 03:23 PM UTC
Updated: August 27, 2026 at 01:31 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
CRITICAL9.8
Exploit prediction
EPSS 0.5%

Description

In the Linux kernel, the following vulnerability has been resolved: netfs: Fix potential UAF in netfs_unlock_abandoned_read_pages() netfs_unlock_abandoned_read_pages(rreq) accesses the index of the folios it is wanting to unlock and compares that to rreq->no_unlock_folio so that it doesn't unlock a folio being read for netfs_perform_write() or netfs_write_begin(). However, given that netfs_unlock_abandoned_read_pages() is called _after_ NETFS_RREQ_IN_PROGRESS is cleared, the one folio that it's not allowed to dereference is the one specified by ->no_unlock_folio as ownership immediately reverts to the caller. Fix this by storing the folio pointer instead and using that rather than the index. Also fix netfs_unlock_read_folio() where the same applies.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.12 ≤ v < 6.12.1066.12 ≤ v < 6.18.346.12 ≤ v < 7.0.116.12 ≤ v < 7.16.19 ≤ v < 7.0.117.1 rc17.1 rc27.1 rc37.1 rc4ee4cdf7ba857a894ad1650d6ab77669cbbfa329e
Vendor states this is fixed in 3866d015f33aeedf81338dd99154703bef33faef (fixed)
Vendor states this is fixed in 6080fa3ecfbb4448a3b47368629534c09b6ec750 (fixed)
Vendor states this is fixed in d4ae8dba90b89e7bb4d1045d1cb26afbaf13ee5c (fixed)
Vendor states this is fixed in dbe556972100fabb8e5a1b3d2163831ff07b1e8e (fixed)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.12.106 (unaffected)
Vendor states this is fixed in 6.18.34 (unaffected)
Vendor states this is fixed in 7.0.11 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

CVSS

9.8CRITICALLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card