Bug 1427833 (CVE-2017-6414)

Summary: CVE-2017-6414 Qemu: libcacard: host memory leakage while creating new APDU
Product: [Other] Security Response Reporter: Prasad Pandit <ppandit>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: ailan, apevec, areis, ayoung, chrisw, cvsbot-xmlrpc, drjones, fidencio, hdegoede, imammedo, jen, jjoyce, jschluet, kbasil, knoel, lhh, lpeer, marcandre.lureau, markmc, m.a.young, mkenneth, mrezanin, mst, pbonzini, rbryant, 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:08:14 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: 1427834, 1476037, 1476049, 1476068, 1476069, 1476072, 1476074, 1476077    
Bug Blocks: 1425098, 1476084    

Description Prasad Pandit 2017-03-01 11:05:34 UTC
The CAC(Common Access Card) library, used by Quick Emulator(Qemu) to implement
smartcard support, is vulnerable to a host memory leakage issue. It could occur
while allocating a new APDU object using guest supplied raw byte stream in
'vcard_apdu_new'.

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

Upstream patch:
---------------
  -> https://cgit.freedesktop.org/spice/libcacard/commit/?id=9113dc6a303604a2d9812ac70c17d076ef11886c

Reference:
----------
  -> http://www.openwall.com/lists/oss-security/2017/03/01/11

Comment 1 Prasad Pandit 2017-03-01 11:05:39 UTC
Acknowledgments:

Name: Li Qiang (360.cn Inc.)

Comment 2 Prasad Pandit 2017-03-01 11:06:37 UTC
Created libcacard tracking bugs for this issue:

Affects: fedora-all [bug 1427834]

Comment 3 Garth Mollett 2017-07-27 22:16:07 UTC
Created libcacard tracking bugs for this issue:

Affects: fedora-all [bug 1476037]

Comment 5 errata-xmlrpc 2017-08-02 01:00:10 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 10.0 (Newton)
  Red Hat OpenStack Platform 11.0 (Ocata)
  Red Hat Enterprise Linux OpenStack Platform 6.0 (Juno) for RHEL 7
  Red Hat Enterprise Linux OpenStack Platform 7.0 (Kilo) for RHEL 7
  Red Hat OpenStack Platform 8.0 (Liberty)
  Red Hat OpenStack Platform 9.0 (Mitaka)

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