Live threats

All CVEs / Qemu

CVE-2018-16872Qemu

Medium 5.3

Priority
32
CVSS 3.1
5.3
EPSS
1.1%
probability of exploitation in 30 days · percentile 66
Auth required
Yes
Published
Dec 13, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-367
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Qemu.

Affected products (CPE)

VendorProductVersions
qemuqemu≤ 3.1.0
debiandebian_linux8.0
debiandebian_linux9.0
fedoraprojectfedora29
fedoraprojectfedora30
canonicalubuntu_linux14.04
canonicalubuntu_linux16.04
canonicalubuntu_linux18.04
canonicalubuntu_linux18.10
opensuseleap42.3

Official sources

References

Links published by the sources. Open them with care.