# CVE-2026-63979: net/handshake: hand off the pinned file reference to accept\_doit

> 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 52, 2026-12-01)
- **CWE:** CWE-416
- **Published:** 2026-07-19T14:56:03.177Z
- **Modified:** 2026-11-12T18:46:29.147Z

## Who should check

- Anyone running Linux \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< b869e3e4ce1996df23b3efdbbe9a64c4ab81d745; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 2f28dbb30b88eafab8d49aaec94710b4e12dea8e; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 68eba6519cbd6359fb554a9720f3a3b6b2eba23f; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< c06876d4fac38f35820946ee3b1be7d7da799cd4; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< f4251190e58b209999c1ba9e6d2976136a1be055
- Anyone running Linux 6.4

## Description

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

net/handshake: hand off the pinned file reference to accept\_doit

handshake\_req\_next() removes the request from the per-net
pending list and drops hn\_lock before handshake\_nl\_accept\_doit()
reads req-\>hr\_sk-\>sk\_socket and dereferences sock-\>file (once in
FD\_PREPARE() and again in get\_file()).  In that window a
consumer running tls\_handshake\_cancel() followed by sockfd\_put()
(svc\_sock\_free) or \_\_fput\_sync() (xs\_reset\_transport) releases
sock-\>file.  sock\_release() then runs sock\_orphan(), zeroing
sk\_socket, and frees the struct socket.  The accept-side code
either reads NULL through sk\_socket or chases freed memory.

The submit-side sock\_hold() does not prevent this.  sk\_refcnt
protects struct sock, but struct socket and sock-\>file are
independently refcounted via the file descriptor the consumer
owns.  Pinning sk leaves sock and sock-\>file unprotected.

Retarget the accept-side dereferences at req-\>hr\_file, which was
pinned at submit time, instead of req-\>hr\_sk-\>sk\_socket-\>file.
Pinning on its own is not sufficient: a consumer that cancels
between handshake\_req\_next() returning and accept\_doit reaching
FD\_PREPARE() takes the !remove\_pending() branch in
handshake\_req\_cancel() and drops hr\_file before the accept side
takes its own reference.  Hand off an additional file reference
inside handshake\_req\_next(), under hn\_lock, so the accept side
operates on a reference that no concurrent handshake\_req\_cancel()
can revoke.  FD\_PREPARE() consumes that handed-off reference,
either by transferring it to the new fd in fd\_publish() or by
dropping it in the cleanup destructor on error; the explicit
get\_file() that previously balanced FD\_PREPARE() is therefore
redundant and goes away.

Update handshake\_req\_cancel\_test2 and \_test3 to simulate the
FD\_PREPARE() consumption with an fput() so the kunit file-count
assertions stay balanced.

## Affected and fixed versions

- Linux: \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< b869e3e4ce1996df23b3efdbbe9a64c4ab81d745; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 2f28dbb30b88eafab8d49aaec94710b4e12dea8e; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 68eba6519cbd6359fb554a9720f3a3b6b2eba23f; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< c06876d4fac38f35820946ee3b1be7d7da799cd4; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< f4251190e58b209999c1ba9e6d2976136a1be055 (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-63979. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-63979.md
Affected: Linux >= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, < b869e3e4ce1996df23b3efdbbe9a64c4ab81d745; >= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, < 2f28dbb30b88eafab8d49aaec94710b4e12dea8e; >= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, < 68eba6519cbd6359fb554a9720f3a3b6b2eba23f; >= 3b3009ea8abb713b022d94f…
Fixed in: Linux 2f28dbb30b88eafab8d49aaec94710b4e12dea8e, Linux 68eba6519cbd6359fb554a9720f3a3b6b2eba23f

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

There is no confirmed exploitation: CVE-2026-63979 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-12-01).

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

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

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

Linux \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< b869e3e4ce1996df23b3efdbbe9a64c4ab81d745; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 2f28dbb30b88eafab8d49aaec94710b4e12dea8e; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< 68eba6519cbd6359fb554a9720f3a3b6b2eba23f; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< c06876d4fac38f35820946ee3b1be7d7da799cd4; \>= 3b3009ea8abb713b022d94fba95ec270cf6e7eae, \< f4251190e58b209999c1ba9e6d2976136a1be055; Linux 6.4.

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

Yes. Fixed in Linux 2f28dbb30b88eafab8d49aaec94710b4e12dea8e, Linux 68eba6519cbd6359fb554a9720f3a3b6b2eba23f. No fix listed yet: follow the vendor advisory.

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

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/b869e3e4ce1996df23b3efdbbe9a64c4ab81d745>
- patch: <https://git.kernel.org/stable/c/2f28dbb30b88eafab8d49aaec94710b4e12dea8e>
- patch: <https://git.kernel.org/stable/c/68eba6519cbd6359fb554a9720f3a3b6b2eba23f>
- patch: <https://git.kernel.org/stable/c/c06876d4fac38f35820946ee3b1be7d7da799cd4>
- patch: <https://git.kernel.org/stable/c/f4251190e58b209999c1ba9e6d2976136a1be055>

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

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