# CVE-2026-64523: net/handshake: Take a long-lived file reference at submit

> 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.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-07-25T09:20:47.606Z
- **Modified:** 2026-11-12T21:11:24.800Z

## Who should check

- Anyone running Linux \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 22e371a93563c30ebebc576db049785e0d7fc617; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 685b10dd0e32c7782cead16c8cf055c609678583; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< b913801ad9b9a51437d84d030ec6843e08976bd6; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 16eaba5aa89c04eea125905bb8f988c1897f4f29; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 09dba37eee70d0596e26645015f1aa95a9848e9d
- Anyone running Linux 6.4

## Description

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

net/handshake: Take a long-lived file reference at submit

handshake\_nl\_accept\_doit() needs the file pointer backing
req-\>hr\_sk-\>sk\_socket to survive the window between
handshake\_req\_next() and the subsequent FD\_PREPARE() and get\_file().
The submit-side sock\_hold() does not provide that.  sk\_refcnt keeps
struct sock alive, but struct socket is owned by sock-\>file: when
the consumer fputs the last file reference, sock\_release() tears
the socket down regardless of any sock\_hold.

Add an hr\_file pointer to struct handshake\_req and acquire an
explicit reference on sock-\>file during handshake\_req\_submit().
handshake\_complete() and handshake\_req\_cancel() release the
reference on the completion-bit-winning path.

The submit error path must also release the file reference, but
after rhashtable insertion a concurrent handshake\_req\_cancel() can
discover the request and race the error path.  Gate the error-path
cleanup -- sk\_destruct restoration, fput, and request destruction
-- with test\_and\_set\_bit(HANDSHAKE\_F\_REQ\_COMPLETED), the same
serialization handshake\_complete() and handshake\_req\_cancel()
already use.  When cancel has already claimed ownership, the submit
error path returns without touching the request; socket teardown
handles final destruction.

The accept-side dereferences are not yet retargeted; that change
comes in the next patch.

## Affected and fixed versions

- Linux: \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 22e371a93563c30ebebc576db049785e0d7fc617; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 685b10dd0e32c7782cead16c8cf055c609678583; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< b913801ad9b9a51437d84d030ec6843e08976bd6; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 16eaba5aa89c04eea125905bb8f988c1897f4f29; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 09dba37eee70d0596e26645015f1aa95a9848e9d (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 09dba37eee70d0596e26645015f1aa95a9848e9d 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-64523. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64523.md
Affected: Linux >= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, < 22e371a93563c30ebebc576db049785e0d7fc617; >= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, < 685b10dd0e32c7782cead16c8cf055c609678583; >= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, < b913801ad9b9a51437d84d030ec6843e08976bd6; >= 3b3009ea8abb713b022d94f…
Fixed in: Linux 22e371a93563c30ebebc576db049785e0d7fc617, Linux 685b10dd0e32c7782cead16c8cf055c609678583, Linux 16eaba5aa89c04eea125905bb8f988c1897f4f29, Linux 09dba37eee70d0596e26645015f1aa95a9848e9d

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

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

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

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

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

Linux \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 22e371a93563c30ebebc576db049785e0d7fc617; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 685b10dd0e32c7782cead16c8cf055c609678583; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< b913801ad9b9a51437d84d030ec6843e08976bd6; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 16eaba5aa89c04eea125905bb8f988c1897f4f29; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 09dba37eee70d0596e26645015f1aa95a9848e9d; Linux 6.4.

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

Yes. Fixed in Linux 22e371a93563c30ebebc576db049785e0d7fc617, Linux 685b10dd0e32c7782cead16c8cf055c609678583, Linux 16eaba5aa89c04eea125905bb8f988c1897f4f29, Linux 09dba37eee70d0596e26645015f1aa95a9848e9d. Upgrade Linux to 09dba37eee70d0596e26645015f1aa95a9848e9d or later.

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

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

- patch: <https://git.kernel.org/stable/c/22e371a93563c30ebebc576db049785e0d7fc617>
- patch: <https://git.kernel.org/stable/c/685b10dd0e32c7782cead16c8cf055c609678583>
- patch: <https://git.kernel.org/stable/c/b913801ad9b9a51437d84d030ec6843e08976bd6>
- patch: <https://git.kernel.org/stable/c/16eaba5aa89c04eea125905bb8f988c1897f4f29>
- patch: <https://git.kernel.org/stable/c/09dba37eee70d0596e26645015f1aa95a9848e9d>

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

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