Skip to contentSkip to conversation

CVE-2026-46214: vsock/virtio: fix accept queue count leak on transport mismatch

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-46214 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.5 with commit c0cfa2d8a788fcf45df5bf4070ab2474c88d543a and fixed in 6.6.140 with commit 65c484726e74013a2ec7ba67a34d87760ae8f390
	Issue introduced in 5.5 with commit c0cfa2d8a788fcf45df5bf4070ab2474c88d543a and fixed in 6.12.90 with commit 29371f3cc83e2a92265b4768014a30b80234112f
	Issue introduced in 5.5 with commit c0cfa2d8a788fcf45df5bf4070ab2474c88d543a and fixed in 6.18.32 with commit e9edf9893cf26d060705c910a9b62d8cc96ed56a
	Issue introduced in 5.5 with commit c0cfa2d8a788fcf45df5bf4070ab2474c88d543a and fixed in 7.0.9 with commit 6d3275fc4ed968938e1d556c344798046776668d
	Issue introduced in 5.5 with commit c0cfa2d8a788fcf45df5bf4070ab2474c88d543a and fixed in 7.1-rc1 with commit 52bcb57a4e8a0865a76c587c2451906342ae1b2d

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-46214

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/vmw_vsock/virtio_transport_common.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/65c484726e74013a2ec7ba67a34d87760ae8f390
	https://git.kernel.org/stable/c/29371f3cc83e2a92265b4768014a30b80234112f
	https://git.kernel.org/stable/c/e9edf9893cf26d060705c910a9b62d8cc96ed56a
	https://git.kernel.org/stable/c/6d3275fc4ed968938e1d556c344798046776668d
	https://git.kernel.org/stable/c/52bcb57a4e8a0865a76c587c2451906342ae1b2d