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 6E33F25625 for ; Wed, 28 Feb 2024 08:16:19 +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=1709108179; cv=none; b=Nz6Gt0jc5E+NRgImoS+fRVouH41n+04iTQkxWrl4PLcyvG9QUl+od/vM6b3AWqsWrxeWSLO53Eq69WGuVQ48X0dCdYkBXk3H+l57RK5riMp/ZOnzLkRsM0NsInOmuJm0e2ZWXCv9wsXlO+Elw/yTU+oJLMpSuMin5ype7WUu45I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108179; c=relaxed/simple; bh=fIhJha1FGU4ozdHTl8CXWK/w3NuD1EFFHhos81idVD8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VO8M5zRwCiVwNSl4ORscQfGHupcF9v4Pnu/HYuyJQnfHFS8p07BMeQ+t+Gi3jbpDqJ2nUKA2tjG7GT6233RUohx9Dh2NG9v/1AbHW8fNn7Tp0srQkgoyI3l+0vuaIUKkNOxrC8KNZAEhAp6tUBgWr0MWqJAB9fTiuKzk/9tPq4o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JAwbn7VZ; 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="JAwbn7VZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1FD7C433C7; Wed, 28 Feb 2024 08:16:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108179; bh=fIhJha1FGU4ozdHTl8CXWK/w3NuD1EFFHhos81idVD8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JAwbn7VZ5oo2gGfePDbK3RdgFhp3hjBRZOqLLrMiCIMBfy71k4AIKKrXprAutRdnH Q/eApqfBrTiaiVNr2zjWpobEbOxvqorectaRXGhClEwwwc7Lv+lVGrOrDCZrS3YBlY wnIOY2sii7xUqmv2yTJlnd0t/XlkPiDJt/ZLBFNs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2021-46977: KVM: VMX: Disable preemption when probing user return MSRs Date: Wed, 28 Feb 2024 09:14:27 +0100 Message-ID: <2024022822-CVE-2021-46977-76be@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=2398; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zRZ4EZBNCOICHURM7s3ay292HWND51EZUvbPf/BLBsM=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn3XscJFUwyYdFb39trVep/70CLL9McBQlFtWvVubulg hgS+ow7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCKJjxjmh23fvSVkitSnoqnt VwUZ/splNL7zYpifz7ZxdrFehmyZmlMdw129hiXXyhcCAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: gregkh@kernel.org Description =========== In the Linux kernel, the following vulnerability has been resolved: KVM: VMX: Disable preemption when probing user return MSRs Disable preemption when probing a user return MSR via RDSMR/WRMSR. If the MSR holds a different value per logical CPU, the WRMSR could corrupt the host's value if KVM is preempted between the RDMSR and WRMSR, and then rescheduled on a different CPU. Opportunistically land the helper in common x86, SVM will use the helper in a future commit. The Linux kernel CVE team has assigned CVE-2021-46977 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 4be534102624 and fixed in 5.10.38 with commit 31f29749ee97 Issue introduced in 5.5 with commit 4be534102624 and fixed in 5.11.22 with commit 5adcdeb57007 Issue introduced in 5.5 with commit 4be534102624 and fixed in 5.12.5 with commit e3ea1895df71 Issue introduced in 5.5 with commit 4be534102624 and fixed in 5.13 with commit 5104d7ffcf24 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-46977 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/include/asm/kvm_host.h arch/x86/kvm/vmx/vmx.c arch/x86/kvm/x86.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/31f29749ee970c251b3a7e5b914108425940d089 https://git.kernel.org/stable/c/5adcdeb57007ccf8ab7ac20bf787ffb6fafb1a94 https://git.kernel.org/stable/c/e3ea1895df719c4ef87862501bb10d95f4177bed https://git.kernel.org/stable/c/5104d7ffcf24749939bea7fdb5378d186473f890