Bug 1078201 (CVE-2014-0142)

Summary: CVE-2014-0142 qemu: crash by possible division by zero
Product: [Other] Security Response Reporter: Prasad Pandit <ppandit>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: areis, gmollett, jkurik, jrusnack, juzhang, knoel, kwolf, mkenneth, mrezanin, mtosatti, pmatouse, rbalakri, rpacheco, security-response-team, stefanha
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: 2016-01-27 13:06:08 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: 1079311, 1079312, 1079313, 1079314, 1079315, 1086710, 1087112, 1087126, 1087140, 1108461    
Bug Blocks: 1066967, 1086694    

Description Prasad Pandit 2014-03-19 11:40:32 UTC
Qemu block drivers for parallels image and formats used by Bocsh are vulnerable
to a crash caused by possible division by zero error, in seek_to_sector routine.
It could occur if 's->tracks' & 's->extent_size' fields are 0. These are used
to derive 'index' and 'offset' values in seek_to_sector() routine.

An user able to alter the Qemu disk image could use this flaw to crash the
Qemu instance resulting in DoS.

Upstream fixes:
---------------
parallels: Sanity check for s->tracks
  -> http://git.qemu.org/?p=qemu.git;a=commit;h=9302e863aa8baa5d932fc078967050c055fa1a7f

bochs: Check extent_size header field
  -> http://git.qemu.org/?p=qemu.git;a=commit;h=8e53abbc20d08ae3ec30c2054e1161314ad9501d

Comment 1 Prasad Pandit 2014-03-21 10:27:24 UTC
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 5 Prasad Pandit 2014-03-25 13:08:15 UTC
Acknowledgement:

These issues were discovered by Kevin Wolf of Red Hat Inc.

Comment 6 Prasad Pandit 2014-04-11 11:20:45 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1086710]

Comment 10 errata-xmlrpc 2014-04-22 17:40:52 UTC
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 11 errata-xmlrpc 2014-04-22 17:41:44 UTC
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 12 errata-xmlrpc 2014-04-24 17:37:04 UTC
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 13 errata-xmlrpc 2014-04-24 17:38:07 UTC
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 14 Fedora Update System 2014-05-01 22:26:13 UTC
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 15 errata-xmlrpc 2014-06-09 14:37:22 UTC
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