Re: [PATCH 0/2] KVM: nVMX: Fix a (benign) overwrite to a userspace buffer
From: Sean Christopherson
Date: Fri Nov 13 2026 - 11:27:18 EST
On Wed, 21 Oct 2026 19:18:18 -0700, Sean Christopherson wrote:
> Fix a bug where KVM writes more bytes for KVM_GET_NESTED_STATE than it reports
> in the output size if L1 is active and has a valid shadow VMCS pointer. The
> bug is all but guaranteed to be benign in practice, as all VMMs I could find
> that support nested virtualization just preallocate the max buffer size.
>
> Sean Christopherson (2):
> KVM: nVMX: Save shadow VMCS when getting nested state iff L2 is active
> KVM: selftests: Add regression test for KVM writing but not reporting
> vmcs12
>
> [...]
Applied patch 1 to kvm-x86 vmx, I'll follow-up on the selftest.
[1/2] KVM: nVMX: Save shadow VMCS when getting nested state iff L2 is active
https://github.com/kvm-x86/linux/commit/0333e967fb05
--
https://github.com/kvm-x86/linux/tree/next