Bug 1419699 (CVE-2017-5898)

Summary: CVE-2017-5898 Qemu: usb: integer overflow in emulated_apdu_from_guest
Product: [Other] Security Response Reporter: Prasad Pandit <ppandit>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ailan, amit, apevec, areis, ayoung, berrange, cfergeau, chayang, chrisw, coli, cvsbot-xmlrpc, drjones, dwmw2, hachen, imammedo, itamar, jen, jjoyce, jschluet, juzhang, kbasil, knoel, kraxel, lhh, lpeer, markmc, m.a.young, mkenneth, mrezanin, mst, pbonzini, ppandit, qzhang, rbryant, rjones, rkrcmar, sclewis, srevivo, tdecacqu, virt-maint, virt-maint, vkuznets, xen-maint, xuma
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: qemu 2.9 Doc Type: Bug Fix
Doc Text:
An integer overflow flaw was found in Quick Emulator (QEMU) in the CCID Card device support. The flaw could occur while passing messages via command/response packets to and from the host. A privileged user inside a guest could use this flaw to crash the QEMU process.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:07:07 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: 1419700, 1419818, 1419819    
Bug Blocks: 1400913    

Description Prasad Pandit 2017-02-06 19:28:41 UTC
Quick Emulator(Qemu) built with the CCID Card device emulator support
is vulnerable to an integer overflow flaw. It could occur while passing
message via command/responses packets to and from the host.

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

Upstream patch:
---------------
  -> https://lists.nongnu.org/archive/html/qemu-devel/2017-02/msg01075.html

Reference:
----------
  -> http://www.openwall.com/lists/oss-security/2017/02/07/3

Comment 1 Prasad Pandit 2017-02-06 19:29:17 UTC
Acknowledgments:

Name: Li Qiang (360.cn Inc.)

Comment 2 Prasad Pandit 2017-02-06 19:30:23 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1419700]

Comment 14 errata-xmlrpc 2017-08-01 17:52:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:1856 https://access.redhat.com/errata/RHSA-2017:1856

Comment 15 errata-xmlrpc 2017-08-02 04:48:45 UTC
This issue has been addressed in the following products:

  RHEV 4.X RHEV-H and Agents for RHEL-7

Via RHSA-2017:2392 https://access.redhat.com/errata/RHSA-2017:2392