VDB

CVE-2026-72221

CVE-2026-72221 PUBLISHED CVSS 9.8 CRITICAL

sunrpc: wait for in-flight TLS handshake callback when cancel loses race

Reported by linux · Published August 15, 2026

In the Linux kernel, the following vulnerability has been resolved: sunrpc: wait for in-flight TLS handshake callback when cancel loses race When wait_for_completion_interruptible_timeout() in svc_tcp_handshake() returns 0 (timeout) or -ERESTARTSYS (signal) and tls_handshake_cancel() then returns false, handshake_complete() has won the cancellation race: it has set HANDSHAKE_F_REQ_COMPLETED and is about to invoke svc_tcp_handshake_done(), but the callback's side effects on xpt_flags and on svsk->sk_handshake_done have not yet committed. The current code reads xpt_flags immediately to decide whether the session succeeded. Two races result. If the callback has executed set_bit(XPT_TLS_SESSION) but not yet clear_bit(XPT_HANDSHAKE), svc_tcp_handshake() sees a session, enqueues the transport, and returns. svc_xprt_received() then clears XPT_BUSY, a worker thread picks the transport up, the dispatcher in svc_handle_xprt() observes XPT_HANDSHAKE still set, and xpo_handshake is invoked a second time. That svc_tcp_handshake() calls init_completion(&svsk->sk_handshake_done) while the original callback concurrently calls complete_all() on it, corrupting the embedded swait_queue. If the callback has set HANDSHAKE_F_REQ_COMPLETED but not yet entered svc_tcp_handshake_done(), svc_tcp_handshake() reads XPT_TLS_SESSION as clear and tears the connection down even though the handshake is about to succeed. Wait for the callback to commit before inspecting xpt_flags. The completion is guaranteed to fire because handshake_complete() invokes svc_tcp_handshake_done() unconditionally once it has set HANDSHAKE_F_REQ_COMPLETED.

Fixed versions

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

PackageEcosystemFixed in
kernel-64k-debug-modules-coreerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.aarch64
kernel-rt-moduleserrata.rockylinux.org0:5.14.0-687.66.1.el9_8.x86_64
kernel-rt-64k-debug-modules-coreerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.aarch64, 0:5.14.0-687.66.1.el9_8.aarch64
libperferrata.rockylinux.org0:5.14.0-687.66.1.el9_8.x86_64, 0:5.14.0-687.66.1.el9_8.aarch64
kernel-tools-debuginfoerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.s390x, 0:5.14.0-687.66.1.el9_8.x86_64
kernel-livepatch-6.12.100-125.179Amazon Linux1:1.0-0.amzn2023
kernel-devel-matchederrata.rockylinux.org0:6.12.0-211.74.1.el10_2.ppc64le, 0:5.14.0-687.66.1.el9_8.ppc64le
kernel-debug-devel-matchederrata.rockylinux.org0:6.12.0-211.74.1.el10_2.x86_64, 0:6.12.0-211.74.1.el10_2.ppc64le
kernel-debug-coreerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.aarch64, 0:5.14.0-687.66.1.el9_8.ppc64le
python3-perf-debuginfoerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.aarch64, 0:5.14.0-687.66.1.el9_8.aarch64
kernel-abi-stablelistserrata.rockylinux.org0:6.12.0-211.74.1.el10_2.noarch, 0:5.14.0-687.66.1.el9_8.noarch
kernel-develerrata.rockylinux.org0:6.12.0-211.74.1.el10_2.x86_64, 0:6.12.0-211.74.1.el10_2.ppc64le

32 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:2023kernel-livepatch-6.12.100-125.1790
amazon:2023kernel6.12-devel0
amazon:2023kernel6.18-tools0
amazon:2023perf6.120
amazon:2023kernel-livepatch-6.18.41-94.1420
LinuxLinux6.6.145, 0, *
amazon:2023bpftool6.180
amazon:2023perf6.180
amazon:2023bpftool6.120
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-devel0
amazon:2023python3-perf6.120
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.120
amazon:2023kernel6.18-headers0

…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 11, 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-72221
vulnetix vdb fixes CVE-2026-72221

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