# CVE-2026-64065: netfs: fix VM\_BUG\_ON\_FOLIO() issue in netfs\_write\_begin() call

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.16% (percentile 3, 2026-11-26)
- **Published:** 2026-07-19T15:39:43.397Z
- **Modified:** 2026-09-03T15:35:54.180Z

## Who should check

- Anyone running Linux \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 51ffb788f074c0a61953086f49008028c1e7b645; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< b63971238beb79cf701dac33c6cefc56c07c89fa; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 5ad05b6f5df296ef046589f222bb2587495b991e; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< dc7832d05deb4d632e8035e3299e31a3528fa0d0
- Anyone running Linux 6.12

## Description

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

netfs: fix VM\_BUG\_ON\_FOLIO() issue in netfs\_write\_begin() call

The multiple runs of generic/013 test-case is capable
to reproduce a kernel BUG at mm/filemap.c:1504 with
probability of 30%.

while true; do
  sudo ./check generic/013
done

\[ 9849.452376\] page: refcount:3 mapcount:0 mapping:00000000e58ff252 index:0x10781 pfn:0x1c322
\[ 9849.452412\] memcg:ffff8881a1915800
\[ 9849.452417\] aops:ceph\_aops ino:1000058db9e dentry name(?):"f9XXXXXX"
\[ 9849.452432\] flags: 0x17ffffc0000000(node=0\|zone=2\|lastcpupid=0x1fffff)
\[ 9849.452441\] raw: 0017ffffc0000000 0000000000000000 dead000000000122 ffff88816110d248
\[ 9849.452445\] raw: 0000000000010781 0000000000000000 00000003ffffffff ffff8881a1915800
\[ 9849.452447\] page dumped because: VM\_BUG\_ON\_FOLIO(!folio\_test\_locked(folio))
\[ 9849.452474\] ------------\[ cut here \]------------
\[ 9849.452476\] kernel BUG at mm/filemap.c:1504!
\[ 9849.478635\] Oops: invalid opcode: 0000 \[\#1\] SMP KASAN NOPTI
\[ 9849.481772\] CPU: 2 UID: 0 PID: 84223 Comm: fsstress Not tainted 7.0.0-rc1+ \#18 PREEMPT(full)
\[ 9849.482881\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-9.fc43 06/1
0/2025
\[ 9849.484539\] RIP: 0010:folio\_unlock+0x85/0xa0
\[ 9849.485076\] Code: 89 df 31 f6 e8 1c f3 ff ff 48 8b 5d f8 c9 31 c0 31 d2 31 f6 31 ff c3 cc
cc cc cc 48 c7 c6 80 6c d9 a7 48 89 df e8 4b b3 10 00 \<0f\> 0b 48 89 df e8 21 e6 2c 00 eb 9d 0f 1f 40 00 66 66 2e 0f 1f 84
\[ 9849.493818\] RSP: 0018:ffff8881bb8076b0 EFLAGS: 00010246
\[ 9849.495740\] RAX: 0000000000000000 RBX: ffffea00070c8980 RCX: 0000000000000000
\[ 9849.498678\] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
\[ 9849.500559\] RBP: ffff8881bb8076b8 R08: 0000000000000000 R09: 0000000000000000
\[ 9849.501097\] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000010782000
\[ 9849.502108\] R13: ffff8881935de738 R14: ffff88816110d010 R15: 0000000000001000
\[ 9849.502516\] FS:  00007e36cbe94740(0000) GS:ffff88824a899000(0000) knlGS:0000000000000000
\[ 9849.502996\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[ 9849.503810\] CR2: 000000c0002b0000 CR3: 000000011bbf6004 CR4: 0000000000772ef0
\[ 9849.504459\] PKRU: 55555554
\[ 9849.504626\] Call Trace:
\[ 9849.505242\]  \<TASK\>
\[ 9849.505379\]  netfs\_write\_begin+0x7c8/0x10a0
\[ 9849.505877\]  ? \_\_kasan\_check\_read+0x11/0x20
\[ 9849.506384\]  ? \_\_pfx\_netfs\_write\_begin+0x10/0x10
\[ 9849.507178\]  ceph\_write\_begin+0x8c/0x1c0
\[ 9849.507934\]  generic\_perform\_write+0x391/0x8f0
\[ 9849.508503\]  ? \_\_pfx\_generic\_perform\_write+0x10/0x10
\[ 9849.509062\]  ? file\_update\_time\_flags+0x19a/0x4b0
\[ 9849.509581\]  ? ceph\_get\_caps+0x63/0xf0
\[ 9849.510259\]  ? ceph\_get\_caps+0x63/0xf0
\[ 9849.510530\]  ceph\_write\_iter+0xe79/0x1ae0
\[ 9849.511282\]  ? \_\_pfx\_ceph\_write\_iter+0x10/0x10
\[ 9849.511839\]  ? lock\_acquire+0x1ad/0x310
\[ 9849.512334\]  ? ksys\_write+0xf9/0x230
\[ 9849.512582\]  ? lock\_is\_held\_type+0xaa/0x140
\[ 9849.513128\]  vfs\_write+0x512/0x1110
\[ 9849.513634\]  ? \_\_fget\_files+0x33/0x350
\[ 9849.513893\]  ? \_\_pfx\_vfs\_write+0x10/0x10
\[ 9849.514143\]  ? mutex\_lock\_nested+0x1b/0x30
\[ 9849.514394\]  ksys\_write+0xf9/0x230
\[ 9849.514621\]  ? \_\_pfx\_ksys\_write+0x10/0x10
\[ 9849.514887\]  ? do\_syscall\_64+0x25e/0x1520
\[ 9849.515122\]  ? \_\_kasan\_check\_read+0x11/0x20
\[ 9849.515366\]  ? trace\_hardirqs\_on\_prepare+0x178/0x1c0
\[ 9849.515655\]  \_\_x64\_sys\_write+0x72/0xd0
\[ 9849.515885\]  ? trace\_hardirqs\_on+0x24/0x1c0
\[ 9849.516130\]  x64\_sys\_call+0x22f/0x2390
\[ 9849.516341\]  do\_syscall\_64+0x12b/0x1520
\[ 9849.516545\]  ? do\_syscall\_64+0x27c/0x1520
\[ 9849.516783\]  ? do\_syscall\_64+0x27c/0x1520
\[ 9849.517003\]  ? lock\_release+0x318/0x480
\[ 9849.517220\]  ? \_\_x64\_sys\_io\_getevents+0x143/0x2d0
\[ 9849.517479\]  ? percpu\_ref\_put\_many.constprop.0+0x8f/0x210
\[ 9849.517779\]  ? entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
\[ 9849.518073\]  ? do\_syscall\_64+0x25e/0x1520
\[ 9849.518291\]  ? \_\_kasan\_check\_read+0x11/0x20
\[ 9849.518519\]  ? trace\_hardirqs\_on\_prepare+0x178/0x1c0
\[ 9849.518799\]  ? do\_syscall\_64+0x27c/0x1520
\[ 9
---truncated---

## Affected and fixed versions

- Linux: \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 51ffb788f074c0a61953086f49008028c1e7b645; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< b63971238beb79cf701dac33c6cefc56c07c89fa; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 5ad05b6f5df296ef046589f222bb2587495b991e; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< dc7832d05deb4d632e8035e3299e31a3528fa0d0 (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-64065.md
Affected: Linux >= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, < 51ffb788f074c0a61953086f49008028c1e7b645; >= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, < b63971238beb79cf701dac33c6cefc56c07c89fa; >= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, < 5ad05b6f5df296ef046589f222bb2587495b991e; >= ee4cdf7ba857a894ad1650d…
Fixed in: Linux 51ffb788f074c0a61953086f49008028c1e7b645, Linux 5ad05b6f5df296ef046589f222bb2587495b991e

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

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

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

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

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

Linux \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 51ffb788f074c0a61953086f49008028c1e7b645; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< b63971238beb79cf701dac33c6cefc56c07c89fa; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< 5ad05b6f5df296ef046589f222bb2587495b991e; \>= ee4cdf7ba857a894ad1650d6ab77669cbbfa329e, \< dc7832d05deb4d632e8035e3299e31a3528fa0d0; Linux 6.12.

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

Yes. Fixed in Linux 51ffb788f074c0a61953086f49008028c1e7b645, Linux 5ad05b6f5df296ef046589f222bb2587495b991e. No fix listed yet: follow the vendor advisory.

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

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/51ffb788f074c0a61953086f49008028c1e7b645>
- patch: <https://git.kernel.org/stable/c/b63971238beb79cf701dac33c6cefc56c07c89fa>
- patch: <https://git.kernel.org/stable/c/5ad05b6f5df296ef046589f222bb2587495b991e>
- patch: <https://git.kernel.org/stable/c/dc7832d05deb4d632e8035e3299e31a3528fa0d0>

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

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