# CVE-2025-68775: net/handshake: duplicate handshake cancellations leak socket

> 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.83% (percentile 55, 2026-11-26)
- **CWE:** CWE-662
- **Published:** 2026-01-13T15:28:52.069Z
- **Modified:** 2026-10-19T19:17:04.537Z

## Who should check

- Anyone running Linux \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 011ae80c49d9bfa5b4336f8bd387cd25c7593663; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< e1641177e7fb48a0a5a06658d4aab51da6656659; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 3c330f1dee3cd92b57e19b9d21dc8ce5970b09be; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 15564bd67e2975002f2a8e9defee33e321d3183f
- Anyone running Linux 6.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/handshake: duplicate handshake cancellations leak socket

When a handshake request is cancelled it is removed from the
handshake\_net-\>hn\_requests list, but it is still present in the
handshake\_rhashtbl until it is destroyed.

If a second cancellation request arrives for the same handshake request,
then remove\_pending() will return false... and assuming
HANDSHAKE\_F\_REQ\_COMPLETED isn't set in req-\>hr\_flags, we'll continue
processing through the out\_true label, where we put another reference on
the sock and a refcount underflow occurs.

This can happen for example if a handshake times out - particularly if
the SUNRPC client sends the AUTH\_TLS probe to the server but doesn't
follow it up with the ClientHello due to a problem with tlshd.  When the
timeout is hit on the server, the server will send a FIN, which triggers
a cancellation request via xs\_reset\_transport().  When the timeout is
hit on the client, another cancellation request happens via
xs\_tls\_handshake\_sync().

Add a test\_and\_set\_bit(HANDSHAKE\_F\_REQ\_COMPLETED) in the pending cancel
path so duplicate cancels can be detected.

## Affected and fixed versions

- Linux: \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 011ae80c49d9bfa5b4336f8bd387cd25c7593663; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< e1641177e7fb48a0a5a06658d4aab51da6656659; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 3c330f1dee3cd92b57e19b9d21dc8ce5970b09be; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 15564bd67e2975002f2a8e9defee33e321d3183f (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 15564bd67e2975002f2a8e9defee33e321d3183f or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-68775.md
Affected: Linux >= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, < 011ae80c49d9bfa5b4336f8bd387cd25c7593663; >= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, < e1641177e7fb48a0a5a06658d4aab51da6656659; >= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, < 3c330f1dee3cd92b57e19b9d21dc8ce5970b09be; >= 3b3009ea8abb713b022d94f…
Fixed in: Linux 011ae80c49d9bfa5b4336f8bd387cd25c7593663, Linux 3c330f1dee3cd92b57e19b9d21dc8ce5970b09be, Linux 15564bd67e2975002f2a8e9defee33e321d3183f

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-2025-68775 being exploited?

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

### How serious is CVE-2025-68775?

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

### Which versions are affected by CVE-2025-68775?

Linux \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 011ae80c49d9bfa5b4336f8bd387cd25c7593663; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< e1641177e7fb48a0a5a06658d4aab51da6656659; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 3c330f1dee3cd92b57e19b9d21dc8ce5970b09be; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 15564bd67e2975002f2a8e9defee33e321d3183f; Linux 6.4.

### Is there a fix for CVE-2025-68775?

Yes. Fixed in Linux 011ae80c49d9bfa5b4336f8bd387cd25c7593663, Linux 3c330f1dee3cd92b57e19b9d21dc8ce5970b09be, Linux 15564bd67e2975002f2a8e9defee33e321d3183f. Upgrade Linux to 15564bd67e2975002f2a8e9defee33e321d3183f or later.

### How do I check if I'm affected by CVE-2025-68775?

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/011ae80c49d9bfa5b4336f8bd387cd25c7593663>
- other: <https://git.kernel.org/stable/c/e1641177e7fb48a0a5a06658d4aab51da6656659>
- other: <https://git.kernel.org/stable/c/3c330f1dee3cd92b57e19b9d21dc8ce5970b09be>
- other: <https://git.kernel.org/stable/c/15564bd67e2975002f2a8e9defee33e321d3183f>

## 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-2025-68775>

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