vsock/virtio: fix accept queue count leak on transport mismatch
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c0cfa2d8a788fcf45df5bf4070ab2474c88d543a · < e9edf9893cf26d060705c910a9b62d8cc96ed56a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
vsock/virtio: fix accept queue count leak on transport mismatch
virtio_transport_recv_listen() calls sk_acceptq_added() before vsock_assign_transport(). If vsock_assign_transport() fails or selects a different transport, the error path returns without calling sk_acceptq_removed(), permanently incrementing sk_ack_backlog.
After approximately backlog+1 such failures, sk_acceptq_is_full() returns true, causing the listener to reject all new connections.
Fix by moving sk_acceptq_added() to after the transport validation, matching the pattern used by vmci_transport and hyperv_transport.
From the CVE record · Linux
A Linux kernel vsock/virtio listener can leak its accept queue count when transport assignment fails or selects a different transport. After approximately backlog+1 such failures, the listener rejects new connections. The input does not specify whether an attacker needs authentication or user interaction to trigger this.
Teams running Linux kernels with vsock/virtio should check whether their versions are affected; no affected versions are specified.