Skip to navigation

Security Advisory Moderate: kvm security and bug fix update

Advisory: RHSA-2012:0676-1
Type: Security Advisory
Severity: Moderate
Issued on: 2012-05-21
Last updated on: 2012-05-21
Affected Products: RHEL Desktop Multi OS (v. 5 client)
RHEL Virtualization (v. 5 server)
CVEs (cve.mitre.org): CVE-2012-1601
CVE-2012-2121

Details

Updated kvm packages that fix two security issues and one bug are now
available for Red Hat Enterprise Linux 5.

The Red Hat Security Response Team has rated this update as having moderate
security impact. Common Vulnerability Scoring System (CVSS) base scores,
which give detailed severity ratings, are available for each vulnerability
from the CVE links in the References section.

KVM (Kernel-based Virtual Machine) is a full virtualization solution for
Linux on AMD64 and Intel 64 systems. KVM is a Linux kernel module built for
the standard Red Hat Enterprise Linux kernel.

A flaw was found in the way the KVM_CREATE_IRQCHIP ioctl was handled.
Calling this ioctl when at least one virtual CPU (VCPU) already existed
could lead to a NULL pointer dereference later when the VCPU is scheduled
to run. A malicious user in the kvm group on the host could use this flaw
to crash the host. (CVE-2012-1601)

A flaw was found in the way device memory was handled during guest device
removal. Upon successful device removal, memory used by the device was not
properly unmapped from the corresponding IOMMU or properly released from
the kernel, leading to a memory leak. A malicious user in the kvm group on
the host who has the ability to assign a device to a guest could use this
flaw to crash the host. (CVE-2012-2121)

This update also fixes the following bug:

* An off-by-one error in the QEMU guest's memory management could, in rare
cases, cause QEMU-KVM to crash due to a segmentation fault in
tb_invalidate_phys_page_range() if a device initiated DMA into a specific
guest address. In a reported case, this issue presented on a system that
had a guest using the 8139cp network driver. (BZ#816207)

All users of kvm are advised to upgrade to these updated packages, which
contain backported patches to correct these issues. Note that the procedure
in the Solution section must be performed before this update will take
effect.


Solution

Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258

The following procedure must be performed before this update will take
effect:

1) Stop all KVM guest virtual machines.

2) Either reboot the hypervisor machine or, as the root user, remove (using
"modprobe -r [module]") and reload (using "modprobe [module]") all of the
following modules which are currently running (determined using "lsmod"):
kvm, ksm, kvm-intel or kvm-amd.

3) Restart the KVM guest virtual machines.

Updated packages

RHEL Desktop Multi OS (v. 5 client)

SRPMS:
kvm-83-249.el5_8.4.src.rpm
File outdated by:  RHSA-2014:0163
    MD5: 0158b3d4c61af54a876080cacea077c8
SHA-256: 2ff394f22f7e4de0b72e6bc98db0713cbea5af9104714f0bb0dcccecbccf9087
 
x86_64:
kmod-kvm-83-249.el5_8.4.x86_64.rpm
File outdated by:  RHSA-2014:0163
    MD5: 409817cc3d7be4c6cf9726396cf7b1dc
SHA-256: e1ebe51a3a9a3a92961f37f59d7a9b8170916793b2cdd37dc3c6e7f52cf4106f
kmod-kvm-debug-83-249.el5_8.4.x86_64.rpm
File outdated by:  RHSA-2014:0163
    MD5: cbc9b2dec3a2aa4bf8098d9485a1fb65
SHA-256: c0d278c05bae1b6ebee3d70a005e5f081764e75532fec63853531fa06e428e6a
kvm-83-249.el5_8.4.x86_64.rpm
File outdated by:  RHSA-2014:0163
    MD5: f5433c7687f948d512bf22057cf72189
SHA-256: 25822db48d3ba6b3543fa9f670bbfb4eedab01c5580344465c59fd3947d7468c
kvm-debuginfo-83-249.el5_8.4.x86_64.rpm
File outdated by:  RHSA-2014:0163
    MD5: 6706d799b593841bc4d7cc249a8b3f12
SHA-256: 4610d7162e36f1f4819d3b0be47a259ff0182723eb1fa7e8a2dba9b09d9ebd43
kvm-qemu-img-83-249.el5_8.4.x86_64.rpm
File outdated by:  RHSA-2014:0163
    MD5: 93cfde86b334d362901c90e89ce2ca96
SHA-256: 7097b89e6792951b6691f822b3ff5c206af7bff8c3f26bb0c4ddaf1243a78f97
kvm-tools-83-249.el5_8.4.x86_64.rpm
File outdated by:  RHSA-2014:0163
    MD5: 7da362860faf3b36e28437c456f7de2f
SHA-256: 6e870205e75c7a6fc3e631ac3265e5926d66647c4eb051f4c527c586b6181831
 
RHEL Virtualization (v. 5 server)

SRPMS:
kvm-83-249.el5_8.4.src.rpm
File outdated by:  RHSA-2014:0163
    MD5: 0158b3d4c61af54a876080cacea077c8
SHA-256: 2ff394f22f7e4de0b72e6bc98db0713cbea5af9104714f0bb0dcccecbccf9087
 
x86_64:
kmod-kvm-83-249.el5_8.4.x86_64.rpm
File outdated by:  RHSA-2014:0163
    MD5: 409817cc3d7be4c6cf9726396cf7b1dc
SHA-256: e1ebe51a3a9a3a92961f37f59d7a9b8170916793b2cdd37dc3c6e7f52cf4106f
kmod-kvm-debug-83-249.el5_8.4.x86_64.rpm
File outdated by:  RHSA-2014:0163
    MD5: cbc9b2dec3a2aa4bf8098d9485a1fb65
SHA-256: c0d278c05bae1b6ebee3d70a005e5f081764e75532fec63853531fa06e428e6a
kvm-83-249.el5_8.4.x86_64.rpm
File outdated by:  RHSA-2014:0163
    MD5: f5433c7687f948d512bf22057cf72189
SHA-256: 25822db48d3ba6b3543fa9f670bbfb4eedab01c5580344465c59fd3947d7468c
kvm-debuginfo-83-249.el5_8.4.x86_64.rpm
File outdated by:  RHSA-2014:0163
    MD5: 6706d799b593841bc4d7cc249a8b3f12
SHA-256: 4610d7162e36f1f4819d3b0be47a259ff0182723eb1fa7e8a2dba9b09d9ebd43
kvm-qemu-img-83-249.el5_8.4.x86_64.rpm
File outdated by:  RHSA-2014:0163
    MD5: 93cfde86b334d362901c90e89ce2ca96
SHA-256: 7097b89e6792951b6691f822b3ff5c206af7bff8c3f26bb0c4ddaf1243a78f97
kvm-tools-83-249.el5_8.4.x86_64.rpm
File outdated by:  RHSA-2014:0163
    MD5: 7da362860faf3b36e28437c456f7de2f
SHA-256: 6e870205e75c7a6fc3e631ac3265e5926d66647c4eb051f4c527c586b6181831
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

808199 - CVE-2012-1601 kernel: kvm: irqchip_in_kernel() and vcpu->arch.apic inconsistency
814149 - CVE-2012-2121 kvm: device assignment page leak


References



These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/