# CVE-2026-72317: SUNRPC: pin upper rpc\_clnt across the TLS connect\_worker

> 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.65% (percentile 46, 2026-11-28)
- **Published:** 2026-08-15T05:55:31.022Z
- **Modified:** 2026-10-16T19:17:22.153Z

## Who should check

- Anyone running Linux \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< 79cd550f8c884523b604fbfa43eb02def74d6224; \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< 7a65b41b657b71d5a77861f47dd13eb4bc8e10d0; \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< 5b0427ba582d143a364301f825f4e32272f06d2d; \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< d49f6d098ed48775b9d27a9f9c5c220fdf76f102; \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< 46bc86c833956219bbfd246c1ffd832a479c5199
- Anyone running Linux 6.5

## Description

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.

## Affected and fixed versions

- Linux: \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< 79cd550f8c884523b604fbfa43eb02def74d6224; \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< 7a65b41b657b71d5a77861f47dd13eb4bc8e10d0; \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< 5b0427ba582d143a364301f825f4e32272f06d2d; \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< d49f6d098ed48775b9d27a9f9c5c220fdf76f102; \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< 46bc86c833956219bbfd246c1ffd832a479c5199 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- Upgrade Linux to 46bc86c833956219bbfd246c1ffd832a479c5199 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-72317.md
Affected: Linux >= 75eb6af7acdf566c68d61e98e67ee2f235201c02, < 79cd550f8c884523b604fbfa43eb02def74d6224; >= 75eb6af7acdf566c68d61e98e67ee2f235201c02, < 7a65b41b657b71d5a77861f47dd13eb4bc8e10d0; >= 75eb6af7acdf566c68d61e98e67ee2f235201c02, < 5b0427ba582d143a364301f825f4e32272f06d2d; >= 75eb6af7acdf566c68d61e9…
Fixed in: Linux 79cd550f8c884523b604fbfa43eb02def74d6224, Linux 7a65b41b657b71d5a77861f47dd13eb4bc8e10d0, Linux 5b0427ba582d143a364301f825f4e32272f06d2d, Linux 46bc86c833956219bbfd246c1ffd832a479c5199

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-72317 being exploited?

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

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

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

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

Linux \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< 79cd550f8c884523b604fbfa43eb02def74d6224; \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< 7a65b41b657b71d5a77861f47dd13eb4bc8e10d0; \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< 5b0427ba582d143a364301f825f4e32272f06d2d; \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< d49f6d098ed48775b9d27a9f9c5c220fdf76f102; \>= 75eb6af7acdf566c68d61e98e67ee2f235201c02, \< 46bc86c833956219bbfd246c1ffd832a479c5199; Linux 6.5.

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

Yes. Fixed in Linux 79cd550f8c884523b604fbfa43eb02def74d6224, Linux 7a65b41b657b71d5a77861f47dd13eb4bc8e10d0, Linux 5b0427ba582d143a364301f825f4e32272f06d2d, Linux 46bc86c833956219bbfd246c1ffd832a479c5199. Upgrade Linux to 46bc86c833956219bbfd246c1ffd832a479c5199 or later.

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

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/79cd550f8c884523b604fbfa43eb02def74d6224>
- other: <https://git.kernel.org/stable/c/7a65b41b657b71d5a77861f47dd13eb4bc8e10d0>
- other: <https://git.kernel.org/stable/c/5b0427ba582d143a364301f825f4e32272f06d2d>
- other: <https://git.kernel.org/stable/c/d49f6d098ed48775b9d27a9f9c5c220fdf76f102>
- other: <https://git.kernel.org/stable/c/46bc86c833956219bbfd246c1ffd832a479c5199>

## 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-72317>

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