VDB

CVE-2026-72222

CVE-2026-72222 PUBLISHED CVSS 9.8 CRITICAL

sunrpc: pin svc_xprt across the asynchronous TLS handshake callback

Reported by linux · Published August 15, 2026

In the Linux kernel, the following vulnerability has been resolved: sunrpc: pin svc_xprt across the asynchronous TLS handshake callback svc_tcp_handshake() stores the raw svc_xprt pointer in tls_handshake_args.ta_data and submits the request through tls_server_hello_x509(). The handshake core takes only sock_hold(req->hr_sk); nothing references the embedding struct svc_sock that svc_tcp_handshake_done() reaches via container_of(). Two close races leave the in-flight callback writing through a freed svc_sock. svc_sock_free() calls tls_handshake_cancel() and discards its return value: a false return means handshake_complete() has already set HANDSHAKE_F_REQ_COMPLETED but hp_done() may not have finished, yet svc_sock_free() proceeds to kfree(svsk). The cancel-loser fall-through inside svc_tcp_handshake() itself produces the same window: when wait_for_completion_interruptible_timeout() returns <= 0 (timeout or signal) and tls_handshake_cancel() returns false, the function does not drain, returns, and svc_handle_xprt() calls svc_xprt_received(), which clears XPT_BUSY and can drop the last reference. A concurrent close then runs svc_sock_free() while svc_tcp_handshake_done() is still updating xpt_flags and walking svsk->sk_handshake_done. The corruption surfaces as set_bit/clear_bit RMW into the freed xpt_flags slab slot and as complete_all() walking and writing the freed wait_queue_head_t list embedded in sk_handshake_done -- a slab-corruption primitive, not a benign read. The path is reachable on any TLS-enabled NFS server whenever a connection close overlaps the tlshd downcall delivery window; the interruptible wait means signal delivery suffices, not just SVC_HANDSHAKE_TO expiry. Take svc_xprt_get(xprt) immediately before tls_server_hello_x509() so the in-flight callback owns its own reference. Release it on the two edges where the callback is guaranteed not to fire -- submission failure from tls_server_hello_x509() and a successful tls_handshake_cancel() -- and at the tail of svc_tcp_handshake_done() after complete_all(). [cel: rewrote commit message to describe the actual change]

Fixed versions

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

PackageEcosystemFixed in
kernel-zfcpdump-moduleserrata.rockylinux.org0:6.12.0-211.74.1.el10_2.s390x
kernel-debug-modules-extraerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.aarch64, 0:5.14.0-687.66.1.el9_8.x86_64, 0:5.14.0-687.66.1.el9_8.ppc64le
kernel-modules-coreerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.x86_64, 0:6.12.0-211.74.1.el10_2.ppc64le, 0:5.14.0-687.66.1.el9_8.s390x, 0:5.14.0-687.66.1.el9_8.ppc64le
kernel-debuginfoerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.s390x, 0:6.12.0-211.74.1.el10_2.ppc64le, 0:6.12.0-211.74.1.el10_2.aarch64, 0:5.14.0-687.66.1.el9_8.ppc64le
kernelerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.src, 0:6.12.0-211.74.1.el10_2.aarch64, 0:5.14.0-687.66.1.el9_8.src, 0:5.14.0-687.66.1.el9_8.aarch64
libperf-debuginfoerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.aarch64, 0:5.14.0-687.66.1.el9_8.s390x
kernel-rt-debug-debuginfoerrata.rockylinux.org0:5.14.0-687.66.1.el9_8.aarch64
kernel-debugerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.s390x, 0:5.14.0-687.66.1.el9_8.x86_64, 0:5.14.0-687.66.1.el9_8.ppc64le
kernel-tools-libs-develerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.x86_64
kernel-debug-moduleserrata.rockylinux.org0:6.12.0-211.74.1.el10_2.x86_64, 0:6.12.0-211.74.1.el10_2.aarch64
kernel-debug-debuginfoerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.s390x, 0:5.14.0-687.66.1.el9_8.s390x, 0:5.14.0-687.66.1.el9_8.ppc64le
kernel-debug-develerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.s390x, 0:5.14.0-687.66.1.el9_8.s390x

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
LinuxLinuxb3cbf98e2fdf3cb147a95161560cd25987284330, b3cbf98e2fdf3cb147a95161560cd25987284330, b3cbf98e2fdf3cb147a95161560cd25987284330
LinuxLinux6.4, 0, 6.6.145
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.12-headers0
amazon:2023perf6.180
amazon:2023kernel-livepatch-6.18.41-94.1420
amazon:2023kernel6.18-modules-extra-common0
amazon:2023bpftool6.180
amazon:2023kernel6.18-headers0
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-devel0
amazon:2023python3-perf6.120
linuxlinux_kernel6.4, 6.4, 6.4
amazon:2023kernel6.180
amazon:2023python3-perf6.180
amazon:2023kernel6.120
amazon:2023bpftool6.120
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.18-tools0
amazon:2023perf6.120

…and 7 more

Timeline

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

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-72222
vulnetix vdb fixes CVE-2026-72222

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-72222/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 ›