Bug 1373462 (CVE-2016-7155)

Summary: CVE-2016-7155 Qemu: scsi: pvscsi: OOB read and infinite loop while setting descriptor rings
Product: [Other] Security Response Reporter: Prasad Pandit <ppandit>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
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:58:15 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: 1373463    
Bug Blocks: 1367956    

Description Prasad Pandit 2016-09-06 10:56:39 UTC
Quick Emulator(Qemu) built with the VMWARE PVSCSI paravirtual SCSI bus
emulation support is vulnerable to an OOB access and/or infinite loop issue.
It could occur while processing SCSI commands 'PVSCSI_CMD_SETUP_RINGS'.

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

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

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

Comment 1 Prasad Pandit 2016-09-06 10:57:12 UTC
Acknowledgments:

Name: Li Qiang (360.cn Inc.), Victor V (360.cn Inc.)

Comment 2 Prasad Pandit 2016-09-06 10:58:19 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1373463]

Comment 3 Cole Robinson 2016-10-15 23:21:07 UTC
commit 7f61f4690dd153be98900a2a508b88989e692753
Author: Prasad J Pandit <pjp>
Date:   Wed Aug 31 12:19:29 2016 +0530

    vmw_pvscsi: check page count while initialising descriptor rings