Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1609015 - (CVE-2018-18438) CVE-2018-18438 Qemu: Integer overflow in ccid_card_vscard_read() allows memory corruption
CVE-2018-18438 Qemu: Integer overflow in ccid_card_vscard_read() allows memor...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20181011,repor...
: Security
Depends On: 1640005 1640006 1640007 1640008 1640009 1640010 1640011 1640012 1640013 1640019 1640020
Blocks: 1613564
  Show dependency treegraph
 
Reported: 2018-07-26 14:06 EDT by Laura Pardo
Modified: 2018-11-01 17:41 EDT (History)
37 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Laura Pardo 2018-07-26 14:06:38 EDT
An integer overflow issue was found in the CCID Passthru card device emulation, while reading card data in ccid_card_vscard_read() function. The ccid_card_vscard_read() function accepts a signed integer 'size' argument, which is subsequently used as unsigned size_t value in memcpy(), copying large amounts of memory.

A 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/2018-10/msg02396.html

Reference:
----------
  -> https://www.openwall.com/lists/oss-security/2018/10/17/3
Comment 1 Laura Pardo 2018-07-26 14:06:53 EDT
Acknowledgments:

Name: Arash Tohidi
Comment 2 Arash Tohidi 2018-07-26 14:42:41 EDT
The overflowed argument in ccid_card_vscard_read() is "int size". Another memory corruption may happen if a specially crafted buffer is fed to buf which will be passed to  ccid_card_vscard_handle_message() and eventually will result in another memory overwrite by calling memcpy().
Comment 4 Prasad J Pandit 2018-10-17 02:45:41 EDT
External References:

https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg02396.html
Comment 6 Prasad J Pandit 2018-10-17 03:19:55 EDT
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1640019]

Note You need to log in before you can comment on or make changes to this bug.