| Name | CVE-2018-12617 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-1694-1, DSA-4454-1 |
| Debian Bugs | 902725 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| qemu (PTS) | bullseye | 1:5.2+dfsg-11+deb11u3 | fixed |
| bullseye (security) | 1:5.2+dfsg-11+deb11u5 | fixed | |
| bookworm | 1:7.2+dfsg-7+deb12u16 | fixed | |
| bookworm (security) | 1:7.2+dfsg-7+deb12u15 | fixed | |
| trixie | 1:10.0.3+ds-0+deb13u1 | fixed | |
| trixie (security) | 1:10.0.2+ds-2+deb13u1 | fixed | |
| forky, sid | 1:10.1.2+ds-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| qemu | source | jessie | 1:2.1+dfsg-12+deb8u10 | DLA-1694-1 | ||
| qemu | source | stretch | 1:2.8+dfsg-6+deb9u6 | DSA-4454-1 | ||
| qemu | source | (unstable) | 1:3.1+dfsg-1 | low | 902725 |
https://gist.github.com/fakhrizulkifli/c7740d28efa07dafee66d4da5d857ef6
https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg03385.html
Fixed by: https://git.qemu.org/?p=qemu.git;a=commit;h=141b197408ab398c4f474ac1a728ab316e921f2b