VDB

CVE-2026-63979

CVE-2026-63979 PUBLISHED CVSS 9.8 CRITICAL

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.

PackageEcosystemFixed in
kernel-debug-coreerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.ppc64le, 0:5.14.0-687.61.1.el9_8.cloud.1.0.aarch64
kernel-modules-extraerrata.rockylinux.org0: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-debuginfoerrata.rockylinux.org0: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-coreerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.aarch64
kernel-toolserrata.rockylinux.org0: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-moduleserrata.rockylinux.org0:6.12.0-211.69.1.el10_2.aarch64
kernel-rt-coreerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.aarch64, 0:5.14.0-687.61.1.el9_8.x86_64
kernel-debuginfo-common-aarch64errata.rockylinux.org0:6.12.0-211.69.1.el10_2.aarch64
python3-perferrata.rockylinux.org0:6.12.0-211.69.1.el10_2.ppc64le, 0:5.14.0-687.61.1.el9_8.ppc64le
perferrata.rockylinux.org0: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-moduleserrata.rockylinux.org0:5.14.0-687.61.1.el9_8.x86_64
kernel-develerrata.rockylinux.org0: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

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux3b3009ea8abb713b022d94fba95ec270cf6e7eae, 3b3009ea8abb713b022d94fba95ec270cf6e7eae, 3b3009ea8abb713b022d94fba95ec270cf6e7eae
LinuxLinux6.4, 0, 6.6.160
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel-livepatch-6.12.110-135.2010
amazon:2023kernel6.180
amazon:2023python3-perf6.180
amazon:2023kernel6.12-tools-devel0
amazon:2023microvm-kernel6.180
amazon:2023perf6.180
LinuxLinux3b3009ea8abb713b022d94fba95ec270cf6e7eae, 6.12.114, 6.6.160
amazon:2023bpftool6.180
amazon:2023kernel6.18-tools0
amazon:2023kernel-livepatch-6.18.44-99.1490
amazon:2023kernel6.18-modules-extra0
amazon:2023python3-perf6.120
amazon:2023kernel6.120
amazon:2023kernel6.12-modules-extra0
linuxlinux_kernel6.4, 6.4, 6.4
amazon:2023kernel6.12-headers0
amazon:2023kernel6.18-devel0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›