-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2014.0944
              Moderate: qemu-kvm security and bug fix update
                               11 June 2014

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           qemu-kvm
Publisher:         Red Hat
Operating System:  Red Hat Enterprise Linux Server 6
                   Red Hat Enterprise Linux WS/Desktop 6
Impact/Access:     Execute Arbitrary Code/Commands -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2014-3461 CVE-2014-2894 CVE-2014-0182
                   CVE-2013-6399 CVE-2013-4542 CVE-2013-4541
                   CVE-2013-4536 CVE-2013-4535 CVE-2013-4151
                   CVE-2013-4148  

Reference:         ESB-2014.0773

Original Bulletin: 
   https://rhn.redhat.com/errata/RHSA-2014-0743.html

- --------------------------BEGIN INCLUDED TEXT--------------------

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

=====================================================================
                   Red Hat Security Advisory

Synopsis:          Moderate: qemu-kvm security and bug fix update
Advisory ID:       RHSA-2014:0743-01
Product:           Red Hat Enterprise Linux
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2014-0743.html
Issue date:        2014-06-10
CVE Names:         CVE-2013-4148 CVE-2013-4151 CVE-2013-4535 
                   CVE-2013-4536 CVE-2013-4541 CVE-2013-4542 
                   CVE-2013-6399 CVE-2014-0182 CVE-2014-2894 
                   CVE-2014-3461 
=====================================================================

1. Summary:

Updated qemu-kvm packages that fix multiple security issues and two bugs
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.

2. Relevant releases/architectures:

Red Hat Enterprise Linux Desktop (v. 6) - i386, x86_64
Red Hat Enterprise Linux HPC Node (v. 6) - x86_64
Red Hat Enterprise Linux Server (v. 6) - i386, x86_64
Red Hat Enterprise Linux Workstation (v. 6) - i386, x86_64

3. Description:

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 buffer overflow, input validation, and out-of-bounds write flaws
were found in the way the virtio, virtio-net, virtio-scsi, and usb drivers
of QEMU handled state loading after migration. A user able to alter the
savevm data (either on the disk or over the wire during migration) could
use either of these flaws to corrupt QEMU process memory on the
(destination) host, which could potentially result in arbitrary code
execution on the host with the privileges of the QEMU process.
(CVE-2013-4148, CVE-2013-4151, CVE-2013-4535, CVE-2013-4536, CVE-2013-4541,
CVE-2013-4542, CVE-2013-6399, CVE-2014-0182, CVE-2014-3461)

An out-of-bounds memory access flaw was found in the way QEMU's IDE device
driver handled the execution of SMART EXECUTE OFFLINE commands.
A privileged guest user could use this flaw to corrupt QEMU process memory
on the host, which could potentially result in arbitrary code execution on
the host with the privileges of the QEMU process. (CVE-2014-2894)

The CVE-2013-4148, CVE-2013-4151, CVE-2013-4535, CVE-2013-4536,
CVE-2013-4541, CVE-2013-4542, CVE-2013-6399, CVE-2014-0182, and
CVE-2014-3461 issues were discovered by Michael S. Tsirkin of Red Hat,
Anthony Liguori, and Michael Roth.

This update also fixes the following bugs:

* Previously, under certain circumstances, libvirt failed to start guests
which used a non-zero PCI domain and SR-IOV Virtual Functions (VFs), and
returned the following error message:

Can't assign device inside non-zero PCI segment as this KVM module doesn't
support it.

This update fixes this issue and guests using the aforementioned
configuration no longer fail to start. (BZ#1099941)

* Due to an incorrect initialization of the cpus_sts bitmap, which holds
the enablement status of a vCPU, libvirt could fail to start a guest with
an unusual vCPU topology (for example, a guest with three cores and two
sockets). With this update, the initialization of cpus_sts has been
corrected, and libvirt no longer fails to start the aforementioned guests.
(BZ#1100575)

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.

4. 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

5. Bugs fixed (https://bugzilla.redhat.com/):

1066334 - CVE-2013-4148 qemu: virtio-net: buffer overflow on invalid state load
1066342 - CVE-2013-4151 qemu: virtio: out-of-bounds buffer write on invalid state load
1066361 - CVE-2013-6399 qemu: virtio: buffer overrun on incoming migration
1066382 - CVE-2013-4542 qemu: virtio-scsi: buffer overrun on invalid state load
1066384 - CVE-2013-4541 qemu: usb: insufficient sanity checking of setup_index+setup_len in post_load
1066401 - CVE-2013-4535 CVE-2013-4536 qemu: virtio: insufficient validation of num_sg when mapping
1087971 - CVE-2014-2894 QEMU: out of bounds buffer accesses, guest triggerable via IDE SMART
1088986 - CVE-2014-0182 qemu: virtio: out-of-bounds buffer write on state load with invalid config_len
1096821 - CVE-2014-3461 Qemu: usb: fix up post load checks
1100575 - Some vCPU topologies not accepted by libvirt

6. Package List:

Red Hat Enterprise Linux Desktop (v. 6):

Source:
qemu-kvm-0.12.1.2-2.415.el6_5.10.src.rpm

i386:
qemu-guest-agent-0.12.1.2-2.415.el6_5.10.i686.rpm
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.10.i686.rpm

x86_64:
qemu-guest-agent-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-img-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-kvm-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-kvm-tools-0.12.1.2-2.415.el6_5.10.x86_64.rpm

Red Hat Enterprise Linux HPC Node (v. 6):

Source:
qemu-kvm-0.12.1.2-2.415.el6_5.10.src.rpm

x86_64:
qemu-guest-agent-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-img-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-kvm-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-kvm-tools-0.12.1.2-2.415.el6_5.10.x86_64.rpm

Red Hat Enterprise Linux Server (v. 6):

Source:
qemu-kvm-0.12.1.2-2.415.el6_5.10.src.rpm

i386:
qemu-guest-agent-0.12.1.2-2.415.el6_5.10.i686.rpm
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.10.i686.rpm

x86_64:
qemu-guest-agent-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-img-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-kvm-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-kvm-tools-0.12.1.2-2.415.el6_5.10.x86_64.rpm

Red Hat Enterprise Linux Workstation (v. 6):

Source:
qemu-kvm-0.12.1.2-2.415.el6_5.10.src.rpm

i386:
qemu-guest-agent-0.12.1.2-2.415.el6_5.10.i686.rpm
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.10.i686.rpm

x86_64:
qemu-guest-agent-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-img-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-kvm-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-kvm-debuginfo-0.12.1.2-2.415.el6_5.10.x86_64.rpm
qemu-kvm-tools-0.12.1.2-2.415.el6_5.10.x86_64.rpm

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

7. References:

https://www.redhat.com/security/data/cve/CVE-2013-4148.html
https://www.redhat.com/security/data/cve/CVE-2013-4151.html
https://www.redhat.com/security/data/cve/CVE-2013-4535.html
https://www.redhat.com/security/data/cve/CVE-2013-4536.html
https://www.redhat.com/security/data/cve/CVE-2013-4541.html
https://www.redhat.com/security/data/cve/CVE-2013-4542.html
https://www.redhat.com/security/data/cve/CVE-2013-6399.html
https://www.redhat.com/security/data/cve/CVE-2014-0182.html
https://www.redhat.com/security/data/cve/CVE-2014-2894.html
https://www.redhat.com/security/data/cve/CVE-2014-3461.html
https://access.redhat.com/security/updates/classification/#moderate

8. Contact:

The Red Hat security contact is <secalert@redhat.com>.  More contact
details at https://access.redhat.com/security/team/contact/

Copyright 2014 Red Hat, Inc.
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)

iD8DBQFTl31qXlSAg2UNWIIRAtvwAJwPiQxEOQ/AsWD3iCg5gtlJ35G1NwCeO10p
duhrlNvUcqV+Saiygbbr4mo=
=KjU6
- -----END PGP SIGNATURE-----

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBU5fiFRLndAQH1ShLAQIfTBAAsywnXcAZzKYOW4L9M5sj7cg9iVNzW85e
PC1MyoFFanlnwcqNzcA8XzVJ69EeD/a4Fm5SeIpfngRdzpAZDOso0HZ/1/X9YxdI
gQbeAWkpV4eTIhdjxzPbE00LMkJIsWudr0CYIwzkme/lSWB490kXvpB8cPThAPmf
9Rlu2jdeBlKM6ZWy0YMGS8CSGsf1KnfympMEK3ppE6FwhKDOZZnCW1sAsJtcplWr
EtK6zrPos8Yq3ku0gXsoqzf+l1doQcrd2+Uhr0+31naWCB8AE97lxhRx7PmkjsEz
eudaw//QZTXvQaxhIpiCx5A+tzxaA1p+HUOIVhX+0A2SqpRrg+Yb+rUvxPSEZJ3E
pr7It8wKkfjgOS5xbAS01eoNLnnCs1J4Ag+i5cQi4ckROQAjU64z/kpMwlKsysvF
VhtKiU83UvFZ3mmr8J348kLIcSnPtah8jI5LqPTuJ5Cn1E1jXVsjG9n/TsDq9YA0
Yic63H5drwVC7pf/dmy6UEUtQIj7EVgFaZ9P80bJygprb76v6/LVmgYQHDNto/Hg
eWAO5bAD8bDs77WOJUEkyjK3AFw0zq9PFvN7PvQBY4oB6m97nAhGv+qgn36X1jY4
u1y6bIenLgtgK3Mw93rudvNjGzNO+AHcs58/cNWfPmLmDr6F1tGAhEZkwr9OSXY0
8LmPnNEkf3o=
=cIAa
-----END PGP SIGNATURE-----