CVE details
CVE-2018-12617
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.
Affected ports (1)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| emulators/qemu-cheri | qemu-cheri | 0.d20260108 | unaddressed | brooks@FreeBSD.org |
Template for a VuXML entry
Range taken from the CVE record, check it before committing. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>FIXME -- FIXME</topic>
<affects>
<package>
<name>qemu-cheri</name>
<range><lt>FIXME</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>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.</p>
</body>
</description>
<references>
<cvename>CVE-2018-12617</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2018-12617</url>
</references>
<dates>
<discovery>2018-06-21</discovery>
<entry>2026-10-25</entry>
</dates>
</vuln>