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

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

                               ESB-2014.1220
              Moderate: qemu-kvm security and bug fix update
                               24 July 2014

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

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

Product:           qemu-kvm
Publisher:         Red Hat
Operating System:  Red Hat Enterprise Linux Server 7
                   Red Hat Enterprise Linux WS/Desktop 7
Impact/Access:     Execute Arbitrary Code/Commands -- Existing Account
                   Denial of Service               -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2014-3461 CVE-2014-0223 CVE-2014-0222
                   CVE-2014-0182 CVE-2013-6399 CVE-2013-4542
                   CVE-2013-4541 CVE-2013-4536 CVE-2013-4535
                   CVE-2013-4529 CVE-2013-4527 CVE-2013-4151
                   CVE-2013-4150 CVE-2013-4149 CVE-2013-4148

Reference:         ESB-2014.0945
                   ESB-2014.0944

Original Bulletin: 
   https://rhn.redhat.com/errata/RHSA-2014-0927.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:0927-01
Product:           Red Hat Enterprise Linux
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2014-0927.html
Issue date:        2014-07-23
CVE Names:         CVE-2013-4148 CVE-2013-4149 CVE-2013-4150 
                   CVE-2013-4151 CVE-2013-4527 CVE-2013-4529 
                   CVE-2013-4535 CVE-2013-4536 CVE-2013-4541 
                   CVE-2013-4542 CVE-2013-6399 CVE-2014-0182 
                   CVE-2014-0222 CVE-2014-0223 CVE-2014-3461 
=====================================================================

1. Summary:

Updated qemu-kvm packages that fix multiple security issues and various
bugs are now available for Red Hat Enterprise Linux 7.

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 Client (v. 7) - x86_64
Red Hat Enterprise Linux Client Optional (v. 7) - x86_64
Red Hat Enterprise Linux ComputeNode (v. 7) - x86_64
Red Hat Enterprise Linux ComputeNode Optional (v. 7) - x86_64
Red Hat Enterprise Linux Server (v. 7) - x86_64
Red Hat Enterprise Linux Server Optional (v. 7) - x86_64
Red Hat Enterprise Linux Workstation (v. 7) - x86_64
Red Hat Enterprise Linux Workstation Optional (v. 7) - 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.

Two integer overflow flaws were found in the QEMU block driver for QCOW
version 1 disk images. A user able to alter the QEMU disk image files
loaded by a guest could use either of these flaws 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-0222, CVE-2014-0223)

Multiple buffer overflow, input validation, and out-of-bounds write flaws
were found in the way virtio, virtio-net, virtio-scsi, usb, and hpet
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-4149, CVE-2013-4150, CVE-2013-4151, CVE-2013-4527,
CVE-2013-4529, CVE-2013-4535, CVE-2013-4536, CVE-2013-4541, CVE-2013-4542,
CVE-2013-6399, CVE-2014-0182, CVE-2014-3461)

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

This update also fixes the following bugs:

* Previously, QEMU did not free pre-allocated zero clusters correctly and
the clusters under some circumstances leaked. With this update,
pre-allocated zero clusters are freed appropriately and the cluster leaks
no longer occur. (BZ#1110188)

* Prior to this update, the QEMU command interface did not properly handle
resizing of cache memory during guest migration, causing QEMU to terminate
unexpectedly with a segmentation fault and QEMU to fail. This update fixes
the related code and QEMU no longer crashes in the described situation.
(BZ#1110191)

* Previously, when a guest device was hot unplugged, QEMU correctly removed
the corresponding file descriptor watch but did not re-create it after the
device was re-connected. As a consequence, the guest became unable to
receive any data from the host over this device. With this update, the file
descriptor's watch is re-created and the guest in the above scenario can
communicate with the host as expected. (BZ#1110219)

* Previously, the QEMU migration code did not account for the gaps caused
by hot unplugged devices and thus expected more memory to be transferred
during migrations. As a consequence, guest migration failed to complete
after multiple devices were hot unplugged. In addition, the migration info
text displayed erroneous values for the "remaining ram" item. With this
update, QEMU calculates memory after a device has been unplugged correctly,
and any subsequent guest migrations proceed as expected. (BZ#1110189)

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/articles/11258

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

1066334 - CVE-2013-4148 qemu: virtio-net: buffer overflow on invalid state load
1066337 - CVE-2013-4149 qemu: virtio-net: out-of-bounds buffer write on load
1066340 - CVE-2013-4150 qemu: virtio-net: out-of-bounds buffer write on invalid state load
1066342 - CVE-2013-4151 qemu: virtio: out-of-bounds buffer write on invalid state load
1066347 - CVE-2013-4527 qemu: hpet: buffer overrun on invalid state load
1066353 - CVE-2013-4529 qemu: hw/pci/pcie_aer.c: buffer overrun 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
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
1097216 - CVE-2014-0222 Qemu: qcow1: validate L2 table size to avoid integer overflows
1097222 - CVE-2014-0223 Qemu: qcow1: validate image size to avoid out-of-bounds memory access
1110188 - qcow2 corruptions (leaked clusters after installing a rhel7 guest using virtio_scsi)
1110189 - migration can not finish with 1024k 'remaining ram' left after hotunplug 4 nics
1110191 - Reduce the migrate cache size during migration causes qemu segment fault
1110219 - Guest can't receive any character transmitted from host after hot unplugging virtserialport then hot plugging again

6. Package List:

Red Hat Enterprise Linux Client (v. 7):

Source:
qemu-kvm-1.5.3-60.el7_0.5.src.rpm

x86_64:
libcacard-1.5.3-60.el7_0.5.i686.rpm
libcacard-1.5.3-60.el7_0.5.x86_64.rpm
qemu-guest-agent-1.5.3-60.el7_0.5.x86_64.rpm
qemu-img-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-common-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.i686.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-tools-1.5.3-60.el7_0.5.x86_64.rpm

Red Hat Enterprise Linux Client Optional (v. 7):

x86_64:
libcacard-devel-1.5.3-60.el7_0.5.i686.rpm
libcacard-devel-1.5.3-60.el7_0.5.x86_64.rpm
libcacard-tools-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.i686.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.x86_64.rpm

Red Hat Enterprise Linux ComputeNode (v. 7):

Source:
qemu-kvm-1.5.3-60.el7_0.5.src.rpm

x86_64:
qemu-guest-agent-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.x86_64.rpm

Red Hat Enterprise Linux ComputeNode Optional (v. 7):

x86_64:
libcacard-1.5.3-60.el7_0.5.i686.rpm
libcacard-1.5.3-60.el7_0.5.x86_64.rpm
libcacard-devel-1.5.3-60.el7_0.5.i686.rpm
libcacard-devel-1.5.3-60.el7_0.5.x86_64.rpm
libcacard-tools-1.5.3-60.el7_0.5.x86_64.rpm
qemu-img-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-common-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.i686.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-tools-1.5.3-60.el7_0.5.x86_64.rpm

Red Hat Enterprise Linux Server (v. 7):

Source:
qemu-kvm-1.5.3-60.el7_0.5.src.rpm

x86_64:
libcacard-1.5.3-60.el7_0.5.i686.rpm
libcacard-1.5.3-60.el7_0.5.x86_64.rpm
qemu-guest-agent-1.5.3-60.el7_0.5.x86_64.rpm
qemu-img-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-common-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.i686.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-tools-1.5.3-60.el7_0.5.x86_64.rpm

Red Hat Enterprise Linux Server Optional (v. 7):

x86_64:
libcacard-devel-1.5.3-60.el7_0.5.i686.rpm
libcacard-devel-1.5.3-60.el7_0.5.x86_64.rpm
libcacard-tools-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.i686.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.x86_64.rpm

Red Hat Enterprise Linux Workstation (v. 7):

Source:
qemu-kvm-1.5.3-60.el7_0.5.src.rpm

x86_64:
libcacard-1.5.3-60.el7_0.5.i686.rpm
libcacard-1.5.3-60.el7_0.5.x86_64.rpm
qemu-guest-agent-1.5.3-60.el7_0.5.x86_64.rpm
qemu-img-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-common-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.i686.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-tools-1.5.3-60.el7_0.5.x86_64.rpm

Red Hat Enterprise Linux Workstation Optional (v. 7):

x86_64:
libcacard-devel-1.5.3-60.el7_0.5.i686.rpm
libcacard-devel-1.5.3-60.el7_0.5.x86_64.rpm
libcacard-tools-1.5.3-60.el7_0.5.x86_64.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.i686.rpm
qemu-kvm-debuginfo-1.5.3-60.el7_0.5.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-4149.html
https://www.redhat.com/security/data/cve/CVE-2013-4150.html
https://www.redhat.com/security/data/cve/CVE-2013-4151.html
https://www.redhat.com/security/data/cve/CVE-2013-4527.html
https://www.redhat.com/security/data/cve/CVE-2013-4529.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-0222.html
https://www.redhat.com/security/data/cve/CVE-2014-0223.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)

iD8DBQFTz/HcXlSAg2UNWIIRAg3JAJ9hdSQpwiCcWGcnAnciDZgsVGTW5gCfRAMV
3uH1H6+IOWo4TpNLXNxvUlg=
=vcBq
- -----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

iQIVAwUBU9BXABLndAQH1ShLAQKdhhAAqpz/beyEAQK55ZctTXlU+Rhhy/DU5qB3
/gbMlpndc4KAVPKtV7X8gVRvx6G9QsPkdgcN0oZofjXQ5dqH90DzLMcecLe4443D
HBWPTuyOir5BopiQRsYz5tWSnCHzPJc2x+YhRYJUCQEfqvo7qHlR3BaBMaCxx9jH
m8IA7KbR15hXFWCnKDrPvA+6980q+4XEmjR8+aMMn/MU0//TVba/LW71Gf2U5H7U
3qign68Oc3BXogKd1Vhv8JCDgyXH1Zeqxn69yvv8caVq29rHEBw+UsK0xYhvGJqN
ngBXYzkIxxivL1WccQFwJzv5f5VXraDRxBxzw9GGCppBCXOMUi58HoH0rgizbR1y
h8hCidN9ZH0hKty6g388GoWglNIYzUSbNJ0w/Ulo1+3MSMHbNVO5RkXJitKXemHy
sWsRZBOy10q1ZppWBTc0q7jSrJN5oxFZJ5I4MAQhAcKB861oUGkLarMTXvwJb8Qi
i+fQJyUX5NOaRI6sxo/D9IDYEzaGTMC//68Dd8FEykVm0pFyUrtf5DgDI4vxJX5m
SLS2j/LVH/HpKIE+dtiRIGoKjJ5+UJyeGTqYqIzm6We3Q7JVxNUt/hu86WKFNKE0
RLQ31EodeCMU/86s+XYe2P4t6CF5JlTmCe+VTzhBi1b1E7M0vUuMj1JP7dIjp7yn
Jn8QGitChc0=
=g/iE
-----END PGP SIGNATURE-----