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....
MediumCVSS 5.3
EPSS 1.1%
- Published
- Updated
- Exploit status
- No public exploit known
Description
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 products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/qemu(Debian:12) | < 1:3.1+dfsg-2 | 1:3.1+dfsg-2 |
| debian/qemu(Debian:13) | < 1:3.1+dfsg-2 | 1:3.1+dfsg-2 |
| debian/qemu(Debian:14) | < 1:3.1+dfsg-2 | 1:3.1+dfsg-2 |
| qemu | <= 3.1.0 | No fix listed |
| debian linux | = 8.0 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| fedoraproject fedora | = 29 | No fix listed |
| fedoraproject fedora | = 30 | No fix listed |
| Canonical Ubuntu Linux | = 14.04 | No fix listed |
| Canonical Ubuntu Linux | = 16.04 | No fix listed |
| Canonical Ubuntu Linux | = 18.04 | No fix listed |
| Canonical Ubuntu Linux | = 18.10 | No fix listed |
| openSUSE leap | = 42.3 | No fix listed |
| [UNKNOWN] QEMU: | All versions | No fix listed |
References
- Debian Security Tracker CVE-2018-16872 vendor-advisory
- openSUSE-SU-2019:1074 mailing-list third-party-advisory vendor-advisory
- 106212 third-party-advisory vdb-entry
- bugzilla.redhat.com issue-tracking patch third-party-advisory
- [debian-lts-announce] 20190228 [SECURITY] [DLA 1694-1] qemu security update mailing-list third-party-advisory
- FEDORA-2019-88a98ce795 third-party-advisory vendor-advisory
- FEDORA-2019-0664c7724d third-party-advisory vendor-advisory
- 20190531 [SECURITY] [DSA 4454-1] qemu security update mailing-list third-party-advisory
- USN-3923-1 third-party-advisory vendor-advisory
- DSA-4454 third-party-advisory vendor-advisory
- bugs.debian.org issue-tracking