CVE-2026-72317
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-debug-devel | errata.rockylinux.org | 6.12.0-211.64.1.el10, 5.14.0-687.56.1.el9 |
| kernel-debug-devel-matched | errata.rockylinux.org | 6.12.0-211.64.1.el10, 5.14.0-687.56.1.el9 |
| kernel-tools | errata.rockylinux.org | 6.12.0-211.64.1.el10, 5.14.0-687.56.1.el9 |
| perf | errata.rockylinux.org | 6.12.0-211.64.1.el10 |
| kernel-modules | errata.rockylinux.org | 6.12.0-211.64.1.el10, 5.14.0-687.56.1.el9 |
| kernel-64k-debug-debuginfo | errata.rockylinux.org | 5.14.0-687.56.1.el9 |
| kernel-core | errata.rockylinux.org | 6.12.0-211.64.1.el10, 5.14.0-687.56.1.el9 |
| kernel-doc | errata.rockylinux.org | 5.14.0-687.56.1.el9 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.100-125.179.amzn2023 |
| kernel-rt-64k-core | errata.rockylinux.org | 5.14.0-687.56.1.el9 |
| kernel-devel | errata.rockylinux.org | 6.12.0-211.64.1.el10, 5.14.0-687.56.1.el9 |
| kernel-debug-modules-core | errata.rockylinux.org | 5.14.0-687.56.1.el9 |
47 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 75eb6af7acdf566c68d61e98e67ee2f235201c02, 75eb6af7acdf566c68d61e98e67ee2f235201c02, 75eb6af7acdf566c68d61e98e67ee2f235201c02 |
| Linux | Linux | 6.5, 0, 6.6.145 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| linux | linux_kernel | 6.5, 6.5, 6.5 |
| amazon:2023 | kernel-livepatch-6.12.100-125.179 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.18.41-94.142 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
…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