# CVE-2025-22024: nfsd: fix management of listener transports

> 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-416
- **Published:** 2025-04-16T14:11:45.975Z
- **Modified:** 2026-06-17T08:44:52.240Z

## Who should check

- Anyone running Linux \>= 16a471177496c8e04a9793812c187a2c1a2192fa, \< a84c80515ca8a0cdf6d06f1b6ca721224b08453e; \>= 16a471177496c8e04a9793812c187a2c1a2192fa, \< 052a34f093fb940a145493d1438e7abbfe507cdd; \>= 16a471177496c8e04a9793812c187a2c1a2192fa, \< 0f42df0ab2b11ea6b2884bdaf6dbc3be6dde7e82; \>= 16a471177496c8e04a9793812c187a2c1a2192fa, \< d093c90892607be505e801469d6674459e69ab89
- Anyone running Linux 6.10

## Description

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

nfsd: fix management of listener transports

Currently, when no active threads are running, a root user using nfsdctl
command can try to remove a particular listener from the list of previously
added ones, then start the server by increasing the number of threads,
it leads to the following problem:

\[  158.835354\] refcount\_t: addition on 0; use-after-free.
\[  158.835603\] WARNING: CPU: 2 PID: 9145 at lib/refcount.c:25 refcount\_warn\_saturate+0x160/0x1a0
\[  158.836017\] Modules linked in: rpcrdma rdma\_cm iw\_cm ib\_cm ib\_core nfsd auth\_rpcgss nfs\_acl lockd grace overlay isofs uinput snd\_seq\_dummy snd\_hrtimer nft\_fib\_inet nft\_fib\_ipv4 nft\_fib\_ipv6 nft\_fib nft\_reject\_inet nf\_reject\_ipv4 nf\_reject\_ipv6 nft\_reject nft\_ct nft\_chain\_nat nf\_nat nf\_conntrack nf\_defrag\_ipv6 nf\_defrag\_ipv4 rfkill ip\_set nf\_tables qrtr sunrpc vfat fat uvcvideo videobuf2\_vmalloc videobuf2\_memops uvc videobuf2\_v4l2 videodev videobuf2\_common snd\_hda\_codec\_generic mc e1000e snd\_hda\_intel snd\_intel\_dspcfg snd\_hda\_codec snd\_hda\_core snd\_hwdep snd\_seq snd\_seq\_device snd\_pcm snd\_timer snd soundcore sg loop dm\_multipath dm\_mod nfnetlink vsock\_loopback vmw\_vsock\_virtio\_transport\_common vmw\_vsock\_vmci\_transport vmw\_vmci vsock xfs libcrc32c crct10dif\_ce ghash\_ce vmwgfx sha2\_ce sha256\_arm64 sr\_mod sha1\_ce cdrom nvme drm\_client\_lib drm\_ttm\_helper ttm nvme\_core drm\_kms\_helper nvme\_auth drm fuse
\[  158.840093\] CPU: 2 UID: 0 PID: 9145 Comm: nfsd Kdump: loaded Tainted: G    B   W          6.13.0-rc6+ \#7
\[  158.840624\] Tainted: \[B\]=BAD\_PAGE, \[W\]=WARN
\[  158.840802\] Hardware name: VMware, Inc. VMware20,1/VBSA, BIOS VMW201.00V.24006586.BA64.2406042154 06/04/2024
\[  158.841220\] pstate: 61400005 (nZCv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
\[  158.841563\] pc : refcount\_warn\_saturate+0x160/0x1a0
\[  158.841780\] lr : refcount\_warn\_saturate+0x160/0x1a0
\[  158.842000\] sp : ffff800089be7d80
\[  158.842147\] x29: ffff800089be7d80 x28: ffff00008e68c148 x27: ffff00008e68c148
\[  158.842492\] x26: ffff0002e3b5c000 x25: ffff600011cd1829 x24: ffff00008653c010
\[  158.842832\] x23: ffff00008653c000 x22: 1fffe00011cd1829 x21: ffff00008653c028
\[  158.843175\] x20: 0000000000000002 x19: ffff00008653c010 x18: 0000000000000000
\[  158.843505\] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
\[  158.843836\] x14: 0000000000000000 x13: 0000000000000001 x12: ffff600050a26493
\[  158.844143\] x11: 1fffe00050a26492 x10: ffff600050a26492 x9 : dfff800000000000
\[  158.844475\] x8 : 00009fffaf5d9b6e x7 : ffff000285132493 x6 : 0000000000000001
\[  158.844823\] x5 : ffff000285132490 x4 : ffff600050a26493 x3 : ffff8000805e72bc
\[  158.845174\] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000098588000
\[  158.845528\] Call trace:
\[  158.845658\]  refcount\_warn\_saturate+0x160/0x1a0 (P)
\[  158.845894\]  svc\_recv+0x58c/0x680 \[sunrpc\]
\[  158.846183\]  nfsd+0x1fc/0x348 \[nfsd\]
\[  158.846390\]  kthread+0x274/0x2f8
\[  158.846546\]  ret\_from\_fork+0x10/0x20
\[  158.846714\] ---\[ end trace 0000000000000000 \]---

nfsd\_nl\_listener\_set\_doit() would manipulate the list of transports of
server's sv\_permsocks and close the specified listener but the other
list of transports (server's sp\_xprts list) would not be changed leading
to the problem above.

Instead, determined if the nfsdctl is trying to remove a listener, in
which case, delete all the existing listener transports and re-create
all-but-the-removed ones.

## Affected and fixed versions

- Linux: \>= 16a471177496c8e04a9793812c187a2c1a2192fa, \< a84c80515ca8a0cdf6d06f1b6ca721224b08453e; \>= 16a471177496c8e04a9793812c187a2c1a2192fa, \< 052a34f093fb940a145493d1438e7abbfe507cdd; \>= 16a471177496c8e04a9793812c187a2c1a2192fa, \< 0f42df0ab2b11ea6b2884bdaf6dbc3be6dde7e82; \>= 16a471177496c8e04a9793812c187a2c1a2192fa, \< d093c90892607be505e801469d6674459e69ab89 (cvelist)
- Linux: 6.10 (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-22024. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-22024.md
Affected: Linux >= 16a471177496c8e04a9793812c187a2c1a2192fa, < a84c80515ca8a0cdf6d06f1b6ca721224b08453e; >= 16a471177496c8e04a9793812c187a2c1a2192fa, < 052a34f093fb940a145493d1438e7abbfe507cdd; >= 16a471177496c8e04a9793812c187a2c1a2192fa, < 0f42df0ab2b11ea6b2884bdaf6dbc3be6dde7e82; >= 16a471177496c8e04a97938…
Fixed in: Linux 052a34f093fb940a145493d1438e7abbfe507cdd, Linux 0f42df0ab2b11ea6b2884bdaf6dbc3be6dde7e82

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

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

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

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

Linux \>= 16a471177496c8e04a9793812c187a2c1a2192fa, \< a84c80515ca8a0cdf6d06f1b6ca721224b08453e; \>= 16a471177496c8e04a9793812c187a2c1a2192fa, \< 052a34f093fb940a145493d1438e7abbfe507cdd; \>= 16a471177496c8e04a9793812c187a2c1a2192fa, \< 0f42df0ab2b11ea6b2884bdaf6dbc3be6dde7e82; \>= 16a471177496c8e04a9793812c187a2c1a2192fa, \< d093c90892607be505e801469d6674459e69ab89; Linux 6.10.

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

Yes. Fixed in Linux 052a34f093fb940a145493d1438e7abbfe507cdd, Linux 0f42df0ab2b11ea6b2884bdaf6dbc3be6dde7e82. No fix listed yet: follow the vendor advisory.

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

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/a84c80515ca8a0cdf6d06f1b6ca721224b08453e>
- patch: <https://git.kernel.org/stable/c/052a34f093fb940a145493d1438e7abbfe507cdd>
- patch: <https://git.kernel.org/stable/c/0f42df0ab2b11ea6b2884bdaf6dbc3be6dde7e82>
- patch: <https://git.kernel.org/stable/c/d093c90892607be505e801469d6674459e69ab89>

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

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