# CVE-2026-72221: sunrpc: wait for in-flight TLS handshake callback when cancel loses race

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.64% (percentile 45, 2026-11-28)
- **Published:** 2026-08-15T05:54:14.539Z
- **Modified:** 2026-10-16T19:17:14.690Z

## Who should check

- Anyone running Linux \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< 0d8ceb39884148dc7a2fdf71e1cac5961ed1d2b9; \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< e0f4691d42a54d359d8b64509fd9ab938d4f2a33; \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< 65b23bec1fca6e9ebdc3e6041ebf8c6ab074141b; \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< a4f878e8ecd729ccf2e50993444e217583adeace; \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< d00e32f84ca1a77cb67a3fbf59f58dada95f5a21
- Anyone running Linux 6.4

## Description

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.

## Affected and fixed versions

- Linux: \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< 0d8ceb39884148dc7a2fdf71e1cac5961ed1d2b9; \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< e0f4691d42a54d359d8b64509fd9ab938d4f2a33; \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< 65b23bec1fca6e9ebdc3e6041ebf8c6ab074141b; \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< a4f878e8ecd729ccf2e50993444e217583adeace; \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< d00e32f84ca1a77cb67a3fbf59f58dada95f5a21 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-72221. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-72221.md
Affected: Linux >= b3cbf98e2fdf3cb147a95161560cd25987284330, < 0d8ceb39884148dc7a2fdf71e1cac5961ed1d2b9; >= b3cbf98e2fdf3cb147a95161560cd25987284330, < e0f4691d42a54d359d8b64509fd9ab938d4f2a33; >= b3cbf98e2fdf3cb147a95161560cd25987284330, < 65b23bec1fca6e9ebdc3e6041ebf8c6ab074141b; >= b3cbf98e2fdf3cb147a9516…
Fixed in: Linux 0d8ceb39884148dc7a2fdf71e1cac5961ed1d2b9, Linux 65b23bec1fca6e9ebdc3e6041ebf8c6ab074141b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-72221 being exploited?

There is no confirmed exploitation: CVE-2026-72221 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.64% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-72221?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-72221?

Linux \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< 0d8ceb39884148dc7a2fdf71e1cac5961ed1d2b9; \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< e0f4691d42a54d359d8b64509fd9ab938d4f2a33; \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< 65b23bec1fca6e9ebdc3e6041ebf8c6ab074141b; \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< a4f878e8ecd729ccf2e50993444e217583adeace; \>= b3cbf98e2fdf3cb147a95161560cd25987284330, \< d00e32f84ca1a77cb67a3fbf59f58dada95f5a21; Linux 6.4.

### Is there a fix for CVE-2026-72221?

Yes. Fixed in Linux 0d8ceb39884148dc7a2fdf71e1cac5961ed1d2b9, Linux 65b23bec1fca6e9ebdc3e6041ebf8c6ab074141b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-72221?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/0d8ceb39884148dc7a2fdf71e1cac5961ed1d2b9>
- other: <https://git.kernel.org/stable/c/e0f4691d42a54d359d8b64509fd9ab938d4f2a33>
- other: <https://git.kernel.org/stable/c/65b23bec1fca6e9ebdc3e6041ebf8c6ab074141b>
- other: <https://git.kernel.org/stable/c/a4f878e8ecd729ccf2e50993444e217583adeace>
- other: <https://git.kernel.org/stable/c/d00e32f84ca1a77cb67a3fbf59f58dada95f5a21>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-72221>

HTML: <https://flawdb.com/CVE-2026-72221> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-72221>
