CVE-2026-64216

netfs: Fix potential UAF in netfs_unlock_abandoned_read_pages()

Published Jul 24, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is a use‑after‑free (UAF) condition in the Linux kernel netfs subsystem. When netfs_unlock_abandoned_read_pages() is called after the NETFS_RREQ_IN_PROGRESS flag is cleared, it dereferences a folio that has already been released, potentially allowing an attacker to manipulate kernel memory. If an attacker can control the data involved, this UAF could lead to privilege escalation. The weakness is consistent with CWE‑416.

Affected Systems

All Linux kernel builds are affected until the fix is applied. The patch moves the reference from an index to a direct folio pointer, correcting the unsafe dereference. Any system running a kernel version before the commit that contains this change remains vulnerable.

Risk and Exploitability

The CVSS score of 9.8 indicates critical severity, and the EPSS score is reported to be less than 1 %, indicating a very low probability of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. The flaw is a kernel UAF that can be triggered by a local attacker who can manipulate netfs operations; if they can trigger the condition, it would grant root privileges. No public exploit has been reported, but the nature of the flaw warrants immediate attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the commit fixing the netfs UAF (e.g., the latest stable kernel release from the upstream kernel tree).
  • After applying the update, reboot the system to ensure the patched kernel is active.
  • If an immediate kernel update is not feasible, consider disabling or restricting netfs usage on the affected systems until a patch is applied.

Generated by OpenCVE AI on August 3, 2026 at 20:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4788-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6477-1 linux security update
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
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.
Title netfs: Fix potential UAF in netfs_unlock_abandoned_read_pages()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 27, 2026, 12:39 PM
Reserved
Jul 19, 2026, 3:36 PM
Status
Modified
Published
Jul 24, 2026, 4:16 PM
Modified
Aug 27, 2026, 1:18 PM
Severity
Moderate
Public date
Jul 24, 2026, 12:00 AM