Bug 1382666 (CVE-2016-7994)

Summary: CVE-2016-7994 Qemu: virtio-gpu: memory leak in virtio_gpu_resource_create_2d
Product: [Other] Security Response Reporter: Prasad Pandit <ppandit>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: ailan, amit.shah, apevec, areis, ayoung, berrange, cfergeau, chrisw, crobinso, cvsbot-xmlrpc, drjones, dwmw2, imammedo, itamar, jen, jschluet, kbasil, knoel, lhh, lpeer, markmc, m.a.young, mkenneth, mrezanin, mst, pbonzini, 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:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 02:59:48 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: 1382667    
Bug Blocks: 1382469    

Description Prasad Pandit 2016-10-07 10:56:14 UTC
Quick Emulator built with the Virtio GPU Device support is vulnerable to a
memory leakage issue. It could occur while processing virtio GPU command
VIRTIO_GPU_CMD_RESOURCE_CREATE_2D.

A privileged user/process inside guest could use this flaw to exhaust host
memory resulting in DoS.

Upstream fix:
-------------
  -> https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg04129.html

Comment 1 Prasad Pandit 2016-10-07 10:56:48 UTC
Acknowledgments:

Name: Li Qiang (360.cn Inc.)

Comment 2 Prasad Pandit 2016-10-07 10:57:51 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1382667]

Comment 3 Cole Robinson 2017-01-16 18:16:36 UTC
commit cb3a0522b694cc5bb6424497b3f828ccd28fd1dd
Author: Li Qiang <liqiang6-s>
Date:   Sun Sep 18 19:07:11 2016 -0700

    virtio-gpu: fix memory leak in virtio_gpu_resource_create_2d