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.
The MITRE CVE dictionary describes this issue as:
Find out more about CVE-2018-12617 from the MITRE CVE dictionary dictionary and NIST NVD.
NOTE: The following CVSS v3 metrics and score provided are preliminary and subject to review.
CVSS3 Base Score | 4.7 |
---|---|
CVSS3 Base Metrics | CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Attack Vector | Local |
Attack Complexity | High |
Privileges Required | Low |
User Interaction | None |
Scope | Unchanged |
Confidentiality | None |
Integrity Impact | None |
Availability Impact | High |
Platform | Package | State |
---|---|---|
Red Hat OpenStack Platform 9.0 | qemu-kvm-rhev | Not affected |
Red Hat OpenStack Platform 8.0 (Liberty) | qemu-kvm-rhev | Not affected |
Red Hat OpenStack Platform 13.0 (Queens) | qemu-kvm-rhev | Not affected |
Red Hat OpenStack Platform 12.0 | qemu-kvm-rhev | Not affected |
Red Hat OpenStack Platform 10 | qemu-kvm-rhev | Not affected |
Red Hat Enterprise Linux OpenStack Platform 7.0 (Kilo) for RHEL 7 | qemu-kvm-rhev | Not affected |
Red Hat Enterprise Linux 7 | qemu-kvm | Not affected |
Red Hat Enterprise Linux 7 | qemu-kvm-rhev | Not affected |
Red Hat Enterprise Linux 7 | virtio-win | Affected |
Red Hat Enterprise Linux 7 | qemu-kvm-ma | Not affected |
Red Hat Enterprise Linux 7 | qemu-guest-agent | Affected |
Red Hat Enterprise Linux 6 | qemu-kvm | Affected |
Red Hat Enterprise Linux 6 | virtio-win | Affected |