Security Advisory Moderate: qemu-kvm security update

Advisory: RHSA-2014:0420-1
Type: Security Advisory
Severity: Moderate
Issued on: 2014-04-22
Last updated on: 2014-04-22
Affected Products: Red Hat Enterprise Linux Desktop (v. 6)
Red Hat Enterprise Linux HPC Node (v. 6)
Red Hat Enterprise Linux Server (v. 6)
Red Hat Enterprise Linux Server AUS (v. 6.5)
Red Hat Enterprise Linux Server EUS (v. 6.5.z)
Red Hat Enterprise Linux Workstation (v. 6)
CVEs (cve.mitre.org): CVE-2014-0142
CVE-2014-0143
CVE-2014-0144
CVE-2014-0145
CVE-2014-0146
CVE-2014-0147
CVE-2014-0148
CVE-2014-0150

Details

Updated qemu-kvm packages that fix multiple security issues are now
available for Red Hat Enterprise Linux 6.

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. The qemu-kvm package provides the
user-space component for running virtual machines using KVM.

Multiple integer overflow, input validation, logic error, and buffer
overflow flaws were discovered in various QEMU block drivers. An attacker
able to modify a disk image file loaded by a guest could use these flaws to
crash the guest, or corrupt QEMU process memory on the host, potentially
resulting in arbitrary code execution on the host with the privileges of
the QEMU process. (CVE-2014-0143, CVE-2014-0144, CVE-2014-0145,
CVE-2014-0147)

A buffer overflow flaw was found in the way the virtio_net_handle_mac()
function of QEMU processed guest requests to update the table of MAC
addresses. A privileged guest user could use this flaw to corrupt QEMU
process memory on the host, potentially resulting in arbitrary code
execution on the host with the privileges of the QEMU process.
(CVE-2014-0150)

A divide-by-zero flaw was found in the seek_to_sector() function of the
parallels block driver in QEMU. An attacker able to modify a disk image
file loaded by a guest could use this flaw to crash the guest.
(CVE-2014-0142)

A NULL pointer dereference flaw was found in the QCOW2 block driver in
QEMU. An attacker able to modify a disk image file loaded by a guest could
use this flaw to crash the guest. (CVE-2014-0146)

It was found that the block driver for Hyper-V VHDX images did not
correctly calculate BAT (Block Allocation Table) entries due to a missing
bounds check. An attacker able to modify a disk image file loaded by a
guest could use this flaw to crash the guest. (CVE-2014-0148)

The CVE-2014-0143 issues were discovered by Kevin Wolf and Stefan Hajnoczi
of Red Hat, the CVE-2014-0144 issues were discovered by Fam Zheng, Jeff
Cody, Kevin Wolf, and Stefan Hajnoczi of Red Hat, the CVE-2014-0145 issues
were discovered by Stefan Hajnoczi of Red Hat, the CVE-2014-0150 issue was
discovered by Michael S. Tsirkin of Red Hat, the CVE-2014-0142,
CVE-2014-0146, and CVE-2014-0147 issues were discovered by Kevin Wolf of
Red Hat, and the CVE-2014-0148 issue was discovered by Jeff Cody of
Red Hat.

All qemu-kvm users are advised to upgrade to these updated packages, which
contain backported patches to correct these issues. After installing this
update, shut down all running virtual machines. Once all virtual machines
have shut down, start them again for this update to 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/site/articles/11258

Updated packages

Red Hat Enterprise Linux Desktop (v. 6)

SRPMS:
qemu-kvm-0.12.1.2-2.415.el6_5.8.src.rpm
File outdated by:  RHBA-2015:1275
    MD5: 961ae1183c1d8127143a46b4b750f572
SHA-256: 090f04048fe50722e431dcb32bf5ca1ae84c701f43daf5effdd91a11070037e9
 
IA-32:
qemu-guest-agent-0.12.1.2-2.415.el6_5.8.i686.rpm
File outdated by:  RHBA-2015:1275
    MD5: 3df4c1556e102ec9e49a27ff2d4d6b94
SHA-256: ee9eb55df58db6afc144d0020f6b54199009308e0c4bfcb990b50fadc79819b9
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.8.i686.rpm
File outdated by:  RHBA-2015:1275
    MD5: ad2a2e1583406502c9375f9e1f559397
SHA-256: a2be27bf75be08ba7ccdd4f20fe232bc4bd2c24ed55c5c832a2353fba29a8923
 
x86_64:
qemu-guest-agent-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: 1e55c881e2b5297ff45e3a9cfe086f5d
SHA-256: 26b73a206ed7d614fc0eabb4c7cfc0d2e5d34caa3e4d562b8f384d03fbfd8fcb
qemu-img-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: 633a5fc0052ea65581850acd3ec3950f
SHA-256: 5d404c10951670b5ffc961d0fd682ed7947473e18657ecc6adc8a4fa4c90f4a4
qemu-kvm-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: e24808b69ebe5d96fa853ca24e27b79c
SHA-256: 332289fb9a1de5029593b2a511ca193a2662184916572c8c25fd9c23021d21e1
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: 8d8c7532bdddbcbff221b7caf735c75f
SHA-256: d21e2cf5bbedc2bd19b7639b9f37a2761c3a088aa1a0e7ff8abc6f623801c2c0
qemu-kvm-tools-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: be729555ca05a7dbf02c893b7c092e1a
SHA-256: 19dfb5cb4a03570dffce226b1045618dee2be0e839d6ef4d057eb5375c953492
 
Red Hat Enterprise Linux HPC Node (v. 6)

SRPMS:
qemu-kvm-0.12.1.2-2.415.el6_5.8.src.rpm
File outdated by:  RHBA-2015:1275
    MD5: 961ae1183c1d8127143a46b4b750f572
SHA-256: 090f04048fe50722e431dcb32bf5ca1ae84c701f43daf5effdd91a11070037e9
 
x86_64:
qemu-guest-agent-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: 1e55c881e2b5297ff45e3a9cfe086f5d
SHA-256: 26b73a206ed7d614fc0eabb4c7cfc0d2e5d34caa3e4d562b8f384d03fbfd8fcb
qemu-img-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: 633a5fc0052ea65581850acd3ec3950f
SHA-256: 5d404c10951670b5ffc961d0fd682ed7947473e18657ecc6adc8a4fa4c90f4a4
qemu-kvm-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: e24808b69ebe5d96fa853ca24e27b79c
SHA-256: 332289fb9a1de5029593b2a511ca193a2662184916572c8c25fd9c23021d21e1
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: 8d8c7532bdddbcbff221b7caf735c75f
SHA-256: d21e2cf5bbedc2bd19b7639b9f37a2761c3a088aa1a0e7ff8abc6f623801c2c0
qemu-kvm-tools-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: be729555ca05a7dbf02c893b7c092e1a
SHA-256: 19dfb5cb4a03570dffce226b1045618dee2be0e839d6ef4d057eb5375c953492
 
Red Hat Enterprise Linux Server (v. 6)

SRPMS:
qemu-kvm-0.12.1.2-2.415.el6_5.8.src.rpm
File outdated by:  RHBA-2015:1275
    MD5: 961ae1183c1d8127143a46b4b750f572
SHA-256: 090f04048fe50722e431dcb32bf5ca1ae84c701f43daf5effdd91a11070037e9
 
IA-32:
qemu-guest-agent-0.12.1.2-2.415.el6_5.8.i686.rpm
File outdated by:  RHBA-2015:1275
    MD5: 3df4c1556e102ec9e49a27ff2d4d6b94
SHA-256: ee9eb55df58db6afc144d0020f6b54199009308e0c4bfcb990b50fadc79819b9
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.8.i686.rpm
File outdated by:  RHBA-2015:1275
    MD5: ad2a2e1583406502c9375f9e1f559397
SHA-256: a2be27bf75be08ba7ccdd4f20fe232bc4bd2c24ed55c5c832a2353fba29a8923
 
x86_64:
qemu-guest-agent-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: 1e55c881e2b5297ff45e3a9cfe086f5d
SHA-256: 26b73a206ed7d614fc0eabb4c7cfc0d2e5d34caa3e4d562b8f384d03fbfd8fcb
qemu-img-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: 633a5fc0052ea65581850acd3ec3950f
SHA-256: 5d404c10951670b5ffc961d0fd682ed7947473e18657ecc6adc8a4fa4c90f4a4
qemu-kvm-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: e24808b69ebe5d96fa853ca24e27b79c
SHA-256: 332289fb9a1de5029593b2a511ca193a2662184916572c8c25fd9c23021d21e1
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: 8d8c7532bdddbcbff221b7caf735c75f
SHA-256: d21e2cf5bbedc2bd19b7639b9f37a2761c3a088aa1a0e7ff8abc6f623801c2c0
qemu-kvm-tools-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: be729555ca05a7dbf02c893b7c092e1a
SHA-256: 19dfb5cb4a03570dffce226b1045618dee2be0e839d6ef4d057eb5375c953492
 
Red Hat Enterprise Linux Server AUS (v. 6.5)

SRPMS:
qemu-kvm-0.12.1.2-2.415.el6_5.8.src.rpm
File outdated by:  RHBA-2015:1275
    MD5: 961ae1183c1d8127143a46b4b750f572
SHA-256: 090f04048fe50722e431dcb32bf5ca1ae84c701f43daf5effdd91a11070037e9
 
x86_64:
qemu-guest-agent-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHSA-2015:1031
    MD5: 1e55c881e2b5297ff45e3a9cfe086f5d
SHA-256: 26b73a206ed7d614fc0eabb4c7cfc0d2e5d34caa3e4d562b8f384d03fbfd8fcb
qemu-img-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHSA-2015:1031
    MD5: 633a5fc0052ea65581850acd3ec3950f
SHA-256: 5d404c10951670b5ffc961d0fd682ed7947473e18657ecc6adc8a4fa4c90f4a4
qemu-kvm-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHSA-2015:1031
    MD5: e24808b69ebe5d96fa853ca24e27b79c
SHA-256: 332289fb9a1de5029593b2a511ca193a2662184916572c8c25fd9c23021d21e1
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHSA-2015:1031
    MD5: 8d8c7532bdddbcbff221b7caf735c75f
SHA-256: d21e2cf5bbedc2bd19b7639b9f37a2761c3a088aa1a0e7ff8abc6f623801c2c0
qemu-kvm-tools-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHSA-2015:1031
    MD5: be729555ca05a7dbf02c893b7c092e1a
SHA-256: 19dfb5cb4a03570dffce226b1045618dee2be0e839d6ef4d057eb5375c953492
 
Red Hat Enterprise Linux Server EUS (v. 6.5.z)

SRPMS:
qemu-kvm-0.12.1.2-2.415.el6_5.8.src.rpm
File outdated by:  RHBA-2015:1275
    MD5: 961ae1183c1d8127143a46b4b750f572
SHA-256: 090f04048fe50722e431dcb32bf5ca1ae84c701f43daf5effdd91a11070037e9
 
IA-32:
qemu-guest-agent-0.12.1.2-2.415.el6_5.8.i686.rpm
File outdated by:  RHSA-2015:1031
    MD5: 3df4c1556e102ec9e49a27ff2d4d6b94
SHA-256: ee9eb55df58db6afc144d0020f6b54199009308e0c4bfcb990b50fadc79819b9
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.8.i686.rpm
File outdated by:  RHSA-2015:1031
    MD5: ad2a2e1583406502c9375f9e1f559397
SHA-256: a2be27bf75be08ba7ccdd4f20fe232bc4bd2c24ed55c5c832a2353fba29a8923
 
x86_64:
qemu-guest-agent-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHSA-2015:1031
    MD5: 1e55c881e2b5297ff45e3a9cfe086f5d
SHA-256: 26b73a206ed7d614fc0eabb4c7cfc0d2e5d34caa3e4d562b8f384d03fbfd8fcb
qemu-img-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHSA-2015:1031
    MD5: 633a5fc0052ea65581850acd3ec3950f
SHA-256: 5d404c10951670b5ffc961d0fd682ed7947473e18657ecc6adc8a4fa4c90f4a4
qemu-kvm-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHSA-2015:1031
    MD5: e24808b69ebe5d96fa853ca24e27b79c
SHA-256: 332289fb9a1de5029593b2a511ca193a2662184916572c8c25fd9c23021d21e1
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHSA-2015:1031
    MD5: 8d8c7532bdddbcbff221b7caf735c75f
SHA-256: d21e2cf5bbedc2bd19b7639b9f37a2761c3a088aa1a0e7ff8abc6f623801c2c0
qemu-kvm-tools-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHSA-2015:1031
    MD5: be729555ca05a7dbf02c893b7c092e1a
SHA-256: 19dfb5cb4a03570dffce226b1045618dee2be0e839d6ef4d057eb5375c953492
 
Red Hat Enterprise Linux Workstation (v. 6)

SRPMS:
qemu-kvm-0.12.1.2-2.415.el6_5.8.src.rpm
File outdated by:  RHBA-2015:1275
    MD5: 961ae1183c1d8127143a46b4b750f572
SHA-256: 090f04048fe50722e431dcb32bf5ca1ae84c701f43daf5effdd91a11070037e9
 
IA-32:
qemu-guest-agent-0.12.1.2-2.415.el6_5.8.i686.rpm
File outdated by:  RHBA-2015:1275
    MD5: 3df4c1556e102ec9e49a27ff2d4d6b94
SHA-256: ee9eb55df58db6afc144d0020f6b54199009308e0c4bfcb990b50fadc79819b9
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.8.i686.rpm
File outdated by:  RHBA-2015:1275
    MD5: ad2a2e1583406502c9375f9e1f559397
SHA-256: a2be27bf75be08ba7ccdd4f20fe232bc4bd2c24ed55c5c832a2353fba29a8923
 
x86_64:
qemu-guest-agent-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: 1e55c881e2b5297ff45e3a9cfe086f5d
SHA-256: 26b73a206ed7d614fc0eabb4c7cfc0d2e5d34caa3e4d562b8f384d03fbfd8fcb
qemu-img-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: 633a5fc0052ea65581850acd3ec3950f
SHA-256: 5d404c10951670b5ffc961d0fd682ed7947473e18657ecc6adc8a4fa4c90f4a4
qemu-kvm-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: e24808b69ebe5d96fa853ca24e27b79c
SHA-256: 332289fb9a1de5029593b2a511ca193a2662184916572c8c25fd9c23021d21e1
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: 8d8c7532bdddbcbff221b7caf735c75f
SHA-256: d21e2cf5bbedc2bd19b7639b9f37a2761c3a088aa1a0e7ff8abc6f623801c2c0
qemu-kvm-tools-0.12.1.2-2.415.el6_5.8.x86_64.rpm
File outdated by:  RHBA-2015:1275
    MD5: be729555ca05a7dbf02c893b7c092e1a
SHA-256: 19dfb5cb4a03570dffce226b1045618dee2be0e839d6ef4d057eb5375c953492
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

1078201 - CVE-2014-0142 qemu: crash by possible division by zero
1078212 - CVE-2014-0148 Qemu: vhdx: bounds checking for block_size and logical_sector_size
1078232 - CVE-2014-0146 Qemu: qcow2: NULL dereference in qcow2_open() error path
1078846 - CVE-2014-0150 qemu: virtio-net: buffer overflow in virtio_net_handle_mac() function
1078848 - CVE-2014-0147 Qemu: block: possible crash due signed types or logic error
1078885 - CVE-2014-0145 Qemu: prevent possible buffer overflows
1079140 - CVE-2014-0143 Qemu: block: multiple integer overflow flaws
1079240 - CVE-2014-0144 Qemu: block: missing input validation


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/