Bug 1402284 (CVE-2016-9912)

Summary: CVE-2016-9912 Qemu: display: virtio-gpu: memory leakage when destroying gpu resource
Product: [Other] Security Response Reporter: Prasad Pandit <ppandit>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG 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 03:03:38 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: 1402285    
Bug Blocks: 1395985    

Description Prasad Pandit 2016-12-07 07:44:01 UTC
Quick Emulator(Qemu) built with the Virtio GPU Device emulator support is
vulnerable to a memory leakage issue. It could occur while destroying gpu
resource object in 'virtio_gpu_resource_destroy'.

A guest user/process could use this flaw to leak host memory bytes, resulting
in DoS for a host.

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

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

Comment 1 Prasad Pandit 2016-12-07 07:45:18 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1402285]

Comment 3 Cole Robinson 2017-01-16 18:49:15 UTC
commit b8e23926c568f2e963af39028b71c472e3023793
Author: Li Qiang <liq3ea>
Date:   Mon Nov 28 21:29:25 2016 -0500

    virtio-gpu: call cleanup mapping function in resource destroy