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)

EPSS: 0.011 (61.6th percentile) — read the EPSS interpretation.

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.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2018-16872?
CVE-2018-16872 is a medium-severity vulnerability in Qemu, classified under Time-of-check Time-of-use (TOCTOU) Race Condition. CVSS score: 5.3/10. Published 2018-12-13.
How severe is CVE-2018-16872?
Medium severity. CVSS v3 base score is 5.3 out of 10.