GPU VulnDB

Database/Kernel, userspace & hypervisor

Linux kernel BPF sockmap: use-after-free on the cached redirect socket in the send verdict path

CVE-2026-74589Kernel, userspace & hypervisorcurated

Impact

tcp_bpf_send_verdict() copies psock->sk_redir while holding the source socket lock but takes no reference for its local copy before dropping that lock around tcp_bpf_sendmsg_redir(). A concurrent sendmsg() on the same socket can consume the remaining apply_bytes, clear the cached verdict and drop the last reference, freeing the redirect socket while the first thread still dereferences the raw pointer. KASAN confirms a slab-use-after-free read. On nodes running a sockmap-based data path - Cilium and similar service meshes accelerate east-west traffic this way - this is a racy kernel UAF reachable from ordinary socket writes, which means a crash at minimum and a plausible privilege-escalation primitive on a shared node.

Who can reach it

Local: a process whose sockets are in a sockmap with a send verdict program attached, issuing concurrent sendmsg() calls on the same socket from two threads. Installing the sockmap program itself needs CAP_BPF/root, so the exposure is on nodes where the platform already runs such a program and tenants supply the traffic.

What to do

Take the patched kernel from the linked stable commits, which hold a temporary reference across the unlocked call. Rolling out means installing the kernel and rebooting each node - no module reload or livepatch is offered in the record. Where a sockmap acceleration layer is optional, disabling it removes the path until the reboot window.

References

Related entries

All Kernel, userspace & hypervisor entries

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.