Bug 1334398 (CVE-2016-9921, CVE-2016-9922)

Summary: CVE-2016-9921 CVE-2016-9922 Qemu: display: cirrus_vga: a divide by zero in cirrus_do_copy
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abaron, ailan, alonbl, apevec, areis, chrisw, crobinso, cvsbot-xmlrpc, drjones, imammedo, jen, jjoyce, jschluet, kbasil, knoel, lhh, lpeer, markmc, mkenneth, mrezanin, mst, pbonzini, ppandit, rbryant, rkrcmar, sclewis, security-response-team, srevivo, tdecacqu, virt-maint, vkuznets, ykaul
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: 2019-06-08 02:51:28 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: 1399054, 1399055, 1476049, 1476068, 1476069, 1476072, 1476074, 1476077    
Bug Blocks: 1327232, 1476084    

Description Adam Mariš 2016-05-09 13:58:21 UTC
Quick emulator(Qemu) built with the Cirrus CLGD 54xx VGA Emulator support is vulnerable to a divide by zero issue. It could occur while copying VGA data when cirrus graphics mode was set to be VGA.

A privileged user inside guest could use this flaw to crash the Qemu process instance on the host, resulting in DoS.

Upstream patch
--------------
  -> https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg03968.html

Reference:
----------
  -> http://www.openwall.com/lists/oss-security/2016/12/08/9

Comment 1 Adam Mariš 2016-05-09 13:58:37 UTC
Acknowledgments:

Name: Qinghao Tang (Qihoo 360), Li Qiang (Qihoo 360), Jiangxin (Huawei Inc.)

Comment 3 Prasad Pandit 2016-11-28 07:51:20 UTC
Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1399055]

Comment 4 Prasad Pandit 2016-11-28 07:51:37 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1399054]

Comment 7 Cole Robinson 2017-01-16 18:39:20 UTC
commit 4299b90e9ba9ce5ca9024572804ba751aa1a7e70
Author: Prasad J Pandit <pjp>
Date:   Tue Oct 18 13:15:17 2016 +0530

    display: cirrus: check vga bits per pixel(bpp) value

Comment 9 errata-xmlrpc 2017-08-02 00:55:56 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 10.0 (Newton)
  Red Hat OpenStack Platform 11.0 (Ocata)
  Red Hat Enterprise Linux OpenStack Platform 6.0 (Juno) for RHEL 7
  Red Hat Enterprise Linux OpenStack Platform 7.0 (Kilo) for RHEL 7
  Red Hat OpenStack Platform 8.0 (Liberty)
  Red Hat OpenStack Platform 9.0 (Mitaka)

Via RHSA-2017:2408 https://access.redhat.com/errata/RHSA-2017:2408

Comment 10 errata-xmlrpc 2017-08-02 04:44:32 UTC
This issue has been addressed in the following products:

  RHEV 4.X RHEV-H and Agents for RHEL-7

Via RHSA-2017:2392 https://access.redhat.com/errata/RHSA-2017:2392