Nytro Posted March 21, 2013 Report Posted March 21, 2013 Linux Kernel kvm Multiple Vulns * CVE-2013-1796Description of the problem:If the guest sets the GPA of the time_page so that the request to updatethe time straddles a page then KVM will write onto an incorrect page.Thewrite is done byusing kmap atomic to get a pointer to the page forthe time structure and then performing a memcpy to that page starting atan offset that the guest controls. Well behaved guests always provide a32-byte aligned address, however a malicious guest could use this tocorrupt host kernel memory.Upstream commit:https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/?id=c300aa64ddf57d9c5d9c898a64b36877345dd4a9References:https://bugzilla.redhat.com/show_bug.cgi?id=917012* CVE-2013-1797Description of the problem:There is a potential use after free issue with the handling ofMSR_KVM_SYSTEM_TIME. If the guest specifies a GPA in a movable orremovable memory such as frame buffers then KVM might continue to writeto that address even after it's removed via KVM_SET_USER_MEMORY_REGION.KVM pins the page in memory so it's unlikely to cause an issue, but ifthe user space component re-purposes the memory previously used for theguest, then the guest will be able to corrupt that memory.Upstream commit:https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/?id=0b79459b482e85cb7426aa7da683a9f2c97aeae1References:https://bugzilla.redhat.com/show_bug.cgi?id=917013* CVE-2013-1798Description of the problem:If the guest specifies a IOAPIC_REG_SELECT with an invalid value andfollows that with a read of the IOAPIC_REG_WINDOW KVM does not properlyvalidate that request. ioapic_read_indirect contains anASSERT(redir_index < IOAPIC_NUM_PINS), but the ASSERT has no effect innon-debug builds. In recent kernels this allows a guest to cause akernel oops by reading invalid memory. In older kernels (pre-3.3) thisallows a guest to read from large ranges of host memory.Upstream commit:https://git.kernel.org/cgit/virt/kvm/kvm.git/commit/?id=a2c118bfab8bc6b8bb213abfc35201e441693d55References:https://bugzilla.redhat.com/show_bug.cgi?id=917017All three issues were found and reported by Andrew Honig of Google. References:https://bugzilla.redhat.com/show_bug.cgi?id=917012 https://bugzilla.redhat.com/show_bug.cgi?id=917013 https://bugzilla.redhat.com/show_bug.cgi?id=917017 http://seclists.org/oss-sec/2013/q1/702Sursa: Linux Kernel kvm Multiple Vulns - CXSecurity.com Quote