cve.bz

CVE-2018-16872

5.3 mediumEPSS 1.1%Fix available

Medium (5.3). EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 66th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-16872 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-16872?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-16872?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-16872 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
qemu:qemuthrough 3.1.0
debian:debian_linux8.0
debian:debian_linux9.0
fedoraproject:fedora29
fedoraproject:fedora30
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10
opensuse:leap42.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8qemu1:2.1+dfsg-12+deb8u10DLA-1694-1
Debian9qemu1:2.8+dfsg-6+deb9u6DSA-4454-1
Debian12, 13, 14qemu1:3.1+dfsg-2DEBIAN-CVE-2018-16872
Ubuntu14.04:LTSqemu2.0.0+dfsg-2ubuntu1.45USN-3923-1
Ubuntu16.04:LTSqemu1:2.5+dfsg-5ubuntu10.36USN-3923-1
Ubuntu18.04:LTSqemu1:2.11+dfsg-1ubuntu7.12UBUNTU-CVE-2018-16872 USN-3923-1
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS and 2 moreqemu2.6.2-41.49.1SUSE-SU-2019:0489-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3qemu2.9.1-6.28.1SUSE-SU-2019:0582-1
SUSELinux Enterprise Desktop 12 SP4, Linux Enterprise Server 12 SP4, Linux Enterprise Server for SAP Applications 12 SP4qemu2.11.2-5.8.1SUSE-SU-2019:0435-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Server Applications 15qemu2.11.2-9.20.1SUSE-SU-2019:0423-1
SUSELinux Enterprise Server 12 SP1-LTSSqemu2.3.1-33.20.1SUSE-SU-2019:0471-1
SUSELinux Enterprise Server for SAP Applications 12 SP1qemu2.3.1-33.20.1SUSE-SU-2019:0471-2
openSUSETumbleweedqemu6.1.0-32.1openSUSE-SU-2024:11287-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5kvmNot affected
Red Hat Enterprise Linux 5xenNot affected
Red Hat Enterprise Linux 6qemu-kvmNot affected
Red Hat Enterprise Linux 7qemu-kvmNot affected
Red Hat Enterprise Linux 7qemu-kvm-maNot affected
Red Hat Enterprise Linux 7qemu-kvm-rhevNot affected
Red Hat Enterprise Linux 8qemu-kvmNot affected
Red Hat OpenStack Platform 10 (Newton)qemu-kvm-rhevNot affected
Red Hat OpenStack Platform 12 (Pike)qemu-kvm-rhevNot affected
Red Hat OpenStack Platform 13 (Queens)qemu-kvm-rhevNot affected
Red Hat OpenStack Platform 14 (Rocky)qemu-kvm-rhevNot affected
Red Hat OpenStack Platform 8 (Liberty)qemu-kvm-rhevNot affected
Red Hat OpenStack Platform 9 (Mitaka)qemu-kvm-rhevNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-16872.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON