Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1079240 - (CVE-2014-0144) CVE-2014-0144 Qemu: block: missing input validation
CVE-2014-0144 Qemu: block: missing input validation
Status: CLOSED ERRATA
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=20140326,repor...
: Security
Depends On: 1079449 1079450 1079452 1079453 1079455 1086735 1087112 1087126 1087140 1108461
Blocks: 1066967 1086694
  Show dependency treegraph
 
Reported: 2014-03-21 05:25 EDT by Prasad J Pandit
Modified: 2016-01-27 08:11 EST (History)
14 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-01-27 08:11:14 EST
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-2014:0420 normal SHIPPED_LIVE Moderate: qemu-kvm security update 2014-04-22 17:39:52 EDT
Red Hat Product Errata RHSA-2014:0421 normal SHIPPED_LIVE Moderate: qemu-kvm-rhev security update 2014-04-22 17:39:32 EDT
Red Hat Product Errata RHSA-2014:0434 normal SHIPPED_LIVE Moderate: qemu-kvm-rhev security update 2014-04-24 17:35:56 EDT
Red Hat Product Errata RHSA-2014:0435 normal SHIPPED_LIVE Moderate: qemu-kvm-rhev security update 2014-04-24 17:35:47 EDT
Red Hat Product Errata RHSA-2014:0674 normal SHIPPED_LIVE Moderate: rhev-hypervisor6 3.4.0 security, bug fix, and enhancement update 2014-06-09 14:35:12 EDT

  None (edit)
Description Prasad J Pandit 2014-03-21 05:25:47 EDT
Qemu block drivers for CLOOP, QCOW2 version 2 and various other image formats
are vulnerable to potential memory corruptions, integer/buffer overflows or
crash caused by missing input validations.

An user able to alter the Qemu disk image files loaded by a guest could use
this flaw to crash the Qemu instance resulting in DoS or 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.

Upstream fixes:
---------------
qcow2: Validate active L1 table offset and size
  -> http://git.qemu.org/?p=qemu.git;a=commit;h=2d51c32c4b511db8bb9e58208f1e2c25e4c06c85

qcow2: Validate snapshot table offset/size
  -> http://git.qemu.org/?p=qemu.git;a=commit;h=ce48f2f441ca98885267af6fd636a7cb804ee646

qcow2: Check refcount table size
  -> http://git.qemu.org/?p=qemu.git;a=commit;h=5dab2faddc8eaa1fb1abdbe2f502001fc13a1b21

qcow2: Check backing_file_offset
  -> http://git.qemu.org/?p=qemu.git;a=commit;h=a1b3955c9415b1e767c130a2f59fee6aa28e575b

qcow2: Check header_length
  -> http://git.qemu.org/?p=qemu.git;a=commit;h=24342f2cae47d03911e346fe1e520b00dc2818e0

curl: check data size before memcpy to local buffer
  -> http://git.qemu.org/?p=qemu.git;a=commit;h=6d4b9e55fc625514a38d27cff4b9933f617fa7dc

vdi: add bounds checks for blocks_in_image and disk_size
  -> http://git.qemu.org/?p=qemu.git;a=commit;h=63fa06dc978f3669dbfd9443b33cde9e2a7f4b41

vpc/vhd: add bounds check for max_table_entries
  -> http://git.qemu.org/?p=qemu.git;a=commit;h=97f1c45c6f456572e5b504b8614e4a69e23b8e3a

block/cloop: refuse images with bogus offsets
  -> http://git.qemu.org/?p=qemu.git;a=commit;h=f56b9bc3ae20fc93815b34aa022be919941406ce

block/cloop: refuse images with huge offsets arrays
  -> http://git.qemu.org/?p=qemu.git;a=commit;h=7b103b36d6ef3b11827c203d3a793bf7da50ecd6

block/cloop: validate block_size header field
  -> http://git.qemu.org/?p=qemu.git;a=commit;h=d65f97a82c4ed48374a764c769d4ba1ea9724e97
Comment 1 Prasad J Pandit 2014-03-21 06:29:31 EDT
Statement:

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

This issue affects the versions of qemu-kvm package as shipped with Red Hat
Enterprise Linux 6.
Comment 7 Prasad J Pandit 2014-03-25 09:31:09 EDT
Acknowledgement:

These issues were discovered by Fam Zheng, Jeff Cody, Kevin Wolf and Stefan Hajnoczi of Red Hat Inc.
Comment 8 Prasad J Pandit 2014-04-11 07:56:01 EDT
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1086735]
Comment 12 errata-xmlrpc 2014-04-22 13:41:34 EDT
This issue has been addressed in following products:

  RHEV-H and Agents for RHEL-6

Via RHSA-2014:0421 https://rhn.redhat.com/errata/RHSA-2014-0421.html
Comment 13 errata-xmlrpc 2014-04-22 13:45:00 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2014:0420 https://rhn.redhat.com/errata/RHSA-2014-0420.html
Comment 14 errata-xmlrpc 2014-04-24 13:37:46 EDT
This issue has been addressed in following products:

  OpenStack 3 for RHEL 6

Via RHSA-2014:0435 https://rhn.redhat.com/errata/RHSA-2014-0435.html
Comment 15 errata-xmlrpc 2014-04-24 13:40:00 EDT
This issue has been addressed in following products:

  OpenStack 4 for RHEL 6

Via RHSA-2014:0434 https://rhn.redhat.com/errata/RHSA-2014-0434.html
Comment 16 Fedora Update System 2014-05-01 18:26:31 EDT
qemu-1.6.2-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 17 errata-xmlrpc 2014-06-09 10:37:45 EDT
This issue has been addressed in following products:

  RHEV-H and Agents for RHEL-6

Via RHSA-2014:0674 https://rhn.redhat.com/errata/RHSA-2014-0674.html

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