Nixpkgs security tracker

Login with GitHub
⚠️ You are using a production deployment that is still only suitable for demo purposes. Any work done in this might be wiped later without notice.

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 4 weeks, 1 day ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
KVM: nVMX: Put vmcs12 pages if nested VM-Enter fails due to invalid guest state

In the Linux kernel, the following vulnerability has been resolved: KVM: nVMX: Put vmcs12 pages if nested VM-Enter fails due to invalid guest state Put all vmcs12 pages if KVM synthesizes a nested VM-Exit due to invalid guest while emulating VMLAUNCH or VMRESUME. The invalid guest state path doesn't use nested_vmx_vmexit() as that API is intended to be used if and only if L2 is active, and the open coded equivalent neglects to put the vmcs12 pages. Failure to put the vmcs12 pages leaks any pinned pages (and/or mappings) if L1 retries VMLAUNCH/VMRESUME. Note, the !from_vmenter scenario doesn't suffer the same problem, as vmx_get_nested_state_pages() only gets/pins/maps the vmcs12 pages if L2 is active, i.e. if a "full" VM-Exit is guaranteed before KVM will retry getting vmcs12 pages.

Affected products

Linux
  • =<*
  • <2f2312c422fd2695da772cecb30c69994b795964
  • <7996013b85687034d2e820cef94d6404192e3a3d
  • <5.2
  • =<6.18.*
  • =<7.1.*
  • ==5.2
  • <2c87a087c20632d68920272173b5d7c47f9bcf70