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.
CVSS Details
- CVSS 3.1 Base Score: 9.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade kernel6.18-modules-extraUpgrade microvm-kernel6.18Upgrade kernel6.18-debuginfo-common-x86_64Upgrade kernel6.18-develUpgrade bpftool6.18Upgrade kernel6.18-modules-extra-commonUpgrade kernel6.18Upgrade kernel6.18-tools-develUpgrade perf6.18Upgrade kernel-livepatch-6.18.44-99.149Upgrade kernel6.18-tools-debuginfoUpgrade python3-perf6.18Upgrade bpftool6.18-debuginfoUpgrade python3-perf6.18-debuginfoUpgrade kernel6.18-headersUpgrade kernel6.18-debuginfoUpgrade kernel6.18-toolsUpgrade kernel6.18-debuginfo-common-aarch64Upgrade perf6.18-debuginfo | Sep 30, 2026 | Jul 19, 2026 |
| Redhat_linux | — | No solution exists | Aug 10, 2026 | Jul 19, 2026 |
| Ubuntu | — | Upgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-7.0.0-1011-oracleUpgrade linux-image-7.0.0-1016-nvidia-64kUpgrade linux-image-nvidia-tegra-6.8Upgrade linux-image-gcp-64kUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-azure-fde-7.0Upgrade linux-image-raspi-realtimeUpgrade linux-image-raspiUpgrade linux-image-azure-7.0Upgrade linux-image-nvidia-bosUpgrade linux-image-6.8.0-1035-nvidia-tegraUpgrade linux-image-nvidia-7.0Upgrade linux-image-7.0.0-1009-aws-64kUpgrade linux-image-azureUpgrade linux-image-7.0.0-1008-oracleUpgrade linux-image-7.0.0-1008-oracle-64kUpgrade linux-image-nvidia-tegraUpgrade linux-image-nvidia-bos-7.0Upgrade linux-image-azure-fdeUpgrade linux-image-nvidia-64k-7.0Upgrade linux-image-oracle-7.0Upgrade linux-image-ibm-7.0Upgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-7.0.0-1009-awsUpgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-nvidiaUpgrade linux-image-7.0.0-1010-ibmUpgrade linux-image-ibmUpgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-7.0.0-2016-nvidia-bosUpgrade linux-image-nvidia-bos-64kUpgrade linux-image-gcpUpgrade linux-image-6.8.0-1035-nvidia-tegra-rtUpgrade linux-image-aws-7.0Upgrade linux-image-nvidia-tegra-rtUpgrade linux-image-7.0.0-1009-azure-fdeUpgrade linux-image-aws-64k-7.0Upgrade linux-image-nvidia-tegra-rt-6.8Upgrade linux-image-oracleUpgrade linux-image-nvidia-64kUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-7.0.0-2016-nvidia-bos-64kUpgrade linux-image-7.0.0-1010-azureUpgrade linux-image-7.0.0-1015-raspi-realtimeUpgrade linux-image-raspi-realtime-7.0Upgrade linux-image-raspi-7.0Upgrade linux-image-gcp-7.0Upgrade linux-image-aws-64kUpgrade linux-image-oracle-64kUpgrade linux-image-7.0.0-1011-oracle-64kUpgrade linux-image-7.0.0-1014-azureUpgrade linux-image-7.0.0-1015-raspiUpgrade linux-image-7.0.0-1016-nvidiaUpgrade linux-image-awsUpgrade linux-image-oracle-64k-7.0 | Jul 21, 2026 | Jul 20, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Aug 27, 2026 | Jul 19, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub