Vulnerability in Qemu
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.
Vulnerability class: TOCTOU (Time-of-Check to Time-of-Use)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.011, 65.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Qemu
- [Unknown] Qemu:
- Canonical Ubuntu Linux — versions 14.04, 16.04, 18.04
- Debian Linux — versions 8.0, 9.0
- Fedoraproject Fedora — versions 29, 30
- openSUSE Leap — versions 42.3
Weakness classification (CWE)
References
- [debian-lts-announce] 20190228 [SECURITY] [DLA 1694-1] qemu security update (mailing-list, Mailing List, Third Party Advisory)
- www.securityfocus.com/bid/106212 (Third Party Advisory, VDB Entry, vdb-entry)
- FEDORA-2019-88a98ce795 (vendor-advisory, Third Party Advisory)
- USN-3923-1 (vendor-advisory, Third Party Advisory)
- FEDORA-2019-0664c7724d (vendor-advisory, Third Party Advisory)
- openSUSE-SU-2019:1074 (vendor-advisory, Mailing List, Third Party Advisory)
- DSA-4454 (vendor-advisory, Third Party Advisory)
- 20190531 [SECURITY] [DSA 4454-1] qemu security update (mailing-list, Mailing List, Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Patch, Third Party Advisory, Issue Tracking)