Bug 1389686 (CVE-2016-9104)

Summary: CVE-2016-9104 Qemu: 9pfs: integer overflow leading to OOB access
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 03:01:35 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: 1389687, 1389689    
Bug Blocks: 1389508    

Description Prasad Pandit 2016-10-28 09:04:35 UTC
Quick Emulator(Qemu) built with the VirtFS, host directory sharing via Plan 9
File System(9pfs) support, is vulnerable to an integer overflow issue. It
could occur by accessing xattributes values.

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

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

Reference:
----------
  -> http://wiki.qemu.org/Documentation/9psetup

Comment 1 Prasad Pandit 2016-10-28 09:05:10 UTC
Acknowledgments:

Name: Li Qiang (360.cn Inc.)

Comment 2 Prasad Pandit 2016-10-28 09:06:35 UTC
Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1389689]

Comment 3 Prasad Pandit 2016-10-28 09:06:57 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1389687]

Comment 4 Andrej Nemec 2016-10-31 14:48:30 UTC
CVE assignment:

http://seclists.org/oss-sec/2016/q4/280

Comment 5 Cole Robinson 2017-01-16 18:33:20 UTC
commit dd28fbbc2edc0822965d402d927ce646326d6954
Author: Li Qiang <liqiang6-s>
Date:   Tue Nov 1 12:00:40 2016 +0100

    9pfs: add xattrwalk_fid field in V9fsXattr struct

commit 8495f9ad26d398f01e208a53f1a5152483a16084
Author: Li Qiang <liqiang6-s>
Date:   Tue Nov 1 12:00:40 2016 +0100

    9pfs: convert 'len/copied_len' field in V9fsXattr to the type of uint64_t

commit 7e55d65c56a03dcd2c5d7c49d37c5a74b55d4bd6
Author: Li Qiang <liqiang6-s>
Date:   Tue Nov 1 12:00:40 2016 +0100

    9pfs: fix integer overflow issue in xattr read/write