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 66F01182 for ; Wed, 21 Aug 2024 00:08:05 +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=1724198885; cv=none; b=GAoNJZnh7jGadOXQ0mq40PmjI2QVcl2SRm2UL4ipeF0HlBZF9YdqRTRI1AHmTLwfu2JLPsQ5n4643tiUIMfdlXhXhUVMQYJnemeYeQtq+cPcywEJSW0yp+4DFu+y7pwAQ5R/kyCxRaLygBd8XHD72TPCcE5VYmUn5aSFHTD1c+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724198885; c=relaxed/simple; bh=U1cYU/FmZzvJ1bJtJTC7ey0CQkIPPegm+w+jLxqqmUw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j8i2lDx6/jlEyrFuE2HXTVIOc8di86zlHhbcM4g0351ka7XoSUgh9U82KXZDU2AMPM4KzMdq4M4mEF1C7IaUbcTvUgCDxY2SzkXk678BqLxQstdgUVdCICVETIqPWNqHWxIib/5w39K7r630pQl0lzTw8TjptRVfM/UgIb4GQHg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IScA/+XH; 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="IScA/+XH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55EF1C4AF09; Wed, 21 Aug 2024 00:08:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724198884; bh=U1cYU/FmZzvJ1bJtJTC7ey0CQkIPPegm+w+jLxqqmUw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IScA/+XHrB+eHbkpQJ3Dm/wzNZ7Fv7qOy0EV7pdZcqodo7CS+/7KUKp+ih+5fVE5M It1Ip94xoFZKn7KPvtZLoG/WPi7vU8sYL7GySMXErnHqXqPb8KYuOXLdzz6Tav1xvY 05jHkOMzjYwcBahkOf+DqIbKQUXVx6IBEk0+hANo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43873: vhost/vsock: always initialize seqpacket_allow Date: Wed, 21 Aug 2024 08:07:37 +0800 Message-ID: <2024082136-CVE-2024-43873-c547@gregkh> X-Mailer: git-send-email 2.46.0 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=2691; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U1cYU/FmZzvJ1bJtJTC7ey0CQkIPPegm+w+jLxqqmUw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlH9U8YfRCRFvdPzJpz5Zyke8ik/lSxBbcmv1hwPXfpk WApb3uXjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIyiaG2axXlgZcKAj93fv3 5zSHA2WTzZtFjzLMj6v7fLreaLvCM58w40PxP7YbGibxAQA= 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: vhost/vsock: always initialize seqpacket_allow There are two issues around seqpacket_allow: 1. seqpacket_allow is not initialized when socket is created. Thus if features are never set, it will be read uninitialized. 2. if VIRTIO_VSOCK_F_SEQPACKET is set and then cleared, then seqpacket_allow will not be cleared appropriately (existing apps I know about don't usually do this but it's legal and there's no way to be sure no one relies on this). To fix: - initialize seqpacket_allow after allocation - set it unconditionally in set_features The Linux kernel CVE team has assigned CVE-2024-43873 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit ced7b713711f and fixed in 5.15.165 with commit ea558f10fb05 Issue introduced in 5.14 with commit ced7b713711f and fixed in 6.1.103 with commit 3062cb100787 Issue introduced in 5.14 with commit ced7b713711f and fixed in 6.6.44 with commit 30bd45936694 Issue introduced in 5.14 with commit ced7b713711f and fixed in 6.10.3 with commit eab96e8716cb Issue introduced in 5.14 with commit ced7b713711f and fixed in 6.11-rc1 with commit 1e1fdcbdde3b 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-43873 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: drivers/vhost/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/ea558f10fb05a6503c6e655a1b7d81fdf8e5924c https://git.kernel.org/stable/c/3062cb100787a9ddf45de30004b962035cd497fb https://git.kernel.org/stable/c/30bd4593669443ac58515e23557dc8cef70d8582 https://git.kernel.org/stable/c/eab96e8716cbfc2834b54f71cc9501ad4eec963b https://git.kernel.org/stable/c/1e1fdcbdde3b7663e5d8faeb2245b9b151417d22