Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793187755; b=JqE0UuHDNHlyNlXOBZ1KKXSIwpHPVbn9dbPY/1QkxbWuDr1TKXYBJHYIhnxOdK5Cfv1E 6OsW+hqdXSngU2YCrNGV5CYvgV9FRHKv4bpaF4DhB1iX0JDSNXsotveMb44Ijit7MLIK/ 67xQJXcl4HF3oPP7xGDx16iByIIbPp0EB2vW27hSmxVr48LbY3ll1Ib9pg0q6Dzzx2shi FRd7QePXj8tKAHM2ytiAxTpFaBBqXTIwWLMDwTggjdue0OvkFIK9SmVWAdl4RcYXCdlR7 qz0IeY83GNlDqkrRXeC2DDRhHHvl/0BNKBd8OpKLPeHI2Mj6BMM1DS1voTGtk0c1Z7Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187755; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=/th17K23Sg3jRQJmNMXklSqSpnM9MP2wHolWcXHE0PE=; b=Gdjbf7/N5fu71NLBA4C9YKNNxNjhmm51oLobOAq+l38JJMsgoDA78nXUi1MJH7ZuWScz zCy+KuUbwBpNMgsZZQzVKuYTZnmlq3QhxNqPCqIMWGIVIzGGHJfq5hkJ6Pr3dCOpEUreI SN6xaVI1elJXfbBFUaJHRzzHnN7q1meawy18wd0tMS1kAjujRZFVfhPVvrXZGSO+1Bv+W gDduAMyGqsFcq9LabAgMjza8dj/qyZPhJVupMRDuj5/EGSmOY47ImEyt1x9fD86weDnUd 2gdvveJv8uaRB8zm+lMPzvO1vqIhZn6lVVhZN7qEPR3jl72yIYgD5eENaVFGauQtzVQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=xNZuZk6X; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B893C606A31D for ; Wed, 28 Oct 2026 11:42:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=xNZuZk6X Received: by smtp.kernel.org (Postfix) with ESMTPSA id 020061F01825; Wed, 28 Oct 2026 11:42:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187754; bh=/th17K23Sg3jRQJmNMXklSqSpnM9MP2wHolWcXHE0PE=; h=From:To:Cc:Subject:Date:Reply-To; b=xNZuZk6XoVE9X0VmUk45MICQlE3zHRIEGatidCo0bJw9wGMB+ShrzPcxwRwjm+lT0 0rM/k+V60Dc1ctOPqgZHMmtSkQUnVGqHgXkkdfHR8mDgdmLqCK0dNoHlkFt9bz75fb oVErXBxn7QYefieOs7T1RVbqJ0NhiunilfwybLkI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99213: vsock: treat TCP_CLOSING as once-established Date: Wed, 28 Oct 2026 11:36:40 +0100 Message-ID: <2026102816-CVE-2026-99213-3397@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3352; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4xTc9+8iPMV79BFx17WDVVdNQLSDZiK9puDMn/NNK3o=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPzz+5Kl/UYP14/VmrE/mXcgRelDX9e7EqXNj/9x6zB v7b/B43OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiCwQY5iefUz45UeXBqWDB rPB5WnUhNo1V0xkWHHT1cORh8UqNDvWSbW6ZtvXTwa/MAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: vsock: treat TCP_CLOSING as once-established Handle the TCP_ESTABLISHED -> TCP_CLOSING transition on OP_RST, which can race with the connect loop. Immediately break and return 0 on ESTABLISHED/CLOSING. The return value of connect() should reflect what happened up to the point the connection was established or failed. Events that occur afterwards must not affect it. E.g. even if OP_RW has already set sk_err, connect() should still return 0, not ENOBUFS because of it. Adapt the inaccurate comment above signal_pending(). Resetting a socket that is still present in connected_table can lead to memory corruption. The reporter noted lost transports for in-flight skbs, and I have reproduced crashes caused by re-insertion into connected_table. list_add double add: new=, prev=, next=. kernel BUG at lib/list_debug.c:35! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI Workqueue: vsock-loopback vsock_loopback_work RIP: 0010:__list_add_valid_or_report+0x11f/0x130 Call Trace: vsock_insert_connected.cold+0xe/0x13 virtio_transport_recv_pkt+0x10e9/0x1460 vsock_loopback_work+0x305/0x480 process_one_work+0xe4c/0x1560 worker_thread+0x4f1/0xd60 kthread+0x36e/0x470 ret_from_fork+0x47b/0x6b0 ret_from_fork_asm+0x1a/0x30 This fix is supplementary to commit 002541ef650b ("vsock: Ignore signal/timeout on connect() if already established"). Details under Link. The Linux kernel CVE team has assigned CVE-2026-99213 to this issue. Affected and fixed versions =========================== Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 6.18.59 with commit c2c5359ef2c33684fa3f3652fd761a483db8d1e7 Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 7.2.13 with commit 44d1ca05d6094a5d75c671a0545249186d790b8d Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 7.3 with commit 4f6ac74fa594a918d41255c941256e1d51592d3b 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-99213 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/af_vsock.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/c2c5359ef2c33684fa3f3652fd761a483db8d1e7 https://git.kernel.org/stable/c/44d1ca05d6094a5d75c671a0545249186d790b8d https://git.kernel.org/stable/c/4f6ac74fa594a918d41255c941256e1d51592d3b