CVE-2026-72221
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-64k-debug-modules-core | errata.rockylinux.org | 0:6.12.0-211.74.1.el10_2.aarch64 |
| kernel-rt-modules | errata.rockylinux.org | 0:5.14.0-687.66.1.el9_8.x86_64 |
| kernel-rt-64k-debug-modules-core | errata.rockylinux.org | 0:6.12.0-211.74.1.el10_2.aarch64, 0:5.14.0-687.66.1.el9_8.aarch64 |
| libperf | errata.rockylinux.org | 0:5.14.0-687.66.1.el9_8.x86_64, 0:5.14.0-687.66.1.el9_8.aarch64 |
| kernel-tools-debuginfo | errata.rockylinux.org | 0: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.179 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-devel-matched | errata.rockylinux.org | 0:6.12.0-211.74.1.el10_2.ppc64le, 0:5.14.0-687.66.1.el9_8.ppc64le |
| kernel-debug-devel-matched | errata.rockylinux.org | 0:6.12.0-211.74.1.el10_2.x86_64, 0:6.12.0-211.74.1.el10_2.ppc64le |
| kernel-debug-core | errata.rockylinux.org | 0:6.12.0-211.74.1.el10_2.aarch64, 0:5.14.0-687.66.1.el9_8.ppc64le |
| python3-perf-debuginfo | errata.rockylinux.org | 0:6.12.0-211.74.1.el10_2.aarch64, 0:5.14.0-687.66.1.el9_8.aarch64 |
| kernel-abi-stablelists | errata.rockylinux.org | 0:6.12.0-211.74.1.el10_2.noarch, 0:5.14.0-687.66.1.el9_8.noarch |
| kernel-devel | errata.rockylinux.org | 0: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
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b3cbf98e2fdf3cb147a95161560cd25987284330, b3cbf98e2fdf3cb147a95161560cd25987284330, b3cbf98e2fdf3cb147a95161560cd25987284330 |
| Linux | Linux | 6.4, 0, 6.6.145 |
| amazon:2023 | kernel-livepatch-6.12.100-125.179 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.18.41-94.142 | 0 |
| Linux | Linux | 6.6.145, 0, * |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
…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