Skip to contentSkip to conversation

CVE-2026-46071: KVM: nSVM: Avoid clearing VMCB_LBR in vmcb12

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

KVM: nSVM: Avoid clearing VMCB_LBR in vmcb12

svm_copy_lbrs() always marks VMCB_LBR dirty in the destination VMCB. However, nested_svm_vmexit() uses it to copy LBRs to vmcb12, and clearing clean bits in vmcb12 is not architecturally defined.

Move vmcb_mark_dirty() to callers and drop it for vmcb12.

This also facilitates incoming refactoring that does not pass the entire VMCB to svm_copy_lbrs().

The Linux kernel CVE team has assigned CVE-2026-46071 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.19 with commit d20c796ca3709801f8a7fa36e8770a3dd8ebd34e and fixed in 6.18.27 with commit a3f0981a5a0e0bd51ad74cc7d9eed32294b24002
	Issue introduced in 5.19 with commit d20c796ca3709801f8a7fa36e8770a3dd8ebd34e and fixed in 7.0.4 with commit 9efe23568806d1cd06f7d146f9b3037b8d585a9f
	Issue introduced in 5.19 with commit d20c796ca3709801f8a7fa36e8770a3dd8ebd34e and fixed in 7.1-rc1 with commit b53ab5167a81537777ac780bbd93d32613aa3bda

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-46071

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
	arch/x86/kvm/svm/svm.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/a3f0981a5a0e0bd51ad74cc7d9eed32294b24002
	https://git.kernel.org/stable/c/9efe23568806d1cd06f7d146f9b3037b8d585a9f
	https://git.kernel.org/stable/c/b53ab5167a81537777ac780bbd93d32613aa3bda