# CVE-2026-64063: netfs: Fix streaming write being overwritten

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2026-07-19T15:39:42.123Z
- **Modified:** 2026-09-02T21:12:07.367Z

## Who should check

- Anyone running Linux \>= 8f52de0077ba3bf41e5d53d67a185700f41efce7, \< 20195925c768626dc901a4781a51e508702c88ad; \>= 8f52de0077ba3bf41e5d53d67a185700f41efce7, \< ef9b521212e4863814ef7dfe19889abaf55ca840; \>= 8f52de0077ba3bf41e5d53d67a185700f41efce7, \< cdae00e8e215d95911d95f100599e187b6560de5; \>= 8f52de0077ba3bf41e5d53d67a185700f41efce7, \< 7b4dcf1b9455a6e52ac7478b4057dbe10359576d
- Anyone running Linux 6.12

## Description

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

netfs: Fix streaming write being overwritten

In order to avoid reading whilst writing, netfslib will allow "streaming
writes" in which dirty data is stored directly into folios without reading
them first.  Such folios are marked dirty but may not be marked uptodate.
If a folio is entirely written by a streaming write, uptodate will be set,
otherwise it will have a netfs\_folio struct attached to -\>private recording
the dirty region.

In the event that a partially written streaming write page is to be
overwritten entirely by a single write(), netfs\_perform\_write() will try to
copy over it, but doesn't discard the netfs\_folio if it succeeds; further,
it doesn't correctly handle a partial copy that overwrites some of the
dirty data.

Fix this by the following:

 (1) If the folio is successfully overwritten, free the netfs\_folio struct
     before marking the page uptodate.

 (2) If the copy to the folio partially fails, but short of the dirty data,
     just ignore the copy.

 (3) If the copy partially fails and overwrites some of the dirty data,
     accept the copy, update the netfs\_folio struct to record the new data.
     If the folio is now filled, free the netfs\_folio and set uptodate,
     otherwise return a partial write.

Found with:

	fsx -q -N 1000000 -p 10000 -o 128000 -l 600000 \\
	  /xfstest.test/junk --replay-ops=junk.fsxops

using the following as junk.fsxops:

	truncate 0x0 0 0x927c0
	write 0x63fb8 0x53c8 0
	copy\_range 0xb704 0x19b9 0x24429 0x79380
	write 0x2402b 0x144a2 0x90660 \*
	write 0x204d5 0x140a0 0x927c0 \*
	copy\_range 0x1f72c 0x137d0 0x7a906 0x927c0 \*
	read 0x00000 0x20000 0x9157c
	read 0x20000 0x20000 0x9157c
	read 0x40000 0x20000 0x9157c
	read 0x60000 0x20000 0x9157c
	read 0x7e1a0 0xcfb9 0x9157c

on cifs with the default cache option.

It shows folio 0x24 misbehaving if the FMODE\_READ check is commented out in
netfs\_perform\_write():

		if (//(file-\>f\_mode & FMODE\_READ) \|\|
		    netfs\_is\_cache\_enabled(ctx)) {

and no fscache.  This was initially found with the generic/522 xfstest.

## Affected and fixed versions

- Linux: \>= 8f52de0077ba3bf41e5d53d67a185700f41efce7, \< 20195925c768626dc901a4781a51e508702c88ad; \>= 8f52de0077ba3bf41e5d53d67a185700f41efce7, \< ef9b521212e4863814ef7dfe19889abaf55ca840; \>= 8f52de0077ba3bf41e5d53d67a185700f41efce7, \< cdae00e8e215d95911d95f100599e187b6560de5; \>= 8f52de0077ba3bf41e5d53d67a185700f41efce7, \< 7b4dcf1b9455a6e52ac7478b4057dbe10359576d (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 7b4dcf1b9455a6e52ac7478b4057dbe10359576d 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-64063. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64063.md
Affected: Linux >= 8f52de0077ba3bf41e5d53d67a185700f41efce7, < 20195925c768626dc901a4781a51e508702c88ad; >= 8f52de0077ba3bf41e5d53d67a185700f41efce7, < ef9b521212e4863814ef7dfe19889abaf55ca840; >= 8f52de0077ba3bf41e5d53d67a185700f41efce7, < cdae00e8e215d95911d95f100599e187b6560de5; >= 8f52de0077ba3bf41e5d53d…
Fixed in: Linux 20195925c768626dc901a4781a51e508702c88ad, Linux 7b4dcf1b9455a6e52ac7478b4057dbe10359576d

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-64063 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 8f52de0077ba3bf41e5d53d67a185700f41efce7, \< 20195925c768626dc901a4781a51e508702c88ad; \>= 8f52de0077ba3bf41e5d53d67a185700f41efce7, \< ef9b521212e4863814ef7dfe19889abaf55ca840; \>= 8f52de0077ba3bf41e5d53d67a185700f41efce7, \< cdae00e8e215d95911d95f100599e187b6560de5; \>= 8f52de0077ba3bf41e5d53d67a185700f41efce7, \< 7b4dcf1b9455a6e52ac7478b4057dbe10359576d; Linux 6.12.

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

Yes. Fixed in Linux 20195925c768626dc901a4781a51e508702c88ad, Linux 7b4dcf1b9455a6e52ac7478b4057dbe10359576d. Upgrade Linux to 7b4dcf1b9455a6e52ac7478b4057dbe10359576d or later.

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

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/20195925c768626dc901a4781a51e508702c88ad>
- patch: <https://git.kernel.org/stable/c/ef9b521212e4863814ef7dfe19889abaf55ca840>
- patch: <https://git.kernel.org/stable/c/cdae00e8e215d95911d95f100599e187b6560de5>
- patch: <https://git.kernel.org/stable/c/7b4dcf1b9455a6e52ac7478b4057dbe10359576d>

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

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