CVE & CISA-KEV Catalog

CVE-2018-16872

MEDIUM
5.3
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
qemuDebian
Fixed in:1:3.1+dfsg-2CVE-2018-16872
Fixed in:1:3.1+dfsg-2CVE-2018-16872
Fixed in:1:3.1+dfsg-2CVE-2018-16872
Fixed in:1:3.1+dfsg-2CVE-2018-16872
qemuUbuntu
Fixed in:2.0.0+dfsg-2ubuntu1.45USN-3923-1
Fixed in:1:2.5+dfsg-5ubuntu10.36USN-3923-1
Fixed in:1:2.11+dfsg-1ubuntu7.12USN-3923-1
qemu-systemUbuntu
Fixed in:2.0.0+dfsg-2ubuntu1.45USN-3923-1
Fixed in:1:2.5+dfsg-5ubuntu10.36USN-3923-1
Fixed in:1:2.11+dfsg-1ubuntu7.12USN-3923-1
qemu-system-aarch64Ubuntu
Fixed in:2.0.0+dfsg-2ubuntu1.45USN-3923-1
Fixed in:1:2.5+dfsg-5ubuntu10.36USN-3923-1
qemu-system-armUbuntu
Fixed in:2.0.0+dfsg-2ubuntu1.45USN-3923-1
Fixed in:1:2.5+dfsg-5ubuntu10.36USN-3923-1
Fixed in:1:2.11+dfsg-1ubuntu7.12USN-3923-1
qemu-system-mipsUbuntu
Fixed in:2.0.0+dfsg-2ubuntu1.45USN-3923-1
Fixed in:1:2.5+dfsg-5ubuntu10.36USN-3923-1
Fixed in:1:2.11+dfsg-1ubuntu7.12USN-3923-1
qemu-system-miscUbuntu
Fixed in:2.0.0+dfsg-2ubuntu1.45USN-3923-1
Fixed in:1:2.5+dfsg-5ubuntu10.36USN-3923-1
Fixed in:1:2.11+dfsg-1ubuntu7.12USN-3923-1
qemu-system-ppcUbuntu
Fixed in:2.0.0+dfsg-2ubuntu1.45USN-3923-1
Fixed in:1:2.5+dfsg-5ubuntu10.36USN-3923-1
Fixed in:1:2.11+dfsg-1ubuntu7.12USN-3923-1
qemu-system-s390xUbuntu
Fixed in:1:2.5+dfsg-5ubuntu10.36USN-3923-1
Fixed in:1:2.11+dfsg-1ubuntu7.12USN-3923-1
qemu-system-sparcUbuntu
Fixed in:2.0.0+dfsg-2ubuntu1.45USN-3923-1
Fixed in:1:2.5+dfsg-5ubuntu10.36USN-3923-1
Fixed in:1:2.11+dfsg-1ubuntu7.12USN-3923-1
qemu-system-x86Ubuntu
Fixed in:2.0.0+dfsg-2ubuntu1.45USN-3923-1
Fixed in:1:2.5+dfsg-5ubuntu10.36USN-3923-1
Fixed in:1:2.11+dfsg-1ubuntu7.12USN-3923-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityNone
AvailabilityNone

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Exploit Intelligence

1.07%probability of exploitation in 30 days
61stpercentile

Moderate risk: more likely to be exploited than 61% of all known CVEs.

References

Related Vulnerabilities

Other CWE-367 (TOCTOU Race Condition) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-36980High8.183%-Fix
CVE-2024-30088High7.068%KEV + RansomFix
CVE-2004-0594Medium5.155%-Fix
CVE-2024-50379Critical9.844%-Fix
CVE-2023-38146High8.839%-Fix
CVE-2024-0132Critical9.037%-Fix
Embed a live status badge for CVE-2018-16872
CVE-2018-16872 severity badge

Markdown

[![CVE-2018-16872](https://tridentstack.com/cve/badge/CVE-2018-16872.svg)](https://tridentstack.com/cve/CVE-2018-16872)

HTML

<a href="https://tridentstack.com/cve/CVE-2018-16872"><img src="https://tridentstack.com/cve/badge/CVE-2018-16872.svg" alt="CVE-2018-16872"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.