# CVE-2026-64061: netfs: Fix early put of sink folio in netfs\_read\_gaps()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.65% (percentile 46, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-07-19T15:39:40.913Z
- **Modified:** 2026-09-02T21:12:26.360Z

## Who should check

- Anyone running Linux \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 2a39d49c8d97df8cb8fa80c10859bc1ba7358c6b; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< d4f4bc87c76511cf2532448b0fa40c25e894bd7d; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 412e8bad48967fd34295866636c028befd27d8b9; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 3e5dd91b87a8b1450217b56a336bee315f40da7d
- Anyone running Linux 6.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

netfs: Fix early put of sink folio in netfs\_read\_gaps()

Fix netfs\_read\_gaps() to release the sink page it uses after waiting for
the request to complete.  The way the sink page is used is that an
ITER\_BVEC-class iterator is created that has the gaps from the target folio
at either end, but has the sink page tiled over the middle so that a single
read op can fill in both gaps.

The bug was found by KASAN detecting a UAF on the generic/075 xfstest in
the cifsd kernel thread that handles reception of data from the TCP socket:

 BUG: KASAN: use-after-free in \_copy\_to\_iter+0x48a/0xa20
 Write of size 885 at addr ffff888107f92000 by task cifsd/1285
 CPU: 2 UID: 0 PID: 1285 Comm: cifsd Not tainted 7.0.0 \#6 PREEMPT(lazy)
 Call Trace:
  dump\_stack\_lvl+0x5d/0x80
  print\_report+0x17f/0x4f1
  kasan\_report+0x100/0x1e0
  kasan\_check\_range+0x10f/0x1e0
  \_\_asan\_memcpy+0x3c/0x60
  \_copy\_to\_iter+0x48a/0xa20
  \_\_skb\_datagram\_iter+0x2c9/0x430
  skb\_copy\_datagram\_iter+0x6e/0x160
  tcp\_recvmsg\_locked+0xce0/0x1130
  tcp\_recvmsg+0xeb/0x300
  inet\_recvmsg+0xcf/0x3a0
  sock\_recvmsg+0xea/0x100
  cifs\_readv\_from\_socket+0x3a6/0x4d0 \[cifs\]
  cifs\_read\_iter\_from\_socket+0xdd/0x130 \[cifs\]
  cifs\_readv\_receive+0xaad/0xb10 \[cifs\]
  cifs\_demultiplex\_thread+0x1148/0x1740 \[cifs\]
  kthread+0x1cf/0x210

## Affected and fixed versions

- Linux: \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 2a39d49c8d97df8cb8fa80c10859bc1ba7358c6b; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< d4f4bc87c76511cf2532448b0fa40c25e894bd7d; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 412e8bad48967fd34295866636c028befd27d8b9; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 3e5dd91b87a8b1450217b56a336bee315f40da7d (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 3e5dd91b87a8b1450217b56a336bee315f40da7d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64061. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64061.md
Affected: Linux >= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, < 2a39d49c8d97df8cb8fa80c10859bc1ba7358c6b; >= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, < d4f4bc87c76511cf2532448b0fa40c25e894bd7d; >= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, < 412e8bad48967fd34295866636c028befd27d8b9; >= ee4cdf7ba857a894ad1650d…
Fixed in: Linux 2a39d49c8d97df8cb8fa80c10859bc1ba7358c6b, Linux 412e8bad48967fd34295866636c028befd27d8b9, Linux 3e5dd91b87a8b1450217b56a336bee315f40da7d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64061 being exploited?

There is no confirmed exploitation: CVE-2026-64061 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.65% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64061?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-64061?

Linux \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 2a39d49c8d97df8cb8fa80c10859bc1ba7358c6b; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< d4f4bc87c76511cf2532448b0fa40c25e894bd7d; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 412e8bad48967fd34295866636c028befd27d8b9; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 3e5dd91b87a8b1450217b56a336bee315f40da7d; Linux 6.12.

### Is there a fix for CVE-2026-64061?

Yes. Fixed in Linux 2a39d49c8d97df8cb8fa80c10859bc1ba7358c6b, Linux 412e8bad48967fd34295866636c028befd27d8b9, Linux 3e5dd91b87a8b1450217b56a336bee315f40da7d. Upgrade Linux to 3e5dd91b87a8b1450217b56a336bee315f40da7d or later.

### How do I check if I'm affected by CVE-2026-64061?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/2a39d49c8d97df8cb8fa80c10859bc1ba7358c6b>
- patch: <https://git.kernel.org/stable/c/d4f4bc87c76511cf2532448b0fa40c25e894bd7d>
- patch: <https://git.kernel.org/stable/c/412e8bad48967fd34295866636c028befd27d8b9>
- patch: <https://git.kernel.org/stable/c/3e5dd91b87a8b1450217b56a336bee315f40da7d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64061>

HTML: <https://flawdb.com/CVE-2026-64061> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64061>
