aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2013-12-12 21:20:08 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2013-12-12 22:46:18 +0100
commit17d68b763f09a9ce824ae23eb62c9efc57b69271 (patch)
tree2be4f93e491c3094d7ae1994191941ba4c1dcc4f /security
parentfda4e2e85589191b123d31cdc21fd33ee70f50fd (diff)
KVM: x86: fix guest-initiated crash with x2apic (CVE-2013-6376)
A guest can cause a BUG_ON() leading to a host kernel crash. When the guest writes to the ICR to request an IPI, while in x2apic mode the following things happen, the destination is read from ICR2, which is a register that the guest can control. kvm_irq_delivery_to_apic_fast uses the high 16 bits of ICR2 as the cluster id. A BUG_ON is triggered, which is a protection against accessing map->logical_map with an out-of-bounds access and manages to avoid that anything really unsafe occurs. The logic in the code is correct from real HW point of view. The problem is that KVM supports only one cluster with ID 0 in clustered mode, but the code that has the bug does not take this into account. Reported-by: Lars Bull <larsbull@google.com> Cc: stable@vger.kernel.org Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions