From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACF334315A for ; Thu, 27 Feb 2025 02:18:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622719; cv=none; b=OxPSLHsyZrXlkdViH2nqo7ujdtFq4YEjkHMkfoKAX6yRMrK7J22GtR76ui0u5KQvR+d4aSwOdxPGxjQ9gjAh8+fwLSlZC3a4u09PZwoXAAFuetqxNGyupAWjHFRNG5sDaD6EyLXTvB1xuOO7PGJZG6UB5UqQeoKgG/5EJYAsCOc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622719; c=relaxed/simple; bh=GLQ8LSnW27i/pTVU044Te7ORoyjbg2AFDyk8Wn8r/Pg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PpTR5WuaZ+AmY9QoOMi6jAc+csu+jM9L2I9DIhsfOPnibYtNeEgLE5r55INoRYkO742GEGfwIxrBFpWy4L03htjwUgCW4e2yEw0/a4o9+NPnKDXT/sbAlTfvBtPR1Ox1gI+NdaBKJGlbkm/+18uvjCsIQri0+fmmuvqxuK7J8zA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=t6abQKXo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="t6abQKXo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71D38C4CED6; Thu, 27 Feb 2025 02:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622719; bh=GLQ8LSnW27i/pTVU044Te7ORoyjbg2AFDyk8Wn8r/Pg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=t6abQKXoqMmwMMqqO8l4MYsLeJVWrsAn9vYMXJ/Ur1GtgDKvQRxSzSBSWKUMrcP+7 pvKwTQlOIN4fyhb3nt7mw2fIh2mhlBvu/BY5Gy7lNGB9KI+KaWKuwnhlJ1s4M5kZvw KO51hVMYTAsl82e5YM+S2YjKJwXPWNzr09NDnTT4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21755: vsock: Orphan socket after transport release Date: Wed, 26 Feb 2025 18:17:11 -0800 Message-ID: <2025022603-CVE-2025-21755-5887@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2487; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GLQ8LSnW27i/pTVU044Te7ORoyjbg2AFDyk8Wn8r/Pg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T8tbf5qUOne5rOI29fW7jxnLcZqIMFgzcNSkm2Us2 XZB70xARywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkWwXD/JK1S7bnLFiunn7a VaVuyr2z3VaZMxkWNDK+KOgMZ/c3Kqmb+mPh+QuK5ydcAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: vsock: Orphan socket after transport release During socket release, sock_orphan() is called without considering that it sets sk->sk_wq to NULL. Later, if SO_LINGER is enabled, this leads to a null pointer dereferenced in virtio_transport_wait_close(). Orphan the socket only after transport release. Partially reverts the 'Fixes:' commit. KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] lock_acquire+0x19e/0x500 _raw_spin_lock_irqsave+0x47/0x70 add_wait_queue+0x46/0x230 virtio_transport_release+0x4e7/0x7f0 __vsock_release+0xfd/0x490 vsock_release+0x90/0x120 __sock_release+0xa3/0x250 sock_close+0x14/0x20 __fput+0x35e/0xa90 __x64_sys_close+0x78/0xd0 do_syscall_64+0x93/0x1b0 entry_SYSCALL_64_after_hwframe+0x76/0x7e The Linux kernel CVE team has assigned CVE-2025-21755 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14-rc1 with commit fcdd2242c0231032fc84e1404315c245ae56322a and fixed in 6.14-rc3 with commit 78dafe1cf3afa02ed71084b350713b07e72a18fb 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-2025-21755 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/f3b8e9d3414b2eb083d8293be25a949fe480897b https://git.kernel.org/stable/c/3a866f8376f0a5c848dcb59cd26df845fffbe6d8 https://git.kernel.org/stable/c/94d81870eec7ad2dd7af80bffd314ded26caea1a https://git.kernel.org/stable/c/78dafe1cf3afa02ed71084b350713b07e72a18fb