VDB

CVE-2026-72317

CVE-2026-72317 PUBLISHED CVSS 9.8 CRITICAL

SUNRPC: pin upper rpc_clnt across the TLS connect_worker

Reported by linux · Published August 15, 2026

In the Linux kernel, the following vulnerability has been resolved: SUNRPC: pin upper rpc_clnt across the TLS connect_worker The TLS connect path has a use-after-free: nothing pins the upper rpc_clnt across the delayed connect_worker. xs_connect() stores task->tk_client in sock_xprt::clnt as a raw pointer and queues the worker; for TLS-secured transports that worker is xs_tcp_tls_setup_socket(), which reads several fields out of the saved pointer (cl_timeout, cl_program, cl_prog, cl_vers, cl_cred, cl_stats) to construct the args for the inner handshake rpc_clnt. The xprt does not reference the rpc_clnt; the rpc_clnt references the xprt. xs_destroy() does cancel the connect_worker, but it runs only when the xprt's refcount drops to zero, which cannot happen until the rpc_clnt releases its cl_xprt reference in rpc_free_client_work(). When a TLS handshake fails fatally (for example, an mTLS mount whose client cert does not match the server), the connecting task is woken with -EACCES and exits, the mount caller invokes rpc_shutdown_client(), and the upper rpc_clnt is freed before the queued connect_worker fires. xs_tcp_tls_setup_socket() then dereferences the freed clnt, producing the refcount_t underflow Michael Nemanov reported. Take a reference on the upper rpc_clnt in xs_connect() for TLS transports via a new rpc_hold_client() helper, and drop it in the connect_worker's exit path with rpc_release_client(). The xprt_lock_connect() / xprt_unlock_connect() pairing already serialises xs_connect() with xs_tcp_tls_setup_socket(), so the take and release are balanced one-for-one. The non-TLS connect worker (xs_tcp_setup_socket) never reads sock_xprt::clnt, so leave that path alone and avoid the clnt-holds-xprt-holds-clnt cycle that would otherwise prevent xprt destruction.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-debug-develerrata.rockylinux.org6.12.0-211.64.1.el10, 5.14.0-687.56.1.el9
kernel-debug-devel-matchederrata.rockylinux.org6.12.0-211.64.1.el10, 5.14.0-687.56.1.el9
kernel-toolserrata.rockylinux.org6.12.0-211.64.1.el10, 5.14.0-687.56.1.el9
perferrata.rockylinux.org6.12.0-211.64.1.el10
kernel-moduleserrata.rockylinux.org6.12.0-211.64.1.el10, 5.14.0-687.56.1.el9
kernel-64k-debug-debuginfoerrata.rockylinux.org5.14.0-687.56.1.el9
kernel-coreerrata.rockylinux.org6.12.0-211.64.1.el10, 5.14.0-687.56.1.el9
kernel-docerrata.rockylinux.org5.14.0-687.56.1.el9
kernel6.12-tools-develAmazon Linux1:6.12.100-125.179.amzn2023
kernel-rt-64k-coreerrata.rockylinux.org5.14.0-687.56.1.el9
kernel-develerrata.rockylinux.org6.12.0-211.64.1.el10, 5.14.0-687.56.1.el9
kernel-debug-modules-coreerrata.rockylinux.org5.14.0-687.56.1.el9

47 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux75eb6af7acdf566c68d61e98e67ee2f235201c02, 75eb6af7acdf566c68d61e98e67ee2f235201c02, 75eb6af7acdf566c68d61e98e67ee2f235201c02
LinuxLinux6.5, 0, 6.6.145
amazon:2023kernel6.12-tools-devel0
amazon:2023bpftool6.120
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.120
amazon:2023kernel6.18-tools0
amazon:2023kernel6.18-modules-extra0
amazon:2023python3-perf6.120
linuxlinux_kernel6.5, 6.5, 6.5
amazon:2023kernel-livepatch-6.12.100-125.1790
amazon:2023kernel6.180
amazon:2023kernel-livepatch-6.18.41-94.1420
amazon:2023kernel6.12-tools0
amazon:2023bpftool6.180
amazon:2023kernel6.18-headers0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023microvm-kernel6.180
amazon:2023kernel6.12-devel0

…and 7 more

Timeline

  • Aug 15, 2026 Coalition ESS Score
  • Aug 15, 2026 CVE Published
  • Aug 19, 2026 Security Advisory (4 in total, the first dated here)
  • Aug 24, 2026 EPSS Score (30 in total, the first dated here)
  • Oct 9, 2026 Distribution Patch (5 in total, the first dated here)
  • Oct 20, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-72317
vulnetix vdb fixes CVE-2026-72317

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-72317/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›