Bug 1402276 (CVE-2016-9913, CVE-2016-9914, CVE-2016-9915, CVE-2016-9916)

Summary: CVE-2016-9913 CVE-2016-9914 CVE-2016-9915 CVE-2016-9916 Qemu: 9pfs: memory leakage via proxy/handle callbacks
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:36 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: 1402277, 1402278    
Bug Blocks: 1395985    

Description Prasad Pandit 2016-12-07 07:34:59 UTC
Quick Emulator(Qemu) built with the VirtFS, host directory sharing via Plan 9
File System(9pfs) support, is vulnerable to memory leakage issue. It could
occur via its '9p-handle' or '9p-proxy' backend drivers as they do not free
their respective allocated data objects.

A privileged user inside guest could use this flaw to leak host memory, thus
affecting other services on the host and/or potentially crash the Qemu process
on the host.

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

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

Comment 1 Prasad Pandit 2016-12-07 07:36:39 UTC
Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1402278]

Comment 2 Prasad Pandit 2016-12-07 07:37:03 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1402277]

Comment 4 Cole Robinson 2017-01-16 18:35:38 UTC
commit 4774718e5c194026ba5ee7a28d9be49be3080e42
Author: Li Qiang <liq3ea>
Date:   Wed Nov 23 13:53:34 2016 +0100

    9pfs: adjust the order of resource cleanup in device unrealize

commit 702dbcc274e2ca43be20ba64c758c0ca57dab91d
Author: Li Qiang <liq3ea>
Date:   Wed Nov 23 13:53:34 2016 +0100

    9pfs: add cleanup operation in FileOperations

commit 971f406b77a6eb84e0ad27dcc416b663765aee30
Author: Li Qiang <liq3ea>
Date:   Wed Nov 23 13:53:34 2016 +0100

    9pfs: add cleanup operation for handle backend driver

commit 898ae90a44551d25b8e956fd87372d303c82fe68
Author: Li Qiang <liq3ea>
Date:   Wed Nov 23 13:53:34 2016 +0100

    9pfs: add cleanup operation for proxy backend driver


And this fixes a bug in one of those commits:

commit f2b58c43758efc61e2a49b899f5e58848489d0dc
Author: Greg Kurz <groug>
Date:   Tue Jan 3 17:28:44 2017 +0100

    9pfs: fix crash when fsdev is missing