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=1792758561; b=VunwnTccNdn6NunT+Ou62SEpde6H6rv2JCYKGa4JigqexecyBvC6pmqSN1EzxMErhjMD iAxpB8AGCQrdzOHBdUP2IAsWHDVietMsBpq7GBnDxbhZ2By0ozVCkqUi7vt6dmVLVVE/f rWOUhFMebQF85trYH4d/UXvsbStsiZGX7oD5VaYkmARgO/JHXTiO7YsfqtwanOI0j8uP1 drHpYjSv7eOOXHrD3e5FU9GjnhFJerRief8dSg5vpKSILKnFjLla9QB9CnphpvxOh1047 aIjZJsSePJP+HsQmxAUzrX500/XMXSDVs7AdTCW5z/du3k4wVvQ4kZHYcin9792mAgw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758561; 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=39D3VTQr74EJ2ZrEasiSoSMIzL2qjJco/lpdMrT7hp4=; b=xPE6l+mDA5YiFT13ea0qa3GKSyuSw2aQxxtoXSPncGm/i5EPL+WvbxOZh5JjfgvKl3Xz NhE3tL8R92Qh4FnrPGGwX+KvOfVbe/BofF3V9SfufIkGlIg+sxUGaXT/H55uMmegQ3KYg 587VjA2kIKDOXlX7sp/ssIz/u++Au/vQJRb1kmEXhkmdbeRXVeQnBtO4yEy/T3okD9kA6 crF1soS0vDSN/DPtJMUNElSV/rE3s4OlxAOYBMJSRhO6VgMhWRRfNO60yfE/qRC3pIGF8 ox3BG77jjdz+s/eSFB+ICnsFZxCsr+bbL6B4W4wMfbe+hp5gYBIw2oKfV0T3U97GF+A== 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=Fm7as0p+; 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 7EF27606A31A for ; Fri, 23 Oct 2026 12:29:21 +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=Fm7as0p+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7FC521F01825; Fri, 23 Oct 2026 12:29:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758561; bh=39D3VTQr74EJ2ZrEasiSoSMIzL2qjJco/lpdMrT7hp4=; h=From:To:Cc:Subject:Date:Reply-To; b=Fm7as0p+EpqRIt/BgCylQCDxc1eh+mkqDWcDTYFZICk7FlAhN5lvHPFcJlnVWJ/3w 3ebO44i6yg5/4WLAFOhpxY+eeOCvoYVFjw7424R+BlnzQ0MMrSnM7qtyr3KDU83Hc/ LyToNBV+PMtlMrIliIsi+7n6M7V3EYfFuNHdU70M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98947: vsock: Fix memory leak in vmci_transport_recv_dgram_cb() Date: Fri, 23 Oct 2026 14:19:09 +0200 Message-ID: <2026102305-CVE-2026-98947-b56d@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=4970; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2pYvog5uSL++HV5Pgz0fMcTHB6W3AS5OnShdWPXY2Kk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A3bu3+K1f/+6pIeKf0xu8qi1ca5V0JfUYvklbPR0m WJR280LHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARv1MMC1ZePPi3VaM4sD6m SeQJn/3btdzb+hkW7Fc3qPZ+sCxwxbw/DY8kL5jP6Ax2AAA= 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: Fix memory leak in vmci_transport_recv_dgram_cb() During the closure of a datagram socket, the vmci_transport_recv_dgram_cb() function may be called, which will add the packets to the socket's backlog; then, after the receive queue is cleared, the __release_sock() function will move the packet back from the socket's backlog to the receive queue, which will lead to a memory leak. sock_close __sock_release __vsock_release // take ownership by user-space lock_sock_nested sock_set_flag(sk, SOCK_DEAD) vmci_transport_release vmci_dispatch_dgs vmci_datagram_invoke_guest_handler vmci_transport_recv_dgram_cb sk_receive_skb if (!sock_owned_by_user(sk)) [...] (!) else if sk_add_backlog() [...] (!) skb_queue_purge(&sk->sk_receive_queue) release_sock __release_sock // move all packets from the backlog // to the receive queue (!) sk_backlog_rcv vsock_queue_rcv_skb [...] __sock_queue_rcv_skb if (!sock_flag(sk, SOCK_DEAD)) // Since the socket is "dead", the function will not // be called sk->sk_data_ready(sk) sock_release_ownership(sk); sock_put Add a receive queue cleanup in the socket destructor to fix this. syzkaller report: unreferenced object 0xffff8880117bfb80 (size 240): comm "irq/56-vmw_vmci", pid 205, jiffies 4295064448 (age 73.992s) hex dump (first 32 bytes): 78 dc 26 1e 80 88 ff ff 78 dc 26 1e 80 88 ff ff x.&.....x.&..... 00 00 00 00 00 00 00 00 c0 da 26 1e 80 88 ff ff ..........&..... backtrace: [] __alloc_skb+0x287/0x330 net/core/skbuff.c:505 [] vmci_transport_recv_dgram_cb+0xbd/0x210 [vmw_vsock_vmci_transport] [] vmci_datagram_invoke_guest_handler+0x366/0x450 [vmw_vmci] [] vmci_dispatch_dgs+0x235/0x490 [vmw_vmci] [] vmci_interrupt+0x55/0x290 [vmw_vmci] [] irq_thread_fn+0x8b/0x1a0 kernel/irq/manage.c:1205 [] irq_thread+0x28e/0x530 kernel/irq/manage.c:1314 [] kthread+0x2e6/0x3a0 kernel/kthread.c:376 [] ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:295 Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) with Syzkaller. The Linux kernel CVE team has assigned CVE-2026-98947 to this issue. Affected and fixed versions =========================== Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 6.12.113 with commit 0f8e2b2045355a0ee2008125e573435504b13cee Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 6.18.57 with commit 4835dbcde5cc3ae37e0d0796052056b35fcae8bf Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 7.2.11 with commit 9907db2b8e7ba70b442bb9dec86526a6511fac62 Issue introduced in 3.9 with commit d021c344051af91f42c5ba9fdedc176740cbd238 and fixed in 7.3 with commit 7c24a4e87e219072e5e106f6791146cbf3b056b3 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-98947 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/0f8e2b2045355a0ee2008125e573435504b13cee https://git.kernel.org/stable/c/4835dbcde5cc3ae37e0d0796052056b35fcae8bf https://git.kernel.org/stable/c/9907db2b8e7ba70b442bb9dec86526a6511fac62 https://git.kernel.org/stable/c/7c24a4e87e219072e5e106f6791146cbf3b056b3