# CVE-2025-37876: netfs: Only create /proc/fs/netfs with CONFIG\_PROC\_FS

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

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.28% (percentile 14, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-05-09T06:45:40.934Z
- **Modified:** 2026-10-15T22:18:19.730Z

## Who should check

- Anyone running Linux \>= 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab, \< 2ef6eea2efce01d1956ace483216f6b6e26330c9; \>= 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab, \< 6c4c5e0b96a90f2a11c378e66edc1f25165e10b6; \>= 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab, \< 40cb48eba3b4b79e110c1a35d33a48cac54507a2
- Anyone running Linux 6.8

## Description

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

netfs: Only create /proc/fs/netfs with CONFIG\_PROC\_FS

When testing a special config:

CONFIG\_NETFS\_SUPPORTS=y
CONFIG\_PROC\_FS=n

The system crashes with something like:

\[    3.766197\] ------------\[ cut here \]------------
\[    3.766484\] kernel BUG at mm/mempool.c:560!
\[    3.766789\] Oops: invalid opcode: 0000 \[\#1\] SMP NOPTI
\[    3.767123\] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Tainted: G        W
\[    3.767777\] Tainted: \[W\]=WARN
\[    3.767968\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
\[    3.768523\] RIP: 0010:mempool\_alloc\_slab.cold+0x17/0x19
\[    3.768847\] Code: 50 fe ff 58 5b 5d 41 5c 41 5d 41 5e 41 5f e9 93 95 13 00
\[    3.769977\] RSP: 0018:ffffc90000013998 EFLAGS: 00010286
\[    3.770315\] RAX: 000000000000002f RBX: ffff888100ba8640 RCX: 0000000000000000
\[    3.770749\] RDX: 0000000000000000 RSI: 0000000000000003 RDI: 00000000ffffffff
\[    3.771217\] RBP: 0000000000092880 R08: 0000000000000000 R09: ffffc90000013828
\[    3.771664\] R10: 0000000000000001 R11: 00000000ffffffea R12: 0000000000092cc0
\[    3.772117\] R13: 0000000000000400 R14: ffff8881004b1620 R15: ffffea0004ef7e40
\[    3.772554\] FS:  0000000000000000(0000) GS:ffff8881b5f3c000(0000) knlGS:0000000000000000
\[    3.773061\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[    3.773443\] CR2: ffffffff830901b4 CR3: 0000000004296001 CR4: 0000000000770ef0
\[    3.773884\] PKRU: 55555554
\[    3.774058\] Call Trace:
\[    3.774232\]  \<TASK\>
\[    3.774371\]  mempool\_alloc\_noprof+0x6a/0x190
\[    3.774649\]  ? \_printk+0x57/0x80
\[    3.774862\]  netfs\_alloc\_request+0x85/0x2ce
\[    3.775147\]  netfs\_readahead+0x28/0x170
\[    3.775395\]  read\_pages+0x6c/0x350
\[    3.775623\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[    3.775928\]  page\_cache\_ra\_unbounded+0x1bd/0x2a0
\[    3.776247\]  filemap\_get\_pages+0x139/0x970
\[    3.776510\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[    3.776820\]  filemap\_read+0xf9/0x580
\[    3.777054\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[    3.777368\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[    3.777674\]  ? find\_held\_lock+0x32/0x90
\[    3.777929\]  ? netfs\_start\_io\_read+0x19/0x70
\[    3.778221\]  ? netfs\_start\_io\_read+0x19/0x70
\[    3.778489\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[    3.778800\]  ? lock\_acquired+0x1e6/0x450
\[    3.779054\]  ? srso\_alias\_return\_thunk+0x5/0xfbef5
\[    3.779379\]  netfs\_buffered\_read\_iter+0x57/0x80
\[    3.779670\]  \_\_kernel\_read+0x158/0x2c0
\[    3.779927\]  bprm\_execve+0x300/0x7a0
\[    3.780185\]  kernel\_execve+0x10c/0x140
\[    3.780423\]  ? \_\_pfx\_kernel\_init+0x10/0x10
\[    3.780690\]  kernel\_init+0xd5/0x150
\[    3.780910\]  ret\_from\_fork+0x2d/0x50
\[    3.781156\]  ? \_\_pfx\_kernel\_init+0x10/0x10
\[    3.781414\]  ret\_from\_fork\_asm+0x1a/0x30
\[    3.781677\]  \</TASK\>
\[    3.781823\] Modules linked in:
\[    3.782065\] ---\[ end trace 0000000000000000 \]---

This is caused by the following error path in netfs\_init():

        if (!proc\_mkdir("fs/netfs", NULL))
                goto error\_proc;

Fix this by adding ifdef in netfs\_main(), so that /proc/fs/netfs is only
created with CONFIG\_PROC\_FS.

## Affected and fixed versions

- Linux: \>= 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab, \< 2ef6eea2efce01d1956ace483216f6b6e26330c9; \>= 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab, \< 6c4c5e0b96a90f2a11c378e66edc1f25165e10b6; \>= 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab, \< 40cb48eba3b4b79e110c1a35d33a48cac54507a2 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-37876.md
Affected: Linux >= 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab, < 2ef6eea2efce01d1956ace483216f6b6e26330c9; >= 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab, < 6c4c5e0b96a90f2a11c378e66edc1f25165e10b6; >= 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab, < 40cb48eba3b4b79e110c1a35d33a48cac54507a2; Linux 6.8
Fixed in: Linux 2ef6eea2efce01d1956ace483216f6b6e26330c9, Linux 6c4c5e0b96a90f2a11c378e66edc1f25165e10b6, Linux 40cb48eba3b4b79e110c1a35d33a48cac54507a2

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

There is no confirmed exploitation: CVE-2025-37876 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-37876?

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab, \< 2ef6eea2efce01d1956ace483216f6b6e26330c9; \>= 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab, \< 6c4c5e0b96a90f2a11c378e66edc1f25165e10b6; \>= 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab, \< 40cb48eba3b4b79e110c1a35d33a48cac54507a2; Linux 6.8.

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

Yes. Fixed in Linux 2ef6eea2efce01d1956ace483216f6b6e26330c9, Linux 6c4c5e0b96a90f2a11c378e66edc1f25165e10b6, Linux 40cb48eba3b4b79e110c1a35d33a48cac54507a2. Upgrade Linux to 40cb48eba3b4b79e110c1a35d33a48cac54507a2 or later.

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

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/2ef6eea2efce01d1956ace483216f6b6e26330c9>
- patch: <https://git.kernel.org/stable/c/6c4c5e0b96a90f2a11c378e66edc1f25165e10b6>
- patch: <https://git.kernel.org/stable/c/40cb48eba3b4b79e110c1a35d33a48cac54507a2>

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

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