CVE-2018-16872

Summary

CVECVE-2018-16872
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2018-12-13 21:29:00 UTC
Updated2023-05-16 10:48:00 UTC
DescriptionA 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.

Risk And Classification

Problem Types: CWE-367

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Canonical Ubuntu Linux 14.04 All All All
Operating System Canonical Ubuntu Linux 16.04 All All All
Operating System Canonical Ubuntu Linux 18.04 All All All
Operating System Canonical Ubuntu Linux 18.10 All All All
Operating System Canonical Ubuntu Linux 14.04 All All All
Operating System Canonical Ubuntu Linux 16.04 All All All
Operating System Canonical Ubuntu Linux 18.04 All All All
Operating System Canonical Ubuntu Linux 18.10 All All All
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Fedoraproject Fedora 29 All All All
Operating System Fedoraproject Fedora 30 All All All
Operating System Fedoraproject Fedora 29 All All All
Operating System Fedoraproject Fedora 30 All All All
Operating System Opensuse Leap 42.3 All All All
Operating System Opensuse Leap 42.3 All All All
Application Qemu Qemu All All All All

References

ReferenceSourceLinkTags
1656114 – (CVE-2018-16872) CVE-2018-16872 QEMU: usb-mtp: path traversal by host filesystem manipulation in Media Transfer Protocol (MTP) CONFIRM bugzilla.redhat.com Issue Tracking, Patch, Third Party Advisory
[SECURITY] Fedora 29 Update: qemu-3.0.0-4.fc29 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org Mailing List, Release Notes, Third Party Advisory
[security-announce] openSUSE-SU-2019:1074-1: important: Security update SUSE lists.opensuse.org Mailing List, Third Party Advisory
[SECURITY] Fedora 29 Update: qemu-3.0.0-4.fc29 - package-announce - Fedora Mailing-Lists MISC lists.fedoraproject.org
[SECURITY] Fedora 30 Update: qemu-3.1.0-6.fc30 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org Mailing List, Release Notes, Third Party Advisory
[SECURITY] Fedora 30 Update: qemu-3.1.0-6.fc30 - package-announce - Fedora Mailing-Lists MISC lists.fedoraproject.org
[SECURITY] [DLA 1694-1] qemu security update MLIST lists.debian.org Mailing List, Third Party Advisory
QEMU CVE-2018-16872 Directory Traversal Vulnerability BID www.securityfocus.com Third Party Advisory, VDB Entry
Debian -- Security Information -- DSA-4454-1 qemu DEBIAN www.debian.org Third Party Advisory
USN-3923-1: QEMU vulnerabilities | Ubuntu security notices UBUNTU usn.ubuntu.com Third Party Advisory
Bugtraq: [SECURITY] [DSA 4454-1] qemu security update BUGTRAQ seclists.org Mailing List, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report