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 C6D666FC6 for ; Tue, 27 Feb 2024 06:54:08 +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=1709016848; cv=none; b=edUHQtWaJae+uPWfTw7fXecqpASRPB4C82nHqrKYDcAEkPx2ao29jH2lTXfDq7MiXyt0mcFkYdhvmGWUQe9zJixT8RbwT9mGUrlOb0KNWT8DXuabkfMd5R587DgKSKdDLmTh36pmgnYiqDn64GRkVpImQ3vzPPVILaY1aLNBzj0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709016848; c=relaxed/simple; bh=KtTGUdyn+4jgI49sdhhvI2T3x7ih+w9AJhvMWwpkhlk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pH4bA3jOWqKDsQ6v/7du9/+koyBs85HBy8JO+2BxeVCEBsr9K/yX1dPBiDFJ8XuIskWnipzRRolzebd3q0avoaWNPWn2eMbma3q+fj3w7jzexFIqp8/U7TPcD0x1D11exzD5AVoc04R2C/emeOyLtQTKnXZmbxumi+OHV6j5hRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Iiz0NbJr; 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="Iiz0NbJr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 015BDC433F1; Tue, 27 Feb 2024 06:54:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709016848; bh=KtTGUdyn+4jgI49sdhhvI2T3x7ih+w9AJhvMWwpkhlk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Iiz0NbJrJArsinFdIRx5aLi8y6V2P9nP4YpmQGqeG+JYDTJYf4TtZiNOQJLiN1NJs KuS0m8Ds4U6OFVjgTTMxu+G/KSyzCa2qgTLzR3cpMADHE1NC/tr/wYTjaZOpcs+dIy 6NRYJsK6QCwYdVYGptT830eGYdbVEw3HOeLM7++k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46907: KVM: VMX: Don't use vcpu->run->internal.ndata as an array index Date: Tue, 27 Feb 2024 07:54:02 +0100 Message-ID: <2024022703-CVE-2021-46907-85de@gregkh> X-Mailer: git-send-email 2.44.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=2198; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KtTGUdyn+4jgI49sdhhvI2T3x7ih+w9AJhvMWwpkhlk=; b=owGbwMvMwCRo6H6F97bub03G02pJDKl327mTHvTe5jq6fr9/ONMP3aitRrOcmE5f27D8uW7ug rNpqyUXdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEHL0Z5tl7ldrcMv3kkaDF slPGmHva6dQD2gwLzl03fby9+faFG+ls7Sxt34SXMv/eDAA= 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: KVM: VMX: Don't use vcpu->run->internal.ndata as an array index __vmx_handle_exit() uses vcpu->run->internal.ndata as an index for an array access. Since vcpu->run is (can be) mapped to a user address space with a writer permission, the 'ndata' could be updated by the user process at anytime (the user process can set it to outside the bounds of the array). So, it is not safe that __vmx_handle_exit() uses the 'ndata' that way. The Linux kernel CVE team has assigned CVE-2021-46907 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 1aa561b1a4c0 and fixed in 5.10.32 with commit 7f64753835a7 Issue introduced in 5.9 with commit 1aa561b1a4c0 and fixed in 5.11.16 with commit ce541d7b5956 Issue introduced in 5.9 with commit 1aa561b1a4c0 and fixed in 5.12 with commit 04c4f2ee3f68 Please see https://www.kernel.org or 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-2021-46907 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: arch/x86/kvm/vmx/vmx.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/7f64753835a78c7d2cc2932a5808ef3b7fd4c050 https://git.kernel.org/stable/c/ce541d7b59566a0d94c7c99bfb5d34b050e6af70 https://git.kernel.org/stable/c/04c4f2ee3f68c9a4bf1653d15f1a9a435ae33f7a