Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 3AC36407CD1 for ; Wed, 27 May 2026 13:03:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887034; cv=none; b=hEOAcvbrV3zVDYPHwMFq47lPGGhn922V2rnUPEwbM3AbYlrI7Rn+tPetYPMVmUpzx9nOzcBCczlC6bLFjytwBpL5dB/FFXliqgW+Udx1qtjiG2sMP2hfN1yHFcjMj0bLDcAZgMptDZtZgXlkiYBQetWGebdZFFBKWtrNbunxBJo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887034; c=relaxed/simple; bh=aNh7FIvFxsRCZVr+Xe2eMRmOMwN5Edg/we8o87tZX0o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EubeRLeHx5vtpJJ+c6mavA8cHMH86segR+GezA8iBfIJ3hSc7iR/xfDWvXTLQK2CLXeVIft7XybI9cX+1+nexkHqVriEil/S71uLyq0cpUSMBV6EIJ0eXWuspzaKmGPOho9Ti+xNU6/vmHrr5QJ/D+FwhysaXKosVbTLDpDHpjg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NteH1KQR; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NteH1KQR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8AE851F00A3A; Wed, 27 May 2026 13:03:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887033; bh=SYlYAoS78/N2vdhj8wPVDJpfhhlxukDzMj2xBEaGa5g=; h=From:To:Cc:Subject:Date:Reply-To; b=NteH1KQR9qeYujJ5neFabcIXyNA+yWTFucWa2SrHn6+rBC9N56meWLEI5k3cUqbmp xcev+yy1JJ13rj6f+Ls5DCK6FWzZHEdT0HmTI5uDwZ6fqBWoJJ7ps32MbKhA2ixTgp 9c+KAPx7GfDvcl8R70ndo126KcZtUIApoo+HB2pw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46059: KVM: nSVM: Always use NextRIP as vmcb02's NextRIP after first L2 VMRUN Date: Wed, 27 May 2026 14:59:50 +0200 Message-ID: <2026052755-CVE-2026-46059-6ef4@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2682; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mJdrL2sAXE33nuuiQhMLB/dIKuxNZI8Jv65nblMp/2w=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir/qvnt7CcUH2oHTHxhU6Ys+dZ08XftTiWvirRbqlN yN53yeTjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIjAkMs9nuMnVe1Htm9039 9y3p1ae2fXL7rs6wYFrKoueuaztn+r9anhCtxb5/ivhiIwA= 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: nSVM: Always use NextRIP as vmcb02's NextRIP after first L2 VMRUN For guests with NRIPS disabled, L1 does not provide NextRIP when running an L2 with an injected soft interrupt, instead it advances the current RIP before running it. KVM uses the current RIP as the NextRIP in vmcb02 to emulate a CPU without NRIPS. However, after L2 runs the first time, NextRIP will be updated by the CPU and/or KVM, and the current RIP is no longer the correct value to use in vmcb02. Hence, after save/restore, use the current RIP if and only if a nested run is pending, otherwise use NextRIP. Give soft_int_next_rip the same treatment, as it's the same logic, just for a narrower use case. [sean: give soft_int_next_rip the same treatment] The Linux kernel CVE team has assigned CVE-2026-46059 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit cc440cdad5b7a4c1de12dace725209eb3e0cf663 and fixed in 6.18.27 with commit 3428ed1529a1af4cce5aff6c5bd2fcc39ad726bb Issue introduced in 5.8 with commit cc440cdad5b7a4c1de12dace725209eb3e0cf663 and fixed in 7.0.4 with commit 69fe1411a5ce678b4da6489b5d2282b4e1d13acf Issue introduced in 5.8 with commit cc440cdad5b7a4c1de12dace725209eb3e0cf663 and fixed in 7.1-rc1 with commit 8d397582f6b5e9fbcf09781c7c934b4910e94a50 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-2026-46059 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/3428ed1529a1af4cce5aff6c5bd2fcc39ad726bb https://git.kernel.org/stable/c/69fe1411a5ce678b4da6489b5d2282b4e1d13acf https://git.kernel.org/stable/c/8d397582f6b5e9fbcf09781c7c934b4910e94a50