# CVE-2022-50401: nfsd: under NFSv4.1, fix double svc\_xprt\_put on rpc\_create failure

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2025-09-18T16:03:47.283Z
- **Modified:** 2026-08-05T08:58:34.948Z

## Who should check

- Anyone running Linux \>= 69151594c72a1748cf93ae5b5fa68d5084253dce, \< 707bcca9616002d204091ca7c4d1d91151104332; \>= 0c4fb76c4e711d9e4e70ddc6732310a17076175d, \< 15fc60aa5bdcf6d5f93000d3d00579fc67632ee0; \>= 22c721560ef24003bcb9c3d9c358841dcfa4e212, \< 9b4ae8c42d2ff09ed7c5832ccce5684c55e5ed23; \>= e8cac2e3067e8587f8271c2177cc5ca924a61b54, \< fddac3b4578d302ac9e51e7f03a9aae6254ae2a3; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< c1207219a4bfa50121c9345d5d165470d0a82531; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< a472f069ced8601979f53c13c0cf20236074ed46; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< e2f9f03e4537f3fcc8fd2bdd3248530c3477a371; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< d843ebd860c58a38e45527e8ec6516059f4c97f3; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< 3bc8edc98bd43540dbe648e4ef91f443d6d20a24; f5a50e848e4509448b8b91536b5d421722bf154b; …
- Anyone running Linux 5.8

## Description

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

nfsd: under NFSv4.1, fix double svc\_xprt\_put on rpc\_create failure

On error situation \`clp-\>cl\_cb\_conn.cb\_xprt\` should not be given
a reference to the xprt otherwise both client cleanup and the
error handling path of the caller call to put it. Better to
delay handing over the reference to a later branch.

\[   72.530665\] refcount\_t: underflow; use-after-free.
\[   72.531933\] WARNING: CPU: 0 PID: 173 at lib/refcount.c:28 refcount\_warn\_saturate+0xcf/0x120
\[   72.533075\] Modules linked in: nfsd(OE) nfsv4(OE) nfsv3(OE) nfs(OE) lockd(OE) compat\_nfs\_ssc(OE) nfs\_acl(OE) rpcsec\_gss\_krb5(OE) auth\_rpcgss(OE) rpcrdma(OE) dns\_resolver fscache netfs grace rdma\_cm iw\_cm ib\_cm sunrpc(OE) mlx5\_ib mlx5\_core mlxfw pci\_hyperv\_intf ib\_uverbs ib\_core xt\_MASQUERADE nf\_conntrack\_netlink nft\_counter xt\_addrtype nft\_compat br\_netfilter bridge stp llc 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 ip\_set overlay nf\_tables nfnetlink crct10dif\_pclmul crc32\_pclmul ghash\_clmulni\_intel xfs serio\_raw virtio\_net virtio\_blk net\_failover failover fuse \[last unloaded: sunrpc\]
\[   72.540389\] CPU: 0 PID: 173 Comm: kworker/u16:5 Tainted: G           OE     5.15.82-dan \#1
\[   72.541511\] Hardware name: Red Hat KVM/RHEL-AV, BIOS 1.16.0-3.module+el8.7.0+1084+97b81f61 04/01/2014
\[   72.542717\] Workqueue: nfsd4\_callbacks nfsd4\_run\_cb\_work \[nfsd\]
\[   72.543575\] RIP: 0010:refcount\_warn\_saturate+0xcf/0x120
\[   72.544299\] Code: 55 00 0f 0b 5d e9 01 50 98 00 80 3d 75 9e 39 08 00 0f 85 74 ff ff ff 48 c7 c7 e8 d1 60 8e c6 05 61 9e 39 08 01 e8 f6 51 55 00 \<0f\> 0b 5d e9 d9 4f 98 00 80 3d 4b 9e 39 08 00 0f 85 4c ff ff ff 48
\[   72.546666\] RSP: 0018:ffffb3f841157cf0 EFLAGS: 00010286
\[   72.547393\] RAX: 0000000000000026 RBX: ffff89ac6231d478 RCX: 0000000000000000
\[   72.548324\] RDX: ffff89adb7c2c2c0 RSI: ffff89adb7c205c0 RDI: ffff89adb7c205c0
\[   72.549271\] RBP: ffffb3f841157cf0 R08: 0000000000000000 R09: c0000000ffefffff
\[   72.550209\] R10: 0000000000000001 R11: ffffb3f841157ad0 R12: ffff89ac6231d180
\[   72.551142\] R13: ffff89ac6231d478 R14: ffff89ac40c06180 R15: ffff89ac6231d4b0
\[   72.552089\] FS:  0000000000000000(0000) GS:ffff89adb7c00000(0000) knlGS:0000000000000000
\[   72.553175\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[   72.553934\] CR2: 0000563a310506a8 CR3: 0000000109a66000 CR4: 0000000000350ef0
\[   72.554874\] Call Trace:
\[   72.555278\]  \<TASK\>
\[   72.555614\]  svc\_xprt\_put+0xaf/0xe0 \[sunrpc\]
\[   72.556276\]  nfsd4\_process\_cb\_update.isra.11+0xb7/0x410 \[nfsd\]
\[   72.557087\]  ? update\_load\_avg+0x82/0x610
\[   72.557652\]  ? cpuacct\_charge+0x60/0x70
\[   72.558212\]  ? dequeue\_entity+0xdb/0x3e0
\[   72.558765\]  ? queued\_spin\_unlock+0x9/0x20
\[   72.559358\]  nfsd4\_run\_cb\_work+0xfc/0x270 \[nfsd\]
\[   72.560031\]  process\_one\_work+0x1df/0x390
\[   72.560600\]  worker\_thread+0x37/0x3b0
\[   72.561644\]  ? process\_one\_work+0x390/0x390
\[   72.562247\]  kthread+0x12f/0x150
\[   72.562710\]  ? set\_kthread\_struct+0x50/0x50
\[   72.563309\]  ret\_from\_fork+0x22/0x30
\[   72.563818\]  \</TASK\>
\[   72.564189\] ---\[ end trace 031117b1c72ec616 \]---
\[   72.566019\] list\_add corruption. next-\>prev should be prev (ffff89ac4977e538), but was ffff89ac4763e018. (next=ffff89ac4763e018).
\[   72.567647\] ------------\[ cut here \]------------

## Affected and fixed versions

- Linux: \>= 69151594c72a1748cf93ae5b5fa68d5084253dce, \< 707bcca9616002d204091ca7c4d1d91151104332; \>= 0c4fb76c4e711d9e4e70ddc6732310a17076175d, \< 15fc60aa5bdcf6d5f93000d3d00579fc67632ee0; \>= 22c721560ef24003bcb9c3d9c358841dcfa4e212, \< 9b4ae8c42d2ff09ed7c5832ccce5684c55e5ed23; \>= e8cac2e3067e8587f8271c2177cc5ca924a61b54, \< fddac3b4578d302ac9e51e7f03a9aae6254ae2a3; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< c1207219a4bfa50121c9345d5d165470d0a82531; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< a472f069ced8601979f53c13c0cf20236074ed46; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< e2f9f03e4537f3fcc8fd2bdd3248530c3477a371; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< d843ebd860c58a38e45527e8ec6516059f4c97f3; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< 3bc8edc98bd43540dbe648e4ef91f443d6d20a24; f5a50e848e4509448b8b91536b5d421722bf154b; … (cvelist)
- Linux: 5.8 (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-2022-50401. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50401.md
Affected: Linux >= 69151594c72a1748cf93ae5b5fa68d5084253dce, < 707bcca9616002d204091ca7c4d1d91151104332; >= 0c4fb76c4e711d9e4e70ddc6732310a17076175d, < 15fc60aa5bdcf6d5f93000d3d00579fc67632ee0; >= 22c721560ef24003bcb9c3d9c358841dcfa4e212, < 9b4ae8c42d2ff09ed7c5832ccce5684c55e5ed23; >= e8cac2e3067e8587f8271c2…
Fixed in: Linux 707bcca9616002d204091ca7c4d1d91151104332, Linux 15fc60aa5bdcf6d5f93000d3d00579fc67632ee0, Linux 9b4ae8c42d2ff09ed7c5832ccce5684c55e5ed23, Linux 3bc8edc98bd43540dbe648e4ef91f443d6d20a24

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-2022-50401 being exploited?

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

### How serious is CVE-2022-50401?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2022-50401?

Linux \>= 69151594c72a1748cf93ae5b5fa68d5084253dce, \< 707bcca9616002d204091ca7c4d1d91151104332; \>= 0c4fb76c4e711d9e4e70ddc6732310a17076175d, \< 15fc60aa5bdcf6d5f93000d3d00579fc67632ee0; \>= 22c721560ef24003bcb9c3d9c358841dcfa4e212, \< 9b4ae8c42d2ff09ed7c5832ccce5684c55e5ed23; \>= e8cac2e3067e8587f8271c2177cc5ca924a61b54, \< fddac3b4578d302ac9e51e7f03a9aae6254ae2a3; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< c1207219a4bfa50121c9345d5d165470d0a82531; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< a472f069ced8601979f53c13c0cf20236074ed46; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< e2f9f03e4537f3fcc8fd2bdd3248530c3477a371; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< d843ebd860c58a38e45527e8ec6516059f4c97f3; \>= a4abc6b12eb1f7a533c2e7484cfa555454ff0977, \< 3bc8edc98bd43540dbe648e4ef91f443d6d20a24; f5a50e848e4509448b8b91536b5d421722bf154b; …; Linux 5.8.

### Is there a fix for CVE-2022-50401?

Yes. Fixed in Linux 707bcca9616002d204091ca7c4d1d91151104332, Linux 15fc60aa5bdcf6d5f93000d3d00579fc67632ee0, Linux 9b4ae8c42d2ff09ed7c5832ccce5684c55e5ed23, Linux 3bc8edc98bd43540dbe648e4ef91f443d6d20a24. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50401?

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/707bcca9616002d204091ca7c4d1d91151104332>
- patch: <https://git.kernel.org/stable/c/15fc60aa5bdcf6d5f93000d3d00579fc67632ee0>
- patch: <https://git.kernel.org/stable/c/9b4ae8c42d2ff09ed7c5832ccce5684c55e5ed23>
- patch: <https://git.kernel.org/stable/c/fddac3b4578d302ac9e51e7f03a9aae6254ae2a3>
- patch: <https://git.kernel.org/stable/c/c1207219a4bfa50121c9345d5d165470d0a82531>
- patch: <https://git.kernel.org/stable/c/a472f069ced8601979f53c13c0cf20236074ed46>
- patch: <https://git.kernel.org/stable/c/e2f9f03e4537f3fcc8fd2bdd3248530c3477a371>
- patch: <https://git.kernel.org/stable/c/d843ebd860c58a38e45527e8ec6516059f4c97f3>
- patch: <https://git.kernel.org/stable/c/3bc8edc98bd43540dbe648e4ef91f443d6d20a24>

## 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-2022-50401>

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