CVE-2018-12617

HIGH

QEMU Guest Agent <2.12.50 - Memory Corruption

Title source: llm
STIX 2.1

Description

qmp_guest_file_read in qga/commands-posix.c and qga/commands-win32.c in qemu-ga (aka QEMU Guest Agent) in QEMU 2.12.50 has an integer overflow causing a g_malloc0() call to trigger a segmentation fault when trying to allocate a large memory chunk. The vulnerability can be exploited by sending a crafted QMP command (including guest-file-read with a large count value) to the agent via the listening socket.

Exploits (1)

exploitdb WORKING POC
by Fakhri Zulkifli · textdoslinux
https://www.exploit-db.com/exploits/44925

References (8)

Core 8
Core References
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2019/02/msg00041.html
Exploit, Third Party Advisory x_refsource_misc
https://gist.github.com/fakhrizulkifli/c7740d28efa07dafee66d4da5d857ef6
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3826-1/
Mailing List, Patch, Third Party Advisory x_refsource_misc
https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg03385.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/104531
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/44925/
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2019/dsa-4454
Mailing List, Third Party Advisory mailing-list x_refsource_bugtraq
https://seclists.org/bugtraq/2019/May/76

Scores

CVSS v3 7.5
EPSS 0.1174
EPSS Percentile 93.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-190
Status published
Products (7)
canonical/ubuntu_linux 14.04
canonical/ubuntu_linux 16.04
canonical/ubuntu_linux 18.04
canonical/ubuntu_linux 18.10
debian/debian_linux 8.0
debian/debian_linux 9.0
qemu/qemu < 2.12.50
Published Jun 21, 2018
Tracked Since Feb 18, 2026