CVE-2018-16872
A flaw was found in qemu Media Transfer Protocol (MTP). The code opening files in usb_mtp_get_object and usb_mtp_get_partial_object and directories in usb_mtp_object_readdir doesn't consider that the underlying filesystem may have changed since the time lstat(2) was called in usb_mtp_object_alloc, a classical TOCTTOU problem. An attacker with write access to the host filesystem shared with a guest can use this property to navigate the host filesystem in the context of the QEMU process and read any file the QEMU process has access to. Access to the filesystem may be local or via a network share protocol such as CIFS.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | qemu | Fixed | 1:2.11+dfsg-1ubuntu7.12 | UBUNTU-CVE-2018-16872 |
| Ubuntu 16.04 | qemu | Not affected vulnerable_code_not_present | ||
| Debian 14 | qemu | Fixed | 1:3.1+dfsg-2 | DEBIAN-CVE-2018-16872 |
| Debian 13 | qemu | Fixed | 1:3.1+dfsg-2 | DEBIAN-CVE-2018-16872 |
| Debian 12 | qemu | Fixed | 1:3.1+dfsg-2 | DEBIAN-CVE-2018-16872 |
| Red Hat Enterprise Linux 8 | qemu-guest-agent | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-img | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-block-curl | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-block-gluster | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-block-iscsi | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-block-rbd | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-block-ssh | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-common | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-core | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-hw-usbredir | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-ui-opengl | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-ui-spice | Not affected | ||
| Red Hat Enterprise Linux 7 | libcacard | Not affected | ||
| Red Hat Enterprise Linux 7 | libcacard-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libcacard-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-guest-agent | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-img | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-img-ma | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-kvm | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-kvm-common | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-kvm-common-ma | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-kvm-ma | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-kvm-rhev | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-kvm-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-kvm-tools-ma | Not affected | ||
| Red Hat Enterprise Linux 6 | qemu-guest-agent | Not affected | ||
| Red Hat Enterprise Linux 6 | qemu-guest-agent-win32 | Not affected | ||
| Red Hat Enterprise Linux 6 | qemu-img | Not affected | ||
| Red Hat Enterprise Linux 6 | qemu-kvm | Not affected | ||
| Red Hat Enterprise Linux 6 | qemu-kvm-tools | Not affected | ||
| Red Hat Enterprise Linux 5 | kvm | Not affected | ||
| Red Hat Enterprise Linux 5 | xen | Not affected |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- [UNKNOWN] QEMU:: affected: n/a
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://usn.ubuntu.com/3923-1/ (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00042.html (vendor-advisory)
- https://www.debian.org/security/2019/dsa-4454 (vendor-advisory)
References
- https://lists.debian.org/debian-lts-announce/2019/02/msg00041.html
- http://www.securityfocus.com/bid/106212
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CGCFIFSIWUREEQQOZDZFBYKWZHXCWBZN/
- https://usn.ubuntu.com/3923-1/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KJMTVGDLA654HNCDGLCUEIP36SNJEKK7/
- http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00042.html
- https://www.debian.org/security/2019/dsa-4454
- https://seclists.org/bugtraq/2019/May/76
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16872
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.