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 37D8E405C5B for ; Wed, 27 May 2026 13:00:09 +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=1779886811; cv=none; b=dkNu0EchJd2mE0Ae9D8q4RknEGg7j4pzi/0ojZV6+BwxJrbP/Z2ZPNc2njH+ogjSGd2Q9LBBjgGhE3rUfl7XvEYJ7vH8LB0Y6dOgWQ2t0Q28ecVj7RwLFgxDIwk7inJk8jkfFLD8XpkOG4KhQyf/EaxN5Tqst2RVo+YO3yzJ90E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886811; c=relaxed/simple; bh=Nr35NDg3/ktwdFk9HIbdMzQzLqooEXkr+q4QMEqc3ns=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kJD9EWnr8lf/04EL/OmYrHOGN0sogHPy8up2n2T+GOdkxjqKUxIEOFVEJJu1C75EnCpmAq2WKa3HZL/D+NMwswxbKuwRvg0HtlN6P20vMB/8ElF8gpy60im8zIiISY9iwvvtPrNYTmLP7ZULAjcMnhftLfFxBmAeO7vuTG61WXM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0SYNwOgJ; 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="0SYNwOgJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 655FF1F000E9; Wed, 27 May 2026 13:00:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779886809; bh=2w3nhwKYGI+wtCe+gEI1+SODZbG7pUafUZgH8Cb4gkY=; h=From:To:Cc:Subject:Date:Reply-To; b=0SYNwOgJAlCY0GGnNlY+hSok4waF9CKaiTI9+k4BwhByOcxyB/V6Kqwqb26qahZzJ JkJxAZiZNg//NX5PRmJ+CCKakOn5cNY4kkfy5mbD5cAOvMTx11G+WU9NyzE5qvjanP ZKtqxpqWfrmSWp7BQe5eBQkrInfPKemLZdoX5D2k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45987: KVM: nSVM: Sync interrupt shadow to cached vmcb12 after VMRUN of L2 Date: Wed, 27 May 2026 14:58:38 +0200 Message-ID: <2026052738-CVE-2026-45987-c25b@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=3736; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iLTpPsMi5fu3XuFs2R+LIXOqA1SUzTXbVifLJbTmsew=; b=kA0DAAIRMUfUDdst+ykByyZiAGoW6n7I6eaSSULsyxSBngiW6uRhGvMaczlnulL9BXKNUcnqz IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmoW6n4ACgkQMUfUDdst+ymjAwCgvFbZ bVNnbV9+8cFsuJVqgR3kZnkAn11u1RFd3K8b7GanqB7upCoBolcB 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: Sync interrupt shadow to cached vmcb12 after VMRUN of L2 After VMRUN in guest mode, nested_sync_control_from_vmcb02() syncs fields written by the CPU from vmcb02 to the cached vmcb12. This is because the cached vmcb12 is used as the authoritative copy of some of the controls, and is the payload when saving/restoring nested state. int_state is also written by the CPU, specifically bit 0 (i.e. SVM_INTERRUPT_SHADOW_MASK) for nested VMs, but it is not sync'd to cached vmcb12. This does not cause a problem if KVM_SET_NESTED_STATE preceeds KVM_SET_VCPU_EVENTS in the restore path, as an interrupt shadow would be correctly restored to vmcb02 (KVM_SET_VCPU_EVENTS overwrites what KVM_SET_NESTED_STATE restored in int_state). However, if KVM_SET_VCPU_EVENTS preceeds KVM_SET_NESTED_STATE, an interrupt shadow would be restored into vmcb01 instead of vmcb02. This would mostly be benign for L1 (delays an interrupt), but not for L2. For L2, the vCPU could hang (e.g. if a wakeup interrupt is delivered before a HLT that should have been in an interrupt shadow). Sync int_state to the cached vmcb12 in nested_sync_control_from_vmcb02() to avoid this problem. With that, KVM_SET_NESTED_STATE restores the correct interrupt shadow state, and if KVM_SET_VCPU_EVENTS follows it would overwrite it with the same value. The Linux kernel CVE team has assigned CVE-2026-45987 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit cc440cdad5b7a4c1de12dace725209eb3e0cf663 and fixed in 6.6.140 with commit 1709418535a8df95532999d61b03d59975280258 Issue introduced in 5.8 with commit cc440cdad5b7a4c1de12dace725209eb3e0cf663 and fixed in 6.12.86 with commit 2f950eeb27af6885416232761700b8820cae0a61 Issue introduced in 5.8 with commit cc440cdad5b7a4c1de12dace725209eb3e0cf663 and fixed in 6.18.27 with commit 497f6af9679fc9c6ce2f438e11ed5d51b1aa8297 Issue introduced in 5.8 with commit cc440cdad5b7a4c1de12dace725209eb3e0cf663 and fixed in 7.0.4 with commit e0377e52f3c10ee572732d11b04625b7f517a862 Issue introduced in 5.8 with commit cc440cdad5b7a4c1de12dace725209eb3e0cf663 and fixed in 7.1-rc1 with commit 03bee264f8ebfd39e0254c98e112d033a7aa9055 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-45987 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/1709418535a8df95532999d61b03d59975280258 https://git.kernel.org/stable/c/2f950eeb27af6885416232761700b8820cae0a61 https://git.kernel.org/stable/c/497f6af9679fc9c6ce2f438e11ed5d51b1aa8297 https://git.kernel.org/stable/c/e0377e52f3c10ee572732d11b04625b7f517a862 https://git.kernel.org/stable/c/03bee264f8ebfd39e0254c98e112d033a7aa9055