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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | qemu | 1:3.1+dfsg-1 | — |
| Debian 13 | qemu | 1:3.1+dfsg-1 | — |
| Debian 12 | qemu | 1:3.1+dfsg-1 | — |
| Debian 9 | qemu | 1:2.8+dfsg-6+deb9u6 | DSA-4454-1 |
| Debian 8 | qemu | 1:2.1+dfsg-12+deb8u10 | DLA-1694-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | qemu | 1:2.11+dfsg-1ubuntu7.8 | USN-3826-1 |
| Ubuntu 16.04 LTS | qemu | 1:2.5+dfsg-5ubuntu10.33 | USN-3826-1 |
| Ubuntu 14.04 LTS | qemu | 2.0.0+dfsg-2ubuntu1.44 | USN-3826-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 | qemu | 2.11.2-9.9.1 | SUSE-SU-2018:2679-1 |
| SLES 12 SP3 | qemu | 2.9.1-6.19.11 | SUSE-SU-2018:3555-1 |
| SLES 12 SP2 | qemu | 2.6.2-41.43.3 | SUSE-SU-2018:2973-2, SUSE-SU-2018:2973-1 |
| SLES 12 SP1 | qemu | 2.3.1-33.12.1 | SUSE-SU-2018:2565-1 |
| SLES 12 SP1 | xen | 4.5.5_24-22.52.3 | SUSE-SU-2018:2069-1 |
| SLES 12 | qemu | 2.0.2-48.43.3 | SUSE-SU-2018:2556-1 |
| SLES 12 | xen | 4.4.4_34-22.71.2 | SUSE-SU-2018:2056-1 |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 11 SP4 | kvm | 1.4.2-60.15.2 | SUSE-SU-2018:2650-1 |
| SLES 11 SP4 | xen | 4.4.4_34-61.32.1 | SUSE-SU-2018:2037-1 |
| SLES 11 SP3 | kvm | 1.4.2-53.23.2 | SUSE-SU-2018:2615-1 |
| SLES 11 SP3 | xen | 4.2.5_21-45.25.1 | SUSE-SU-2018:2528-1 |
| SLES for SAP 12 SP3 | qemu | 2.9.1-6.19.11 | SUSE-SU-2018:3555-1 |
| SLES for SAP 12 SP2 | qemu | 2.6.2-41.43.3 | SUSE-SU-2018:2973-1 |
| SLES for SAP 12 SP1 | qemu | 2.3.1-33.12.1 | SUSE-SU-2018:2565-1 |
| SLES for SAP 12 SP1 | xen | 4.5.5_24-22.52.3 | SUSE-SU-2018:2069-1 |
| SLES for SAP 11 SP4 | kvm | 1.4.2-60.15.2 | SUSE-SU-2018:2650-1 |
| SLES for SAP 11 SP4 | xen | 4.4.4_34-61.32.1 | SUSE-SU-2018:2037-1 |
| SUSE OpenStack Cloud 7 | qemu | 2.6.2-41.43.3 | SUSE-SU-2018:2973-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | kvm | 1.4.2-53.23.2 | SUSE-SU-2018:2615-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | xen | 4.2.5_21-45.25.1 | SUSE-SU-2018:2528-1 |
| SUSE Enterprise Storage 4 | qemu | 2.6.2-41.43.3 | SUSE-SU-2018:2973-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | ivshmem-tools +2 | 15:3.0.0-1.el7 | ELSA-2019-4585, ELSA-2018-4285 |
| Oracle Linux 7 | qemu +9 | 12:2.9.0-17.el7 | ELSA-2019-4585, ELSA-2018-4289, ELSA-2018-4285 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- QEMU Guest Agent 2.12.50 - Denial of Service EDB-44925 · dos · Jun 22, 2018
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 20
- USN-3826-1 qemu vulnerabilities Ubuntu Security Notices (USN) · May 4, 2026
- DSA-4454-1 qemu - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1694-1 qemu - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2018:2973-1 Security update for qemu SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2973-2 Security update for qemu SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2556-1 Security update for qemu SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2650-1 Security update for kvm SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:3555-1 Security update for qemu SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2528-1 Security update for xen SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2565-1 Security update for qemu SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2615-1 Security update for kvm SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2056-1 Security update for xen SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2679-1 Security update for qemu SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2037-1 Security update for xen SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2069-1 Security update for xen SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-2002 QEMU: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Sep 2, 2024
- ELSA-2019-4585 Important: qemu security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Mar 15, 2019
- ELSA-2018-4289 Important: qemu security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Nov 28, 2018
- ELSA-2018-4285 Important: qemu security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Nov 20, 2018
- ELSA-2018-4262 Important: qemu security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Oct 29, 2018
References
- [debian-lts-announce] 20190228 [SECURITY] [DLA 1694-1] qemu security update mailing-list
- https://gist.github.com/fakhrizulkifli/c7740d28efa07dafee66d4da5d857ef6
- USN-3826-1 vendor-advisory
- https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg03385.html
- 104531 vdb-entry
- 44925 exploit
- DSA-4454 vendor-advisory
- 20190531 [SECURITY] [DSA 4454-1] qemu security update mailing-list