CVE-2026-63979
net/handshake: hand off the pinned file reference to accept_doit
Reported by linux · Published July 19, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-debug-core | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.ppc64le, 0:5.14.0-687.61.1.el9_8.cloud.1.0.aarch64 |
| kernel-modules-extra | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.ppc64le, 0:5.14.0-687.61.1.el9_8.ppc64le, 0:5.14.0-687.61.1.el9_8.aarch64 |
| kernel-debug-debuginfo | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.s390x, 0:6.12.0-211.69.1.el10_2.ppc64le, 0:6.12.0-211.69.1.el10_2.aarch64, 0:5.14.0-687.61.1.el9_8.x86_64 |
| kernel-rt-64k-debug-modules-core | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.aarch64 |
| kernel-tools | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.ppc64le, 0:5.14.0-687.61.1.el9_8.x86_64, 0:5.14.0-687.61.1.el9_8.cloud.1.0.aarch64, 0:5.14.0-687.61.1.el9_8.aarch64 |
| kernel-rt-debug-modules | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.aarch64 |
| kernel-rt-core | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.aarch64, 0:5.14.0-687.61.1.el9_8.x86_64 |
| kernel-debuginfo-common-aarch64 | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.aarch64 |
| python3-perf | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.ppc64le, 0:5.14.0-687.61.1.el9_8.ppc64le |
| perf | errata.rockylinux.org | 0:6.12.0-211.69.1.el10_2.s390x, 0:5.14.0-687.61.1.el9_8.ppc64le, 0:5.14.0-687.61.1.el9_8.cloud.1.0.x86_64, 0:5.14.0-687.61.1.el9_8.cloud.1.0.aarch64 |
| kernel-modules | errata.rockylinux.org | 0:5.14.0-687.61.1.el9_8.x86_64 |
| kernel-devel | errata.rockylinux.org | 0:5.14.0-687.61.1.el9_8.x86_64, 0:5.14.0-687.61.1.el9_8.s390x, 0:5.14.0-687.61.1.el9_8.cloud.1.0.x86_64 |
46 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 3b3009ea8abb713b022d94fba95ec270cf6e7eae, 3b3009ea8abb713b022d94fba95ec270cf6e7eae, 3b3009ea8abb713b022d94fba95ec270cf6e7eae |
| Linux | Linux | 6.4, 0, 6.6.160 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel-livepatch-6.12.110-135.201 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | perf6.18 | 0 |
| Linux | Linux | 3b3009ea8abb713b022d94fba95ec270cf6e7eae, 6.12.114, 6.6.160 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel-livepatch-6.18.44-99.149 | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| linux | linux_kernel | 6.4, 6.4, 6.4 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
…and 7 more
Timeline
- Jul 19, 2026 CVE Published
- Jul 20, 2026 Coalition ESS Score
- Jul 20, 2026 Security Advisory (32 in total, the first dated here)
- Aug 7, 2026 EPSS Score (30 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (33 in total, the first dated here)
- Oct 21, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-63979
vulnetix vdb fixes CVE-2026-63979
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-63979/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart