# CVE-2026-64216: netfs: Fix potential UAF in netfs_unlock_abandoned_read_pages()

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-07-24T15:23:04.673Z
- Modified: 2026-08-27T13:18:30.527Z
- Weaknesses: CWE-416
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ee4cdf7ba857a894ad1650d6ab77669cbbfa329e before d4ae8dba90b89e7bb4d1045d1cb26afbaf13ee5c; from ee4cdf7ba857a894ad1650d6ab77669cbbfa329e before 6080fa3ecfbb4448a3b47368629534c09b6ec750; from ee4cdf7ba857a894ad1650d6ab77669cbbfa329e before 3866d015f33aeedf81338dd99154703bef33faef; from ee4cdf7ba857a894ad1650d6ab77669cbbfa329e before dbe556972100fabb8e5a1b3d2163831ff07b1e8e; 6.12 (not affected: before 6.12; from 6.12.106 up to 6.12.*; from 6.18.34 up to 6.18.*; from 7.0.11 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.12 before 6.18.34; from 6.19 before 7.0.11; 7.1

## References

- <https://git.kernel.org/stable/c/d4ae8dba90b89e7bb4d1045d1cb26afbaf13ee5c>
- <https://git.kernel.org/stable/c/6080fa3ecfbb4448a3b47368629534c09b6ec750> (patch)
- <https://git.kernel.org/stable/c/3866d015f33aeedf81338dd99154703bef33faef> (patch)
- <https://git.kernel.org/stable/c/dbe556972100fabb8e5a1b3d2163831ff07b1e8e> (patch)

## Sources

- CVE List: [CVE-2026-64216](https://www.cve.org/CVERecord?id=CVE-2026-64216), CVE Terms of Use, modified 2026-08-27
- NVD: [CVE-2026-64216](https://nvd.nist.gov/vuln/detail/CVE-2026-64216), Public domain, modified 2026-08-27

---

Page: https://cve.day/CVE-2026-64216 · Whole record: https://cve.day/CVE-2026-64216.json · Rebuilt by cve.day 2026-11-25T22:59:30.003Z
