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 89081524C9 for ; Fri, 15 Mar 2024 20:15:39 +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=1710533739; cv=none; b=cLIr03zbmQLDAvyjpMoSXTadGris+YPy/8lquMh9Mm0l1WXs3/PKKZ/9NThGs/jkG1HJhJHsMFu9Sd1YmGh0UukJREpD2TZVrcHXP+NMdIXScFgPsyoB7Pnd3rwN134jav3fv/Eilfv6JVmFjwcleSfzkWjk5E/hag7z0iDZ59Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710533739; c=relaxed/simple; bh=K2mRXwR2ipbjmDVTwBunauYAi7jVWgkLwTzEa0K6J0M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o+ms1CZwaU7k+rYpkA0f6MN3GSyNmxWEnxctj3Cc5JjKvlbH8IKZNyjo7fJuaGYhmrarA93h7O4pMHWFAxN8Bfd7BFXNGWOlXqW2Ad3rdRlQU2CZWMwCFic/K9PXfR72osa0tRo3NcaTWO1yo1viwp6L59sLh+ZX6VvOE6LijKU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wKlWl8CV; 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="wKlWl8CV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19432C433F1; Fri, 15 Mar 2024 20:15:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1710533739; bh=K2mRXwR2ipbjmDVTwBunauYAi7jVWgkLwTzEa0K6J0M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wKlWl8CVOn0tAHjOH5WMWrZ7zGnRgToX7DDqX6lHDqU84i7JLZS0U9YBXkkmCzOa+ veYPittKtCHCrGYGx0l6UgCeCofiWSQKteN8iG1mPZnjs+wpk94k4oKjZrYkl1iQw/ XpgnwSHE54uG91C1C+T4AixQFIbpMT2WY3fusc0k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47112: x86/kvm: Teardown PV features on boot CPU as well Date: Fri, 15 Mar 2024 21:15:02 +0100 Message-ID: <2024031507-CVE-2021-47112-339c@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=2221; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=K2mRXwR2ipbjmDVTwBunauYAi7jVWgkLwTzEa0K6J0M=; b=owGbwMvMwCRo6H6F97bub03G02pJDKlf1njf2HHX6kueScWhpsYS0aAunoNhzwKOhlsZ6h1Ij rzQwa/WEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOpkWCY79mUMf+XaIn7sUa7 ErNFqU8Xn75yhmFBr/Q0832uKYtv56gWFOdbxqTx954GAA== 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: x86/kvm: Teardown PV features on boot CPU as well Various PV features (Async PF, PV EOI, steal time) work through memory shared with hypervisor and when we restore from hibernation we must properly teardown all these features to make sure hypervisor doesn't write to stale locations after we jump to the previously hibernated kernel (which can try to place anything there). For secondary CPUs the job is already done by kvm_cpu_down_prepare(), register syscore ops to do the same for boot CPU. The Linux kernel CVE team has assigned CVE-2021-47112 to this issue. Affected and fixed versions =========================== Fixed in 5.4.125 with commit 7620a669111b Fixed in 5.10.43 with commit 38b858da1c58 Fixed in 5.12.10 with commit d1629b5b925d Fixed in 5.13 with commit 8b79feffeca2 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-47112 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/kernel/kvm.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/7620a669111b52f224d006dea9e1e688e2d62c54 https://git.kernel.org/stable/c/38b858da1c58ad46519a257764e059e663b59ff2 https://git.kernel.org/stable/c/d1629b5b925de9b27979e929dae7fcb766daf6b6 https://git.kernel.org/stable/c/8b79feffeca28c5459458fe78676b081e87c93a4