Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1163075 - (CVE-2014-7840) CVE-2014-7840 qemu: insufficient parameter validation during ram load
CVE-2014-7840 qemu: insufficient parameter validation during ram load
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20141112,repor...
: Security
Depends On: 1163077 1163078 1163079 1163080
Blocks: 1162403
  Show dependency treegraph
 
Reported: 2014-11-12 05:41 EST by Petr Matousek
Modified: 2018-08-17 14:08 EDT (History)
32 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
It was found that certain values that were read when loading RAM during migration were not validated. 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.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0349 normal SHIPPED_LIVE Important: qemu-kvm security, bug fix, and enhancement update 2015-03-05 07:27:34 EST
Red Hat Product Errata RHSA-2015:0624 normal SHIPPED_LIVE Important: qemu-kvm-rhev security, bug fix, and enhancement update 2015-03-05 09:37:36 EST

  None (edit)
Description Petr Matousek 2014-11-12 05:41:17 EST
During migration, the values read from migration stream during ram 
load are not validated. Especially offset in host_from_stream_offset()
and also the length of the writes in the callers of the said function.

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.

Acknowledgements:

This issue was discovered by Michael S. Tsirkin of Red Hat.
Comment 1 Petr Matousek 2014-11-12 05:43:06 EST
Statement:

This issue affects the qemu-kvm packages as shipped with Red Hat Enterprise 
Linux 5, 6 and 7. Future updates for the respective releases may address this 
issue.

Red Hat Enterprise Linux 5 is now in Production 3 Phase of the support and 
maintenance life cycle. This has been rated as having Moderate security impact 
and is not currently planned to be addressed in future updates. For additional 
information, refer to the Red Hat Enterprise Linux Life Cycle: 
https://access.redhat.com/support/policy/updates/errata/.
Comment 2 Petr Matousek 2014-11-12 05:43:50 EST
Upstream patch submission --

http://thread.gmane.org/gmane.comp.emulators.qemu/306117
Comment 5 Petr Matousek 2014-11-12 05:47:31 EST
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1163080]
Comment 7 Fedora Update System 2014-12-11 23:26:55 EST
qemu-2.1.2-7.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 8 Fedora Update System 2014-12-23 13:30:21 EST
qemu-1.6.2-12.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 9 errata-xmlrpc 2015-03-05 03:13:52 EST
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2015:0349 https://rhn.redhat.com/errata/RHSA-2015-0349.html
Comment 10 errata-xmlrpc 2015-03-05 04:58:15 EST
This issue has been addressed in the following products:

  RHEV-H and Agents for RHEL-7

Via RHSA-2015:0624 https://rhn.redhat.com/errata/RHSA-2015-0624.html

Note You need to log in before you can comment on or make changes to this bug.