CVE
CVE-2022-50401
CNA 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:…
Affected versions
All Linux kernel vulnerabilities →
- ≥ 6.1, < 6.1.2Fixed in 6.1.2
- ≥ 5.16, < 6.0.16Fixed in 6.0.16
- ≥ 5.11, < 5.15.86Fixed in 5.15.86
- ≥ 5.7.6, < 5.10.163Fixed in 5.10.163
- ≥ 5.4.49, < 5.4.229Fixed in 5.4.229
- ≥ 4.19.130, < 4.19.270Fixed in 4.19.270
- ≥ 4.14.186, < 4.14.303Fixed in 4.14.303
- ≥ 4.9.229, < 4.9.337Fixed in 4.9.337
- ≥ 4.4.229, < 4.5Fixed in 4.5
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- git.kernel.org/stable/c/15fc60aa5bdcf6d5f93000d3d00579fc67632ee0 · Patch
- git.kernel.org/stable/c/3bc8edc98bd43540dbe648e4ef91f443d6d20a24 · Patch
- git.kernel.org/stable/c/707bcca9616002d204091ca7c4d1d91151104332 · Patch
- git.kernel.org/stable/c/9b4ae8c42d2ff09ed7c5832ccce5684c55e5ed23 · Patch
- git.kernel.org/stable/c/a472f069ced8601979f53c13c0cf20236074ed46 · Patch
- git.kernel.org/stable/c/c1207219a4bfa50121c9345d5d165470d0a82531 · Patch
- git.kernel.org/stable/c/d843ebd860c58a38e45527e8ec6516059f4c97f3 · Patch
- git.kernel.org/stable/c/e2f9f03e4537f3fcc8fd2bdd3248530c3477a371 · Patch
- git.kernel.org/stable/c/fddac3b4578d302ac9e51e7f03a9aae6254ae2a3 · Patch
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.