Bug 1066358 (CVE-2013-4532)

Summary: CVE-2013-4532 qemu: stellaris_enet: buffer overrun on incoming migration
Product: [Other] Security Response Reporter: Petr Matousek <pmatouse>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amit.shah, areis, berrange, bsarathy, cfergeau, dwmw2, ehabkost, gleb, itamar, jkurik, knoel, minovotn, mkenneth, mst, mtosatti, pbonzini, pfrields, ppandit, rbalakri, rhod, rjones, scottt.tw, virt-maint, virt-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-22 11:31:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1036654    

Description Petr Matousek 2014-02-18 09:44:04 UTC
Three issues were found:
 * s->next_packet is read from wire as an index into s->rx[].
 * s->tx_fifo_len is read from the wire and later used as an index into
     s->tx_fifo[] when a DATA command is issued by the guest.
 * s->tx_frame_len is read from the wire and can later used as an index
     into s->tx_fifo[] for memset() when a DATA command is issued by the
     guest.

An user able to alter the savevm data (either on the disk or over the wire
during migration) could use this flaw to 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.

References:
http://lists.gnu.org/archive/html/qemu-devel/2013-12/msg00403.html
http://lists.gnu.org/archive/html/qemu-devel/2013-12/msg00414.html
http://lists.gnu.org/archive/html/qemu-devel/2013-12/msg00404.html

Comment 1 Petr Matousek 2014-02-18 11:24:28 UTC
Statement:

Not vulnerable.

This issue does not affect the versions of kvm package as shipped with
Red Hat Enterprise Linux 5.

This issue does not affect the versions of qemu-kvm package as shipped
with Red Hat Enterprise Linux 6