Skip to contentSkip to conversation

CVE-2026-53181: vsock/vmci: fix sk_ack_backlog leak on failed handshake

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 25

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/vmci: fix sk_ack_backlog leak on failed handshake

When vmci_transport_recv_connecting_server() returns an error, vmci_transport_recv_listen() calls vsock_remove_pending() but never calls sk_acceptq_removed(). This leaves sk_ack_backlog incremented permanently.

Repeated handshake failures (malformed packets, queue pair alloc failure, event subscribe failure) cause sk_ack_backlog to climb toward sk_max_ack_backlog. Once it reaches the limit the listener permanently refuses all new connections with -ECONNREFUSED, a silent denial of service requiring a process restart to recover.

The two existing sk_acceptq_removed() calls in af_vsock.c do not cover this path: line 764 checks vsock_is_pending() which returns false after vsock_remove_pending(), and line 1889 is only reached on successful accept().

Fix by balancing sk_acceptq_added() with sk_acceptq_removed() on the error path.

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

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

	Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 5.10.259 with commit 22c587aa3ab1ab5264daff3ec32136fd30436c13
	Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 5.15.210 with commit cf7090e255d74c4b61c51f8ede9fcacdd8393b5b
	Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 6.1.176 with commit ea0b03d52881c12a8c634ea0d6cbfa61cefdb488
	Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 6.6.143 with commit dfd853197615d322d3a88dbcab91fc0fd2096219
	Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 6.12.94 with commit bcb275626055df7f8f947f1a349754b4004d9a15
	Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 6.18.36 with commit ba9ad6015937a5e46ba1a31370e3efdec8abbdcc
	Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 7.0.13 with commit 9698582a4dd9c4a05889d7db96d4c0edc9e69cac
	Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 7.1 with commit c05fa14db43ebef3bd862ca9d073981c0358b3f0

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-53181

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/vmci_transport.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/22c587aa3ab1ab5264daff3ec32136fd30436c13
	https://git.kernel.org/stable/c/cf7090e255d74c4b61c51f8ede9fcacdd8393b5b
	https://git.kernel.org/stable/c/ea0b03d52881c12a8c634ea0d6cbfa61cefdb488
	https://git.kernel.org/stable/c/dfd853197615d322d3a88dbcab91fc0fd2096219
	https://git.kernel.org/stable/c/bcb275626055df7f8f947f1a349754b4004d9a15
	https://git.kernel.org/stable/c/ba9ad6015937a5e46ba1a31370e3efdec8abbdcc
	https://git.kernel.org/stable/c/9698582a4dd9c4a05889d7db96d4c0edc9e69cac
	https://git.kernel.org/stable/c/c05fa14db43ebef3bd862ca9d073981c0358b3f0