Database/Kernel, userspace & hypervisor
Linux kernel sunrpc: svc_sock freed while the TLS handshake callback is still writing to it
Impact
svc_tcp_handshake() hands the raw svc_xprt pointer to the handshake core, which only holds a reference on the socket - nothing pins the enclosing svc_sock that the callback reaches through container_of(). Two close races let svc_sock_free() kfree the structure while svc_tcp_handshake_done() is still running: svc_sock_free() ignores the tls_handshake_cancel() return value, and the cancel-loser path in svc_tcp_handshake() returns without draining. The commit message is explicit that the result is set_bit/clear_bit read-modify-write into a freed slab slot and complete_all() walking a freed wait_queue_head_t - a slab-corruption primitive, not a benign read. Reachable on any TLS-enabled NFS server when a connection close overlaps the tlshd downcall; signal delivery suffices. This is a distinct defect from the cancellation-ordering bug fixed alongside it, with its own commits.
Who can reach it
An unauthenticated client with network reach to a TLS-enabled RPC/NFS server that can open connections and close them during the handshake window. No credentials required.
What to do
Apply the stable-kernel fix, which takes svc_xprt_get() before tls_server_hello_x509() and releases it on the submission-failure, successful-cancel and callback-tail edges. Kernel update plus reboot on each NFS/RPC server; failover first if clustered. Turning off xprtsec/TLS removes the path at the cost of wire encryption. No vendor advisory beyond the kernel stable commits is present in the record.
References
Related entries
- Linux kernel SUNRPC client: use-after-free on the upper rpc_clnt when a TLS mount handshake fails fatallyCVE-2026-72317 · Linux kernel SUNRPC client (xs_tcp_tls_setup_socket, upper rpc_clnt lifetime)Critical
- Linux kernel (net/xfrm): The IPsec input path validates a security association before taking the state lock, so a stateCVE-2026-72451 · Linux kernel (net/xfrm)Critical
- Linux kernel (net/xfrm): Async ESP resumption holds a reference on the original skbCVE-2026-72463 · Linux kernel (net/xfrm)Critical
- Linux kernel NFS client: file lock list traversed without nfsi->rwsem, allowing use-after-free on lock structuresCVE-2026-72472 · Linux kernel NFS client (file lock list traversal during delegation recall and state recovery)Critical
- Linux kernel SoftiWARP connection manager (siw_cm, endpoint/socket disassociation): A malformed MPA request duringCVE-2026-74345 · Linux kernel SoftiWARP connection manager (siw_cm, endpoint/socket disassociation)Critical
- Linux kernel (drivers/nvme/host): An off-by-one in the Flexible Data Placement index check accepts a placement indexCVE-2026-74361 · Linux kernel (drivers/nvme/host)Critical
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.