KVM: x86: Re-pend GET_NESTED_STATE_PAGES if getting said pages fails
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 942192dbcd3a06695ef6b31cf10a41a21cf014d8, Kernel 10180a277549339020b08000206092c07e0bff5a, Kernel 1e231eedb0c5aafdc8d96a816ec75554aa69004d and 4 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=671ddc700fd08b94967b1e2a937020e30c838609 <942192dbcd3a06695ef6b31cf10a41a21cf014d8, >=671ddc700fd08b94967b1e2a937020e30c838609 <10180a277549339020b08000206092c07e0bff5a, >=671ddc700fd08b94967b1e2a937020e30c838609 <1e231eedb0c5aafdc8d96a816ec75554aa69004d, >=671ddc700fd08b94967b1e2a937020e30c838609 <525694a6021ec6c8f7ce1f38acdf2dd77698fec1, =5.4 | 942192dbcd3a06695ef6b31cf10a41a21cf014d8, 10180a277549339020b08000206092c07e0bff5a, 1e231eedb0c5aafdc8d96a816ec75554aa69004d, 525694a6021ec6c8f7ce1f38acdf2dd77698fec1 |
| linux-kernel: Kernel | >=6.13.0 <6.18.56, >=6.19.0 <7.2.10, >=5.4.0 <6.12.117 | 6.18.56, 7.2.10, 6.12.117 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket