HIGH Introduced in 3.9
vsock SourceValidation Bypass
CVE-2026-99122
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:H
KernelScan AI7.3HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: vsock/vmci: validate packet source for connected sockets vmci_transport_recv_stream_cb() looks up sockets first by the full source and destination tuple, then by destination only in the bound table. The fallback can select a non-listening socket without checking whether the packet came from its stored peer. This was reproduced with two VMCI contexts. A RST from the context not stored in a TCP_SYN_SENT socket reset that socket after it was selected by the destination-only lookup. VMCI can process notification packets in bottom-half context when the socket is not owned by user context, or defer packets to a workqueue. Use vsock_check_source() after taking the socket lock in the bottom-half path, and recheck after lock_sock() in the workqueue path. Listening sockets continue to accept packets from any source. Reply with a RST addressed from the received packet before dropping a source that fails validation. This preserves the existing reset behavior for bound non-listening and concurrently closed sockets without directing the reset to a connected socket's stored peer.
02KernelScan AI Analysis
Risk summary
Virtual machines or host processes with access to the VMCI device can forge packets that reset vsock connections or leak limited traffic-state information from other VMCI contexts on the same host. The flaw allows cross-context disruption without requiring elevated privileges inside the guest or on the host.
Vulnerability analysis
The VMCI transport's packet handler first tries to find a socket by the full source-and-destination tuple, but falls back to a destination-only lookup in the bound-socket table. That fallback could select a connected or connecting socket without verifying that the packet actually came from the peer the socket is bound to. An attacker who can send VMCI datagrams — for example, code running in a guest VM or a host process with access to /dev/vmci — can therefore inject a forged RST or notification packet that tears down a victim socket or elicits a response revealing queue-occupancy state. The fix adds an explicit source-address check (vsock_check_source) after taking the socket lock in both the bottom-half and workqueue processing paths, dropping and replying with a reset to any packet that fails validation while preserving the existing behavior for listening sockets.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.18 | 3.9 | 6.18.59 | c027f8b429db |
| 7.2 | 3.9 | 7.2.13 | 90c423b62ec9 |
| mainline | 3.9 | 7.3 | ad9a7da3fa39 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Affected — no CIP fix yet (latest 6.12.114-cip34) |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |