Bug 1374702 (CVE-2016-7170)

Summary: CVE-2016-7170 Qemu: vmware_vga: OOB stack memory access when processing svga command
Product: [Other] Security Response Reporter: Prasad Pandit <ppandit>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ailan, amaris, amit.shah, aortega, apevec, areis, armbru, ayoung, berrange, cfergeau, chrisw, cvsbot-xmlrpc, drjones, dwmw2, imammedo, itamar, jen, jschluet, kbasil, knoel, lhh, lpeer, markmc, m.a.young, mkenneth, mrezanin, mst, pbonzini, ppandit, rbalakri, rbryant, rjones, rkrcmar, sclewis, srevivo, tdecacqu, virt-maint, virt-maint, vkuznets, xen-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Quick Emulator (QEMU) built with the VMware-SVGA chipset emulation support is vulnerable to an OOB stack memory write issue. It could occur while processing VGA commands in 'vmsvga_fifo_run' routine. A privileged user inside guest could use this flaw to crash the QEMU process resulting in DoS.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-09 09:00:57 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: 1374709, 1398112, 1398113, 1398114, 1398115, 1398117, 1398118, 1398119, 1398120, 1398121, 1398122, 1398123, 1398124    
Bug Blocks: 1329196, 1348571, 1370384    

Description Prasad Pandit 2016-09-09 13:01:55 UTC
Quick Emulator(Qemu) built with the VMware-SVGA "chipset" emulation support
is vulnerable to an OOB stack memory write issue. It could occur while
processing VGA commands in 'vmsvga_fifo_run' routine.

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

Upstream fix:
-------------
  -> git.qemu.org/?p=qemu.git;a=commit;h=167d97a3def77ee2dbf6e908b0ecbfe2103977db

Reference:
----------
  -> http://www.openwall.com/lists/oss-security/2016/09/09/7

Comment 1 Prasad Pandit 2016-09-09 13:02:31 UTC
Acknowledgments:

Name: Qinghao Tang, Li Qiang (360.cn Inc.)

Comment 2 Prasad Pandit 2016-09-09 13:04:16 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1374709]

Comment 12 Prasad Pandit 2017-01-12 18:18:43 UTC
*** Bug 1329193 has been marked as a duplicate of this bug. ***