vsock/vmci: fix sk_ack_backlog leak on failed handshake
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.10.259, Kernel 5.15.210, Kernel 6.1.176 and 12 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=3.9 <5.10.259, >=5.11 <5.15.210, >=5.16 <6.1.176, >=6.13 <6.18.36, >=6.19 <7.0.13, >=6.2 <6.6.143, >=6.7 <6.12.94, =7.1, >=d021c344051af91f42c5ba9fdedc176740cbd238 <9698582a4dd9c4a05889d7db96d4c0edc9e69cac, >=d021c344051af91f42c5ba9fdedc176740cbd238 <ba9ad6015937a5e46ba1a31370e3efdec8abbdcc, >=d021c344051af91f42c5ba9fdedc176740cbd238 <bcb275626055df7f8f947f1a349754b4004d9a15, >=d021c344051af91f42c5ba9fdedc176740cbd238 <c05fa14db43ebef3bd862ca9d073981c0358b3f0, >=d021c344051af91f42c5ba9fdedc176740cbd238 <cf7090e255d74c4b61c51f8ede9fcacdd8393b5b, >=d021c344051af91f42c5ba9fdedc176740cbd238 <dfd853197615d322d3a88dbcab91fc0fd2096219, >=d021c344051af91f42c5ba9fdedc176740cbd238 <ea0b03d52881c12a8c634ea0d6cbfa61cefdb488, =3.9, >=d021c344051af91f42c5ba9fdedc176740cbd238 <22c587aa3ab1ab5264daff3ec32136fd30436c13 | 5.10.259, 5.15.210, 6.1.176, 6.18.36, 7.0.13, 6.6.143, 6.12.94, 9698582a4dd9c4a05889d7db96d4c0edc9e69cac, ba9ad6015937a5e46ba1a31370e3efdec8abbdcc, bcb275626055df7f8f947f1a349754b4004d9a15, c05fa14db43ebef3bd862ca9d073981c0358b3f0, cf7090e255d74c4b61c51f8ede9fcacdd8393b5b, dfd853197615d322d3a88dbcab91fc0fd2096219, ea0b03d52881c12a8c634ea0d6cbfa61cefdb488, 22c587aa3ab1ab5264daff3ec32136fd30436c13 |
| linux-kernel: Kernel | >=3.9.0 <5.10.259, >=5.11.0 <5.15.210, >=5.16.0 <6.1.176, >=6.13.0 <6.18.36, >=6.19.0 <7.0.13, >=6.2.0 <6.6.143, >=6.7.0 <6.12.94 | 5.10.259, 5.15.210, 6.1.176, 6.18.36, 7.0.13, 6.6.143, 6.12.94 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket