Red Hat Bugzilla – Bug 1609015
CVE-2018-18438 Qemu: Integer overflow in ccid_card_vscard_read() allows memory corruption
Last modified: 2018-11-01 17:41:46 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
Acknowledgments: Name: Arash Tohidi
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().
External References: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg02396.html
Created qemu tracking bugs for this issue: Affects: fedora-all [bug 1640019]