CVE-2018-16872
published 2018-12-13CVE-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…
PriorityP429medium5.3CVSS 3.1
AVNACHPRLUINSUCHINAN
EPSS
1.07%
61.2th percentile
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.
Affected
18 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | qemu | < qemu 1:3.1+dfsg-2 (bookworm) | qemu 1:3.1+dfsg-2 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| opensuse | leap | — | — |
| qemu | qemu | <= 3.1.0 | — |
| qemu | qemu | >= 0 < 1:3.1+dfsg-2 | 1:3.1+dfsg-2 |
| qemu | qemu | >= 0 < 1:3.1+dfsg-2 | 1:3.1+dfsg-2 |
| qemu | qemu | >= 0 < 1:3.1+dfsg-2 | 1:3.1+dfsg-2 |
| qemu | qemu | >= 0 < 1:3.1+dfsg-2 | 1:3.1+dfsg-2 |
| qemu | qemu | >= 0 < 2.0.0+dfsg-2ubuntu1.45 | 2.0.0+dfsg-2ubuntu1.45 |
| qemu | qemu | >= 0 < 1:2.5+dfsg-5ubuntu10.36 | 1:2.5+dfsg-5ubuntu10.36 |
| qemu | qemu | >= 0 < 1:2.11+dfsg-1ubuntu7.12 | 1:2.11+dfsg-1ubuntu7.12 |
CVSS provenance
nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
nvdv3.05.0MEDIUMCVSS:3.0/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:L
nvdv2.03.5LOWAV:N/AC:M/Au:S/C:P/I:N/A:N
osv7.8HIGH
vendor_ubuntu7.8HIGH
vendor_debian5.3MEDIUM
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-w3c5-x9c8-47hc: A flaw was found in qemu Media Transfer Protocol (MTP)
ghsa_unreviewed·2022-05-13
CVE-2018-16872 [MEDIUM] CWE-367 GHSA-w3c5-x9c8-47hc: A flaw was found in qemu Media Transfer Protocol (MTP)
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.
OSV
qemu vulnerabilities
osv·2019-03-27·CVSS 7.8
CVE-2018-16867 [HIGH] qemu vulnerabilities
qemu vulnerabilities
Michael Hanselmann discovered that QEMU incorrectly handled the Media
Transfer Protocol (MTP). An attacker inside the guest could use this issue
to read or write arbitrary files and cause a denial of service, or possibly
execute arbitrary code. This issue only affected Ubuntu 18.10.
(CVE-2018-16867)
Michael Hanselmann discovered that QEMU incorrectly handled the Media
Transfer Protocol (MTP). An attacker inside the guest could use this issue
to read arbitrary files, contrary to expectations. This issue only affected
Ubuntu 18.04 LTS and Ubuntu 18.10. (CVE-2018-16872)
Zhibin Hu discovered that QEMU incorrectly handled the Plan 9 File System
support. An attacker inside the guest could use this issue to cause QEMU to
crash, resulting in a denial of service. (CVE-2018-1
OSV
CVE-2018-16872: A flaw was found in qemu Media Transfer Protocol (MTP)
osv·2018-12-13·CVSS 5.3
CVE-2018-16872 [MEDIUM] CVE-2018-16872: A flaw was found in qemu Media Transfer Protocol (MTP)
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.
Ubuntu
QEMU vulnerabilities
vendor_ubuntu·2019-03-27·CVSS 7.8
CVE-2018-16867 [HIGH] QEMU vulnerabilities
Title: QEMU vulnerabilities
Summary: Several security issues were fixed in QEMU.
Michael Hanselmann discovered that QEMU incorrectly handled the Media
Transfer Protocol (MTP). An attacker inside the guest could use this issue
to read or write arbitrary files and cause a denial of service, or possibly
execute arbitrary code. This issue only affected Ubuntu 18.10.
(CVE-2018-16867)
Michael Hanselmann discovered that QEMU incorrectly handled the Media
Transfer Protocol (MTP). An attacker inside the guest could use this issue
to read arbitrary files, contrary to expectations. This issue only affected
Ubuntu 18.04 LTS and Ubuntu 18.10. (CVE-2018-16872)
Zhibin Hu discovered that QEMU incorrectly handled the Plan 9 File System
support. An attacker inside the guest could use this issue to cause
Red Hat
QEMU: usb-mtp: path traversal by host filesystem manipulation in Media Transfer Protocol (MTP)
vendor_redhat·2018-12-13·CVSS 5.3
CVE-2018-16872 [MEDIUM] CWE-367 QEMU: usb-mtp: path traversal by host filesystem manipulation in Media Transfer Protocol (MTP)
QEMU: usb-mtp: path traversal by host filesystem manipulation in Media Transfer Protocol (MTP)
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.
A flaw was found in QEMU's Media Transfer Protocol (MTP). The code opening file
Debian
CVE-2018-16872: qemu - A flaw was found in qemu Media Transfer Protocol (MTP). The code opening files i...
vendor_debian·2018·CVSS 5.3
CVE-2018-16872 [MEDIUM] CVE-2018-16872: qemu - A flaw was found in qemu Media Transfer Protocol (MTP). The code opening files i...
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.
Scope: local
bookworm: resolved (fixed in 1:3.1+dfsg-2)
bullseye: resolved (fixed in 1:3.1+dfsg-2)
forky: resolved (fixed in 1:3.1+dfsg-2)
sid: resolved (fixed in 1:3.1+dfsg-2)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-16872 qemu: path traversal by host filesystem manipulation in Media Transfer Protocol (MTP) [fedora-all]
bugzilla·2018-12-13·CVSS 5.3
CVE-2018-16872 [MEDIUM] CVE-2018-16872 qemu: path traversal by host filesystem manipulation in Media Transfer Protocol (MTP) [fedora-all]
CVE-2018-16872 qemu: path traversal by host filesystem manipulation in Media Transfer Protocol (MTP) [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue
Bugzilla
CVE-2018-16872 QEMU: usb-mtp: path traversal by host filesystem manipulation in Media Transfer Protocol (MTP)
bugzilla·2018-12-04·CVSS 5.3
CVE-2018-16872 [MEDIUM] CVE-2018-16872 QEMU: usb-mtp: path traversal by host filesystem manipulation in Media Transfer Protocol (MTP)
CVE-2018-16872 QEMU: usb-mtp: path traversal by host filesystem manipulation in Media Transfer Protocol (MTP)
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.
Upstream patch:
-> https://lists.gnu.org/archive/html/qemu-devel
http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00042.htmlhttp://www.securityfocus.com/bid/106212https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16872https://lists.debian.org/debian-lts-announce/2019/02/msg00041.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CGCFIFSIWUREEQQOZDZFBYKWZHXCWBZN/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KJMTVGDLA654HNCDGLCUEIP36SNJEKK7/https://seclists.org/bugtraq/2019/May/76https://usn.ubuntu.com/3923-1/https://www.debian.org/security/2019/dsa-4454http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00042.htmlhttp://www.securityfocus.com/bid/106212https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16872https://lists.debian.org/debian-lts-announce/2019/02/msg00041.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CGCFIFSIWUREEQQOZDZFBYKWZHXCWBZN/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KJMTVGDLA654HNCDGLCUEIP36SNJEKK7/https://seclists.org/bugtraq/2019/May/76https://usn.ubuntu.com/3923-1/https://www.debian.org/security/2019/dsa-4454
2018-12-13
Published