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 2C958AD5E for ; Mon, 2 Dec 2024 13:53:15 +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=1733147596; cv=none; b=B8J+jDgnY9mXAjOU2u/JpgFm8LmM42wOMCWH+qOwleDx1p6ApK/5YxTos4Z0I6biS/bVGHfjU0am3f9R70Dn8RF0lScXiMlu7/OgnVVzPJFTlTMpkPtBVcFr6oNEPpm5eDIWAgh5bDqyeEaEOB6tCqCOhxz83DBYRgEw5vWOKfA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733147596; c=relaxed/simple; bh=iz/cFRU7fdpKhYVoA2pfapVo4fru6lEQzps/WRsridQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JvHgOD9LGsXgQhTj9qFXIhsG0Woo7V9hlBeKCmG+bs2aY89UI5fL+3WXbu6tirNxIQtAbmbeKcYGBrVgecFU1t8ow9VkITDaqASAnNPigb+Hyt2UOTxOq2wiIdFkJQ65QCPadtssfE1gdSAEY0nRJpnoFXW7gIY9hjrhCjnyFfU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wtR9oI9q; 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="wtR9oI9q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DC20C4CED1; Mon, 2 Dec 2024 13:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733147595; bh=iz/cFRU7fdpKhYVoA2pfapVo4fru6lEQzps/WRsridQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wtR9oI9qQkzaUB/Ya2T/N4J53dSCQ4b6VLZL7l2czd60hTwODSBS2dXSUf0Aknysg rutXmmfBjwZcU3LgbmIHl8RnupA+LW0yqbQ1e4QrWHKkhv9nb80IF04jvIN2FrXX2k wBv3LLgaVmMuoVBLAAG/ahzjGQsSlkeVFxF02rzc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53118: vsock: Fix sk_error_queue memory leak Date: Mon, 2 Dec 2024 14:52:57 +0100 Message-ID: <2024120251-CVE-2024-53118-c6d7@gregkh> X-Mailer: git-send-email 2.47.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=2829; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iz/cFRU7fdpKhYVoA2pfapVo4fru6lEQzps/WRsridQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOm+uze33/3+wXOCqFKuzjblh5pGX09d8m5Q2FL4ZsHiR Tfb3AoEO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi964yzJX/YaM/U95zEl/O kqBeHo3wnAX3ljHMz87y2vT9X/DehGXinW+ZxSuESk+rAgA= 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: Fix sk_error_queue memory leak Kernel queues MSG_ZEROCOPY completion notifications on the error queue. Where they remain, until explicitly recv()ed. To prevent memory leaks, clean up the queue when the socket is destroyed. unreferenced object 0xffff8881028beb00 (size 224): comm "vsock_test", pid 1218, jiffies 4294694897 hex dump (first 32 bytes): 90 b0 21 17 81 88 ff ff 90 b0 21 17 81 88 ff ff ..!.......!..... 00 00 00 00 00 00 00 00 00 b0 21 17 81 88 ff ff ..........!..... backtrace (crc 6c7031ca): [] kmem_cache_alloc_node_noprof+0x2f7/0x370 [] __alloc_skb+0x132/0x180 [] sock_omalloc+0x4b/0x80 [] msg_zerocopy_realloc+0x9e/0x240 [] virtio_transport_send_pkt_info+0x412/0x4c0 [] virtio_transport_stream_enqueue+0x43/0x50 [] vsock_connectible_sendmsg+0x373/0x450 [] ____sys_sendmsg+0x365/0x3a0 [] ___sys_sendmsg+0x84/0xd0 [] __sys_sendmsg+0x47/0x80 [] do_syscall_64+0x93/0x180 [] entry_SYSCALL_64_after_hwframe+0x76/0x7e The Linux kernel CVE team has assigned CVE-2024-53118 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 581512a6dc93 and fixed in 6.11.10 with commit bea4779a45f4 Issue introduced in 6.7 with commit 581512a6dc93 and fixed in 6.12 with commit fbf7085b3ad1 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-2024-53118 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/bea4779a45f49275b1e1b1bd9de03cd3727244d8 https://git.kernel.org/stable/c/fbf7085b3ad1c7cc0677834c90f985f1b4f77a33