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 596CA101F2 for ; Tue, 16 Jul 2024 11:46:17 +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=1721130377; cv=none; b=nbJtk/XGgisZT3XGa5xuYiLltrn4HMvEvwBOPGWC2b1K+F7jA7ini7j+JAQtH51y1kttHS5Ay+wOAhkrzQi5480emwqxyPwegGUcduLD9iobSjwo/xnIqwYBGJksYahDrnZgAnfD7N4eJE8nlk0dGfp4WFgkbzfJYksyAyp+jTg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721130377; c=relaxed/simple; bh=zPibRGj1U/jgoiC81LQeYtJM2x51/6lZIx96VDk6yo4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GIIqADNIVBgSnvT/QAnebBXVErbMq8YG5Fm6QO4a3xqnaC46sJYnPqQrfDQs0olbLYBo9po0p6N6aLXTJs5edmSxPORE1i/NzGf6EQGdWkP8AQbA52ksc/tfY8z01uAi868XotVt1KvPz7jpxn7s9/eJWVNneRn7WragjB/SMLY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TzgHFH7S; 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="TzgHFH7S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF786C116B1; Tue, 16 Jul 2024 11:46:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721130377; bh=zPibRGj1U/jgoiC81LQeYtJM2x51/6lZIx96VDk6yo4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TzgHFH7SZPkIvi77NL2cDs+/+qO+wX5cVOrqlTEOMdy93axlMcYSwGm0ElmeOU2js zNJth4JPsXtfVyKk2GPI0VRyzvNo2kvjwZZxMOl2K0ZHyvWSHn/QkM4nAKolIyFFck vrZ//SVQvrLRvr1m0cFa1vbNecL5RguKR53lAU0Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48793: KVM: x86: nSVM: fix potential NULL derefernce on nested migration Date: Tue, 16 Jul 2024 13:45:45 +0200 Message-ID: <2024071641-CVE-2022-48793-3fc4@gregkh> X-Mailer: git-send-email 2.45.2 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=2218; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zPibRGj1U/jgoiC81LQeYtJM2x51/6lZIx96VDk6yo4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTYlOnvtkmKfAx9s53iZJjJRnpTBUrqthtXp94wbRlX uqL2+l2HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARjmUMC2Zvl/bdKXm7pOOP ruT6eVbbbF48j2KYZ5U/b1/0/Pe6EgXpmRfM5PfWX/MJBQA= 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: x86: nSVM: fix potential NULL derefernce on nested migration Turns out that due to review feedback and/or rebases I accidentally moved the call to nested_svm_load_cr3 to be too early, before the NPT is enabled, which is very wrong to do. KVM can't even access guest memory at that point as nested NPT is needed for that, and of course it won't initialize the walk_mmu, which is main issue the patch was addressing. Fix this for real. The Linux kernel CVE team has assigned CVE-2022-48793 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 232f75d3b4b5 and fixed in 5.15.25 with commit 74b426bea4f7 Issue introduced in 5.13 with commit 232f75d3b4b5 and fixed in 5.16.11 with commit 352193edda48 Issue introduced in 5.13 with commit 232f75d3b4b5 and fixed in 5.17 with commit e1779c2714c3 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-48793 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/svm/nested.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/74b426bea4f7e3b081add2b88d4fba16d3af7ab6 https://git.kernel.org/stable/c/352193edda48e08e8824a7ece09aec830a603cfe https://git.kernel.org/stable/c/e1779c2714c3023e4629825762bcbc43a3b943df