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 E0D132586C3 for ; Fri, 2 May 2025 15:56:28 +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=1746201389; cv=none; b=jBfeZOL5OeBXuvygrqKoLlgBANUCV9Goj53GjLrmcoSKK6jl1jnuycWAmONX2O2r9cEIL3386kwkqa4VfchuDd6uVw7HF5jCmbg+D+RqoMZJl/ZT/JMDgw3I8yDeyyVo855swvNvqi3M6mnsfpz1t89DBWSGNVfl39KGMnHi964= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201389; c=relaxed/simple; bh=5l+R9czqSdTwdumWuA087f2tde778iZmgqLSKkP1RyQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aePhkNpQ02p5dgWDsA+rcHvH3l6b5AZr+i1ggSqYvplXz4MLAHvRyQFnqa++XDk52MkZhEHr0XnV+RnNT7Lo90DffqVbrnoS+fmCagZwWgu79yEgVoWZGscGLpzw/UKawbQJh1IasXSrX/DRH7G1RHRf2Ja5teQdTsRYWAkshDY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CtLSLoZA; 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="CtLSLoZA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06F2AC4CEE9; Fri, 2 May 2025 15:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201388; bh=5l+R9czqSdTwdumWuA087f2tde778iZmgqLSKkP1RyQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CtLSLoZAYk9wRy2tNfh4MuY/MtrKcmqLDcncVe2T6HVtSiOyvdkWyuSIzzxaeHD1r /FPF08Bz4fpzO0aTa9lzXsN7zh0/+rYoosg1WeDHfGxP7LtVyY4c6bF8Jr5vEbdjWR JkuTTI8/8pHaFUsoznYQf5hmWVWmWyAuPBUS1Be0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49933: KVM: VMX: Reset eVMCS controls in VP assist page during hardware disabling Date: Fri, 2 May 2025 17:54:59 +0200 Message-ID: <2025050200-CVE-2022-49933-2147@gregkh> X-Mailer: git-send-email 2.49.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=2509; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=//iOQBZpGO7kPBvA2PB1fIC9SIuf6zTh2c4adToayOQ=; b=kA0DAAIRMUfUDdst+ykByyZiAGgU6tSjPXhC6F/LUSbojAIdGA69+uPyPxsZrLwQPZu4quUZu 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmgU6tQACgkQMUfUDdst+yljTgCfa26W 4vgB2YEGPUHXsr1JRmAd2XIAoLhVkZqBqzYvzloRPdiTTJ9+17fk X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: KVM: VMX: Reset eVMCS controls in VP assist page during hardware disabling Reset the eVMCS controls in the per-CPU VP assist page during hardware disabling instead of waiting until kvm-intel's module exit. The controls are activated if and only if KVM creates a VM, i.e. don't need to be reset if hardware is never enabled. Doing the reset during hardware disabling will naturally fix a potential NULL pointer deref bug once KVM disables CPU hotplug while enabling and disabling hardware (which is necessary to fix a variety of bugs). If the kernel is running as the root partition, the VP assist page is unmapped during CPU hot unplug, and so KVM's clearing of the eVMCS controls needs to occur with CPU hot(un)plug disabled, otherwise KVM could attempt to write to a CPU's VP assist page after it's unmapped. The Linux kernel CVE team has assigned CVE-2022-49933 to this issue. Affected and fixed versions =========================== Fixed in 6.1.20 with commit afb26bfc01db6ef4728e96314f08431934ffe833 Fixed in 6.2.7 with commit 01aa8e5704bac9fcd7401eb1a74a375fba594203 Fixed in 6.3 with commit 2916b70fc342719f570640de07251b7f91feebdb 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-2022-49933 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/afb26bfc01db6ef4728e96314f08431934ffe833 https://git.kernel.org/stable/c/01aa8e5704bac9fcd7401eb1a74a375fba594203 https://git.kernel.org/stable/c/2916b70fc342719f570640de07251b7f91feebdb