# CVE-2025-22002: netfs: Call \`invalidate\_cache\` only if implemented

> 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, CNA) `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.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-04-03T07:19:04.875Z
- **Modified:** 2026-06-17T08:44:49.037Z

## Who should check

- Anyone running Linux \>= 0e0f2dfe880fb19e4b15a7ca468623eb0b4ba586, \< 0def1a40c3e76a468f8f66aa572caed44ec37277; \>= 0e0f2dfe880fb19e4b15a7ca468623eb0b4ba586, \< c2d5d14a7bcbb045d0cd0095cefe95f2a4b91159; \>= 0e0f2dfe880fb19e4b15a7ca468623eb0b4ba586, \< 344b7ef248f420ed4ba3a3539cb0a0fc18df9a6c
- Anyone running Linux 6.8

## Description

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

netfs: Call \`invalidate\_cache\` only if implemented

Many filesystems such as NFS and Ceph do not implement the
\`invalidate\_cache\` method.  On those filesystems, if writing to the
cache (\`NETFS\_WRITE\_TO\_CACHE\`) fails for some reason, the kernel
crashes like this:

 BUG: kernel NULL pointer dereference, address: 0000000000000000
 \#PF: supervisor instruction fetch in kernel mode
 \#PF: error\_code(0x0010) - not-present page
 PGD 0 P4D 0
 Oops: Oops: 0010 \[\#1\] SMP PTI
 CPU: 9 UID: 0 PID: 3380 Comm: kworker/u193:11 Not tainted 6.13.3-cm4all1-hp \#437
 Hardware name: HP ProLiant DL380 Gen9/ProLiant DL380 Gen9, BIOS P89 10/17/2018
 Workqueue: events\_unbound netfs\_write\_collection\_worker
 RIP: 0010:0x0
 Code: Unable to access opcode bytes at 0xffffffffffffffd6.
 RSP: 0018:ffff9b86e2ca7dc0 EFLAGS: 00010202
 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 7fffffffffffffff
 RDX: 0000000000000001 RSI: ffff89259d576a18 RDI: ffff89259d576900
 RBP: ffff89259d5769b0 R08: ffff9b86e2ca7d28 R09: 0000000000000002
 R10: ffff89258ceaca80 R11: 0000000000000001 R12: 0000000000000020
 R13: ffff893d158b9338 R14: ffff89259d576900 R15: ffff89259d5769b0
 FS:  0000000000000000(0000) GS:ffff893c9fa40000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: ffffffffffffffd6 CR3: 000000054442e003 CR4: 00000000001706f0
 Call Trace:
  \<TASK\>
  ? \_\_die+0x1f/0x60
  ? page\_fault\_oops+0x15c/0x460
  ? try\_to\_wake\_up+0x2d2/0x530
  ? exc\_page\_fault+0x5e/0x100
  ? asm\_exc\_page\_fault+0x22/0x30
  netfs\_write\_collection\_worker+0xe9f/0x12b0
  ? xs\_poll\_check\_readable+0x3f/0x80
  ? xs\_stream\_data\_receive\_workfn+0x8d/0x110
  process\_one\_work+0x134/0x2d0
  worker\_thread+0x299/0x3a0
  ? \_\_pfx\_worker\_thread+0x10/0x10
  kthread+0xba/0xe0
  ? \_\_pfx\_kthread+0x10/0x10
  ret\_from\_fork+0x30/0x50
  ? \_\_pfx\_kthread+0x10/0x10
  ret\_from\_fork\_asm+0x1a/0x30
  \</TASK\>
 Modules linked in:
 CR2: 0000000000000000

This patch adds the missing \`NULL\` check.

## Affected and fixed versions

- Linux: \>= 0e0f2dfe880fb19e4b15a7ca468623eb0b4ba586, \< 0def1a40c3e76a468f8f66aa572caed44ec37277; \>= 0e0f2dfe880fb19e4b15a7ca468623eb0b4ba586, \< c2d5d14a7bcbb045d0cd0095cefe95f2a4b91159; \>= 0e0f2dfe880fb19e4b15a7ca468623eb0b4ba586, \< 344b7ef248f420ed4ba3a3539cb0a0fc18df9a6c (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- Upgrade Linux to 344b7ef248f420ed4ba3a3539cb0a0fc18df9a6c or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-22002.md
Affected: Linux >= 0e0f2dfe880fb19e4b15a7ca468623eb0b4ba586, < 0def1a40c3e76a468f8f66aa572caed44ec37277; >= 0e0f2dfe880fb19e4b15a7ca468623eb0b4ba586, < c2d5d14a7bcbb045d0cd0095cefe95f2a4b91159; >= 0e0f2dfe880fb19e4b15a7ca468623eb0b4ba586, < 344b7ef248f420ed4ba3a3539cb0a0fc18df9a6c; Linux 6.8
Fixed in: Linux 0def1a40c3e76a468f8f66aa572caed44ec37277, Linux 344b7ef248f420ed4ba3a3539cb0a0fc18df9a6c

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-2025-22002 being exploited?

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

### How serious is CVE-2025-22002?

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

### Which versions are affected by CVE-2025-22002?

Linux \>= 0e0f2dfe880fb19e4b15a7ca468623eb0b4ba586, \< 0def1a40c3e76a468f8f66aa572caed44ec37277; \>= 0e0f2dfe880fb19e4b15a7ca468623eb0b4ba586, \< c2d5d14a7bcbb045d0cd0095cefe95f2a4b91159; \>= 0e0f2dfe880fb19e4b15a7ca468623eb0b4ba586, \< 344b7ef248f420ed4ba3a3539cb0a0fc18df9a6c; Linux 6.8.

### Is there a fix for CVE-2025-22002?

Yes. Fixed in Linux 0def1a40c3e76a468f8f66aa572caed44ec37277, Linux 344b7ef248f420ed4ba3a3539cb0a0fc18df9a6c. Upgrade Linux to 344b7ef248f420ed4ba3a3539cb0a0fc18df9a6c or later.

### How do I check if I'm affected by CVE-2025-22002?

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/0def1a40c3e76a468f8f66aa572caed44ec37277>
- patch: <https://git.kernel.org/stable/c/c2d5d14a7bcbb045d0cd0095cefe95f2a4b91159>
- patch: <https://git.kernel.org/stable/c/344b7ef248f420ed4ba3a3539cb0a0fc18df9a6c>

## 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-2025-22002>

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