Skip to contentSkip to conversation

CVE-2026-98863: KVM: x86: Re-pend GET_NESTED_STATE_PAGES if getting said pages fails

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

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: x86: Re-pend GET_NESTED_STATE_PAGES if getting said pages fails

Re-pend GET_NESTED_STATE_PAGES before exiting to userspace if getting the nested pages fails in the KVM_RUN path. If userspace re-runs the vCPU, and vmcs02 holds valid PFNs from the *previous* run of L2, then KVM could re-enter L2 with stale, unpinned PFNs mapped into e.g. the vAPIC page.

Note, both SVM and VMX (as of commit 11722439fb20 ("KVM: nVMX: Ensure KVM_REQ_GET_NESTED_STATE_PAGES is cleared on VM-Exit") ensure the request is cleared on VM-Exit (including the "forced" case), i.e. there is no risk of double-mapping due to emulated VMLAUNCH/VMRESUME/VMRUN *and* the request trying to map the nested pages.

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

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

	Issue introduced in 5.4 with commit 671ddc700fd08b94967b1e2a937020e30c838609 and fixed in 6.18.56 with commit 525694a6021ec6c8f7ce1f38acdf2dd77698fec1
	Issue introduced in 5.4 with commit 671ddc700fd08b94967b1e2a937020e30c838609 and fixed in 7.2.10 with commit 942192dbcd3a06695ef6b31cf10a41a21cf014d8
	Issue introduced in 5.4 with commit 671ddc700fd08b94967b1e2a937020e30c838609 and fixed in 7.3-rc5 with commit 10180a277549339020b08000206092c07e0bff5a

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

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/x86.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/525694a6021ec6c8f7ce1f38acdf2dd77698fec1
	https://git.kernel.org/stable/c/942192dbcd3a06695ef6b31cf10a41a21cf014d8
	https://git.kernel.org/stable/c/10180a277549339020b08000206092c07e0bff5a