NixOS / security

MIT License
30 stars 12 forks source link

Roundup: [oss-security] CVE-2017-6414 Qemu: libcacard: host memory leakage while creating new APDU #110

Closed grahamc closed 7 years ago

grahamc commented 7 years ago

Here is a report from the oss-security mailing list for Vulnerability Roundup 27.

Skip to First Email

Instructions:

Identification

Identify if we have the software, in 16.09, 17.03, and unstable. Then determine if we are vulnerable, and make a comment with your findings. It can also be helpful to specify if you think there is a patch, or if it can be fixed via a general update.

Example:

unstable: we are not vulnerable (link to the package)
17.03: we are vulnerable (link to the package)
16.09: we don't have it packaged

IMPORTANT: If you believe there are possibly related issues, bring them up on the parent issue!

Patching

Start by commenting on this issue saying you're working on a patch. This way, we don't duplicate work.

If you open a pull request, tag this issue and the master issue for the roundup.

If you commit the patch directly to a branch, please leave a comment on this issue with the branch and the commit hash, example:

fixed:

release-16.09: abc123

Skip to First Email

Upon Completion ...

Info

Triage Indicator:

-needs-triage +roundup27 thread:0000000000003f22

Should the search term be changed from qemu? Suggest a new package search by commenting:

-suggested:qemu +suggested:correctPackageName thread:0000000000003f22

Known CVEs: CVE-2017-6414


Skip to End

Wed, 1 Mar 2017 23:38:14 +0530 (IST) P J P , alpine.LFD.2.20.1703012335480.15645@wniryva
   Hello,

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:
----------
   -> https://bugzilla.redhat.com/show_bug.cgi?id=1427833

This issue was reported by Li Qiang of 360.cn Inc.

'CVE-2017-6414' assigned via -> http://cveform.mitre.org/

Thank you.
--
Prasad J Pandit / Red Hat Product Security Team
47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F

Skip to End


fpletz commented 7 years ago

Our version of qemu is recent enough to contain the fix.