CVE-2018-16872Qemu
Medium 5.3
Follow: this CVE · Qemu · Qemu We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.1
- 5.3
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 66
- Auth required
- Yes
- Published
- Dec 13, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-367
- Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
What happens
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
- Apply the vendor's security update for Qemu.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| qemu | qemu | ≤ 3.1.0 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
| fedoraproject | fedora | 29 |
| fedoraproject | fedora | 30 |
| canonical | ubuntu_linux | 14.04 |
| canonical | ubuntu_linux | 16.04 |
| canonical | ubuntu_linux | 18.04 |
| canonical | ubuntu_linux | 18.10 |
| opensuse | leap | 42.3 |
Official sources
References
Links published by the sources. Open them with care.
- lists.opensuse.org Mailing List Third Party Advisory
- www.securityfocus.com Third Party Advisory VDB Entry
- bugzilla.redhat.com Issue Tracking Patch Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org Third Party Advisory
- lists.fedoraproject.org Third Party Advisory
- seclists.org Mailing List Third Party Advisory
- usn.ubuntu.com Third Party Advisory
- www.debian.org Third Party Advisory