Public exploit available
Public proof-of-concept or exploit code exists (ExploitDB / Metasploit / Nuclei).

CVE-2018-12617Integer Overflow or Wraparound in Qemu

Severity
7.5HIGHNVD
OSV6.5
EPSS
11.7%
top 6.28%
CISA KEV
Not in KEV
Exploit
PoC available
Public exploit / PoC exists
Timeline
PublishedJun 21
Latest updateMay 13

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6

Affected Packages4 packages

debiandebian/qemu< qemu 1:3.1+dfsg-1 (bookworm)
Debianqemu/qemu< 1:3.1+dfsg-1+3
Ubuntuqemu/qemu< 2.0.0+dfsg-2ubuntu1.44+2
NVDqemu/qemu2.12.50

Also affects: Debian Linux 8.0, 9.0, Ubuntu Linux 14.04, 16.04, 18.04, 18.10

Patches

🔴Vulnerability Details

3
GHSA
GHSA-prpr-q2gp-hgw2: qmp_guest_file_read in qga/commands-posix2022-05-13
OSV
qemu vulnerabilities2018-11-26
OSV
CVE-2018-12617: qmp_guest_file_read in qga/commands-posix2018-06-21

💥Exploits & PoCs

1
Exploit-DB
QEMU Guest Agent 2.12.50 - Denial of Service2018-06-22

📋Vendor Advisories

3
Ubuntu
QEMU vulnerabilities2018-11-26
Red Hat
Qemu: qemu-guest-agent: Integer overflow causes segmentation fault in qmp_guest_file_read()2018-06-22
Debian
CVE-2018-12617: qemu - qmp_guest_file_read in qga/commands-posix.c and qga/commands-win32.c in qemu-ga ...2018

💬Community

2
Bugzilla
CVE-2018-12617 Qemu: qemu-guest-agent: Integer overflow causes segmentation fault in qmp_guest_file_read()2018-06-22
Bugzilla
CVE-2018-12617 qemu: qemu-guest-agent: Integer overflow causes segmentation fault in qmp_guest_file_read() [fedora-all]2018-06-22