# CVE-2025-38400: nfs: Clean up /proc/net/rpc/nfs when nfs\_fs\_proc\_net\_init() fails.

> 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.33% (percentile 18, 2026-11-26)
- **Published:** 2025-07-25T12:53:44.038Z
- **Modified:** 2026-11-05T21:18:30.203Z

## Who should check

- Anyone running Linux \>= 31dd0cda5aa0547de447aaf184812f85ccc34044, \< 8785701fd7cd52ae74c0d2b35b82568df74e9dbb; \>= 6eef21eb7a165601882dad0419a630e32d2d7a2c, \< 412534a1fb76958b88dca48360c6f3ad4f3390f4; \>= 0bbd429260821dfb81478749837d3e6377949ac6, \< b92397ce96743e4cc090207e2df2a856cb4cef08; \>= 9dd86e9d34b1078dcd647220e96a205028bf4e6f, \< 7701c245ff1ac1a126bf431e72b24547519046ff; \>= 53a0365c9f9f66e1a981bf9188d8716d682e0739, \< d0877c479f44fe475f4c8c02c88ce9ad43e90298; \>= d47151b79e3220e72ae323b8b8e9d6da20dc884e, \< 3c94212b57bedec3a386ef3da1ef00602f5c3d1d; \>= d47151b79e3220e72ae323b8b8e9d6da20dc884e, \< 6acf340f8c1d296bcf535986175f5d0d6f2aab09; \>= d47151b79e3220e72ae323b8b8e9d6da20dc884e, \< e8d6f3ab59468e230f3253efe5cb63efa35289f7; e05194baae299f2148ab5f6bab659c6ce8d1f6d3; \>= 5.4.276, \< 5.4.296; …
- Anyone running Linux 6.9

## Description

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

nfs: Clean up /proc/net/rpc/nfs when nfs\_fs\_proc\_net\_init() fails.

syzbot reported a warning below \[1\] following a fault injection in
nfs\_fs\_proc\_net\_init(). \[0\]

When nfs\_fs\_proc\_net\_init() fails, /proc/net/rpc/nfs is not removed.

Later, rpc\_proc\_exit() tries to remove /proc/net/rpc, and the warning
is logged as the directory is not empty.

Let's handle the error of nfs\_fs\_proc\_net\_init() properly.

\[0\]:
FAULT\_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 UID: 0 PID: 6120 Comm: syz.2.27 Not tainted 6.16.0-rc1-syzkaller-00010-g2c4a1f3fe03e \#0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
 \<TASK\>
  dump\_stack\_lvl (lib/dump\_stack.c:123)
 should\_fail\_ex (lib/fault-inject.c:73 lib/fault-inject.c:174)
 should\_failslab (mm/failslab.c:46)
 kmem\_cache\_alloc\_noprof (mm/slub.c:4178 mm/slub.c:4204)
 \_\_proc\_create (fs/proc/generic.c:427)
 proc\_create\_reg (fs/proc/generic.c:554)
 proc\_create\_net\_data (fs/proc/proc\_net.c:120)
 nfs\_fs\_proc\_net\_init (fs/nfs/client.c:1409)
 nfs\_net\_init (fs/nfs/inode.c:2600)
 ops\_init (net/core/net\_namespace.c:138)
 setup\_net (net/core/net\_namespace.c:443)
 copy\_net\_ns (net/core/net\_namespace.c:576)
 create\_new\_namespaces (kernel/nsproxy.c:110)
 unshare\_nsproxy\_namespaces (kernel/nsproxy.c:218 (discriminator 4))
 ksys\_unshare (kernel/fork.c:3123)
 \_\_x64\_sys\_unshare (kernel/fork.c:3190)
 do\_syscall\_64 (arch/x86/entry/syscall\_64.c:63 arch/x86/entry/syscall\_64.c:94)
 entry\_SYSCALL\_64\_after\_hwframe (arch/x86/entry/entry\_64.S:130)
 \</TASK\>

\[1\]:
remove\_proc\_entry: removing non-empty directory 'net/rpc', leaking at least 'nfs'
 WARNING: CPU: 1 PID: 6120 at fs/proc/generic.c:727 remove\_proc\_entry+0x45e/0x530 fs/proc/generic.c:727
Modules linked in:
CPU: 1 UID: 0 PID: 6120 Comm: syz.2.27 Not tainted 6.16.0-rc1-syzkaller-00010-g2c4a1f3fe03e \#0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
 RIP: 0010:remove\_proc\_entry+0x45e/0x530 fs/proc/generic.c:727
Code: 3c 02 00 0f 85 85 00 00 00 48 8b 93 d8 00 00 00 4d 89 f0 4c 89 e9 48 c7 c6 40 ba a2 8b 48 c7 c7 60 b9 a2 8b e8 33 81 1d ff 90 \<0f\> 0b 90 90 e9 5f fe ff ff e8 04 69 5e ff 90 48 b8 00 00 00 00 00
RSP: 0018:ffffc90003637b08 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff88805f534140 RCX: ffffffff817a92c8
RDX: ffff88807da99e00 RSI: ffffffff817a92d5 RDI: 0000000000000001
RBP: ffff888033431ac0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff888033431a00
R13: ffff888033431ae4 R14: ffff888033184724 R15: dffffc0000000000
FS:  0000555580328500(0000) GS:ffff888124a62000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f71733743e0 CR3: 000000007f618000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
  sunrpc\_exit\_net+0x46/0x90 net/sunrpc/sunrpc\_syms.c:76
  ops\_exit\_list net/core/net\_namespace.c:200 \[inline\]
  ops\_undo\_list+0x2eb/0xab0 net/core/net\_namespace.c:253
  setup\_net+0x2e1/0x510 net/core/net\_namespace.c:457
  copy\_net\_ns+0x2a6/0x5f0 net/core/net\_namespace.c:574
  create\_new\_namespaces+0x3ea/0xa90 kernel/nsproxy.c:110
  unshare\_nsproxy\_namespaces+0xc0/0x1f0 kernel/nsproxy.c:218
  ksys\_unshare+0x45b/0xa40 kernel/fork.c:3121
  \_\_do\_sys\_unshare kernel/fork.c:3192 \[inline\]
  \_\_se\_sys\_unshare kernel/fork.c:3190 \[inline\]
  \_\_x64\_sys\_unshare+0x31/0x40 kernel/fork.c:3190
  do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
  do\_syscall\_64+0xcd/0x490 arch/x86/entry/syscall\_64.c:94
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
RIP: 0033:0x7fa1a6b8e929
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c
---truncated---

## Affected and fixed versions

- Linux: \>= 31dd0cda5aa0547de447aaf184812f85ccc34044, \< 8785701fd7cd52ae74c0d2b35b82568df74e9dbb; \>= 6eef21eb7a165601882dad0419a630e32d2d7a2c, \< 412534a1fb76958b88dca48360c6f3ad4f3390f4; \>= 0bbd429260821dfb81478749837d3e6377949ac6, \< b92397ce96743e4cc090207e2df2a856cb4cef08; \>= 9dd86e9d34b1078dcd647220e96a205028bf4e6f, \< 7701c245ff1ac1a126bf431e72b24547519046ff; \>= 53a0365c9f9f66e1a981bf9188d8716d682e0739, \< d0877c479f44fe475f4c8c02c88ce9ad43e90298; \>= d47151b79e3220e72ae323b8b8e9d6da20dc884e, \< 3c94212b57bedec3a386ef3da1ef00602f5c3d1d; \>= d47151b79e3220e72ae323b8b8e9d6da20dc884e, \< 6acf340f8c1d296bcf535986175f5d0d6f2aab09; \>= d47151b79e3220e72ae323b8b8e9d6da20dc884e, \< e8d6f3ab59468e230f3253efe5cb63efa35289f7; e05194baae299f2148ab5f6bab659c6ce8d1f6d3; \>= 5.4.276, \< 5.4.296; … (cvelist)
- Linux: 6.9 (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-2025-38400. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38400.md
Affected: Linux >= 31dd0cda5aa0547de447aaf184812f85ccc34044, < 8785701fd7cd52ae74c0d2b35b82568df74e9dbb; >= 6eef21eb7a165601882dad0419a630e32d2d7a2c, < 412534a1fb76958b88dca48360c6f3ad4f3390f4; >= 0bbd429260821dfb81478749837d3e6377949ac6, < b92397ce96743e4cc090207e2df2a856cb4cef08; >= 9dd86e9d34b1078dcd64722…
Fixed in: Linux 8785701fd7cd52ae74c0d2b35b82568df74e9dbb, Linux 412534a1fb76958b88dca48360c6f3ad4f3390f4, Linux 7701c245ff1ac1a126bf431e72b24547519046ff, Linux 3c94212b57bedec3a386ef3da1ef00602f5c3d1d, Linux 6acf340f8c1d296bcf535986175f5d0d6f2aab09, Linux 5.4.296

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

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

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

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

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

Linux \>= 31dd0cda5aa0547de447aaf184812f85ccc34044, \< 8785701fd7cd52ae74c0d2b35b82568df74e9dbb; \>= 6eef21eb7a165601882dad0419a630e32d2d7a2c, \< 412534a1fb76958b88dca48360c6f3ad4f3390f4; \>= 0bbd429260821dfb81478749837d3e6377949ac6, \< b92397ce96743e4cc090207e2df2a856cb4cef08; \>= 9dd86e9d34b1078dcd647220e96a205028bf4e6f, \< 7701c245ff1ac1a126bf431e72b24547519046ff; \>= 53a0365c9f9f66e1a981bf9188d8716d682e0739, \< d0877c479f44fe475f4c8c02c88ce9ad43e90298; \>= d47151b79e3220e72ae323b8b8e9d6da20dc884e, \< 3c94212b57bedec3a386ef3da1ef00602f5c3d1d; \>= d47151b79e3220e72ae323b8b8e9d6da20dc884e, \< 6acf340f8c1d296bcf535986175f5d0d6f2aab09; \>= d47151b79e3220e72ae323b8b8e9d6da20dc884e, \< e8d6f3ab59468e230f3253efe5cb63efa35289f7; e05194baae299f2148ab5f6bab659c6ce8d1f6d3; \>= 5.4.276, \< 5.4.296; …; Linux 6.9.

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

Yes. Fixed in Linux 8785701fd7cd52ae74c0d2b35b82568df74e9dbb, Linux 412534a1fb76958b88dca48360c6f3ad4f3390f4, Linux 7701c245ff1ac1a126bf431e72b24547519046ff, Linux 3c94212b57bedec3a386ef3da1ef00602f5c3d1d, Linux 6acf340f8c1d296bcf535986175f5d0d6f2aab09, Linux 5.4.296. No fix listed yet: follow the vendor advisory.

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

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/8785701fd7cd52ae74c0d2b35b82568df74e9dbb>
- patch: <https://git.kernel.org/stable/c/412534a1fb76958b88dca48360c6f3ad4f3390f4>
- patch: <https://git.kernel.org/stable/c/b92397ce96743e4cc090207e2df2a856cb4cef08>
- patch: <https://git.kernel.org/stable/c/7701c245ff1ac1a126bf431e72b24547519046ff>
- patch: <https://git.kernel.org/stable/c/d0877c479f44fe475f4c8c02c88ce9ad43e90298>
- patch: <https://git.kernel.org/stable/c/3c94212b57bedec3a386ef3da1ef00602f5c3d1d>
- patch: <https://git.kernel.org/stable/c/6acf340f8c1d296bcf535986175f5d0d6f2aab09>
- patch: <https://git.kernel.org/stable/c/e8d6f3ab59468e230f3253efe5cb63efa35289f7>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

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

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