KVM: x86/xen: Fix cleanup logic in emulation of Xen schedop poll hypercalls
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
KVM: x86/xen: Fix cleanup logic in emulation of Xen schedop poll hypercalls
kvm_xen_schedop_poll does a kmalloc_array() when a VM polls the host for more than one event channel potr (nr_ports > 1).
After the kmalloc_array(), the error paths need to go through the "out" label, but the call to kvm_read_guest_virt() does not.
[Adjusted commit message. - Paolo]
From the CVE record · Linux
The Linux kernel’s KVM x86/Xen schedop poll emulation can skip required cleanup after allocating memory. This occurs when a VM polls more than one event channel port and a subsequent guest-memory read fails. The input does not specify an attacker impact or authentication requirements.
Engineers running Linux kernels with KVM x86/Xen support should check their versions; affected versions are not specified.