cbcvebase.
CVE-2018-16872
published 2018-12-13

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…

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
VendorProductVersion rangeFixed in
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
debiandebian_linux
debiandebian_linux
debianqemu< qemu 1:3.1+dfsg-2 (bookworm)qemu 1:3.1+dfsg-2 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
opensuseleap
qemuqemu<= 3.1.0
qemuqemu>= 0 < 1:3.1+dfsg-21:3.1+dfsg-2
qemuqemu>= 0 < 1:3.1+dfsg-21:3.1+dfsg-2
qemuqemu>= 0 < 1:3.1+dfsg-21:3.1+dfsg-2
qemuqemu>= 0 < 1:3.1+dfsg-21:3.1+dfsg-2
qemuqemu>= 0 < 2.0.0+dfsg-2ubuntu1.452.0.0+dfsg-2ubuntu1.45
qemuqemu>= 0 < 1:2.5+dfsg-5ubuntu10.361:2.5+dfsg-5ubuntu10.36
qemuqemu>= 0 < 1:2.11+dfsg-1ubuntu7.121: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.