vsock/vmci: validate packet source for connected sockets
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel cdd1f99eaa4d4db82d506eb50e724460671c7cac, Kernel 90c423b62ec9be08177f74b07a47937ca8d2035b, Kernel ad9a7da3fa39c2d616ec0dd3cf6e30531d032fe7 and 4 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=d021c344051af91f42c5ba9fdedc176740cbd238 <cdd1f99eaa4d4db82d506eb50e724460671c7cac, >=d021c344051af91f42c5ba9fdedc176740cbd238 <90c423b62ec9be08177f74b07a47937ca8d2035b, >=d021c344051af91f42c5ba9fdedc176740cbd238 <ad9a7da3fa39c2d616ec0dd3cf6e30531d032fe7, >=d021c344051af91f42c5ba9fdedc176740cbd238 <c027f8b429dbb2157fc1b503df196e272d947c89, =3.9 | cdd1f99eaa4d4db82d506eb50e724460671c7cac, 90c423b62ec9be08177f74b07a47937ca8d2035b, ad9a7da3fa39c2d616ec0dd3cf6e30531d032fe7, c027f8b429dbb2157fc1b503df196e272d947c89 |
| linux-kernel: Kernel | >=6.13.0 <6.18.59, >=6.19.0 <7.2.13, >=3.9.0 <6.12.117 | 6.18.59, 7.2.13, 6.12.117 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket