CVEfocus › CVE database › CVE-2018-12617

CVE-2018-12617

CVSS 7.5 HighEPSS 24.6% (higher than 98% of CVEs)Published 2018-06-21Updated 2024-08-05Assigner: mitre

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.

What to do

Likely to be exploited: EPSS gives a 25% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Red Hat has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
7Fix pending
1Will not fix
28Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04qemuFixed1:2.11+dfsg-1ubuntu7.8UBUNTU-CVE-2018-12617
Ubuntu 16.04qemuFixed1:2.5+dfsg-5ubuntu10.33UBUNTU-CVE-2018-12617
Ubuntu 14.04qemuFixed2.0.0+dfsg-2ubuntu1.44UBUNTU-CVE-2018-12617
Debian 14qemuFixed1:3.1+dfsg-1DEBIAN-CVE-2018-12617
Debian 13qemuFixed1:3.1+dfsg-1DEBIAN-CVE-2018-12617
Debian 12qemuFixed1:3.1+dfsg-1DEBIAN-CVE-2018-12617
Red Hat Enterprise Linux 8qemu-guest-agentNot affected
Red Hat Enterprise Linux 8qemu-imgNot affected
Red Hat Enterprise Linux 8qemu-kvmNot affected
Red Hat Enterprise Linux 8qemu-kvm-block-curlNot affected
Red Hat Enterprise Linux 8qemu-kvm-block-glusterNot affected
Red Hat Enterprise Linux 8qemu-kvm-block-iscsiNot affected
Red Hat Enterprise Linux 8qemu-kvm-block-rbdNot affected
Red Hat Enterprise Linux 8qemu-kvm-block-sshNot affected
Red Hat Enterprise Linux 8qemu-kvm-commonNot affected
Red Hat Enterprise Linux 8qemu-kvm-coreNot affected
Red Hat Enterprise Linux 8qemu-kvm-docsNot affected
Red Hat Enterprise Linux 8qemu-kvm-hw-usbredirNot affected
Red Hat Enterprise Linux 8qemu-kvm-testsNot affected
Red Hat Enterprise Linux 8qemu-kvm-ui-openglNot affected
Red Hat Enterprise Linux 8qemu-kvm-ui-spiceNot affected
Red Hat Enterprise Linux 8virtio-winNot affected
Red Hat Enterprise Linux 7libcacardNot affected
Red Hat Enterprise Linux 7libcacard-develNot affected
Red Hat Enterprise Linux 7libcacard-toolsNot affected
Red Hat Enterprise Linux 7qemu-guest-agentFix pending
Fix deferred
Red Hat Enterprise Linux 7qemu-imgNot affected
Red Hat Enterprise Linux 7qemu-img-maNot affected
Red Hat Enterprise Linux 7qemu-kvmNot affected
Red Hat Enterprise Linux 7qemu-kvm-commonNot affected
Red Hat Enterprise Linux 7qemu-kvm-common-maNot affected
Red Hat Enterprise Linux 7qemu-kvm-maNot affected
Red Hat Enterprise Linux 7qemu-kvm-rhevNot affected
Red Hat Enterprise Linux 7qemu-kvm-toolsNot affected
Red Hat Enterprise Linux 7qemu-kvm-tools-maNot affected
Red Hat Enterprise Linux 7virtio-winWill not fix
Will not fix
Red Hat Enterprise Linux 6qemu-guest-agentFix pending
Fix deferred
Red Hat Enterprise Linux 6qemu-guest-agent-win32Fix pending
Fix deferred
Red Hat Enterprise Linux 6qemu-imgFix pending
Fix deferred
Red Hat Enterprise Linux 6qemu-kvmFix pending
Fix deferred
Red Hat Enterprise Linux 6qemu-kvm-toolsFix pending
Fix deferred
Red Hat Enterprise Linux 6virtio-winFix pending
Fix deferred

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.