Skip to content
Heist/ feed
Back to feed
MediumFix available

qemu — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-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.

Products
qemu
Affected versions
Not specified
Fixed versions
1:3.1+dfsg-2
CVEs
CVE-2018-16872
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:28 UTC · Revision 1

Source evidence

DEBIAN-CVE-2018-16872

core-osv · Original source

Published 13 Dec 2018, 21:29 UTC

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.

osv:DEBIAN-CVE-2018-16872

qemu

Fixed versions: 1:3.1+dfsg-2

qemu

Fixed versions: 1:3.1+dfsg-2

qemu

Fixed versions: 1:3.1+dfsg-2

Complete source record
{
  "id": "d1782649123409b6abf1a557229eb48a4bed38f7d8b72088cc322a3b2b2421e4",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2018-16872",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2018-16872",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2018-16872",
    "products": [
      {
        "name": {
          "value": "qemu",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1:3.1+dfsg-2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "qemu",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1:3.1+dfsg-2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "qemu",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1:3.1+dfsg-2",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2018-16872",
      "aliases": [
        "DEBIAN-CVE-2018-16872"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1:3.1+dfsg-2"
                }
              ]
            }
          ],
          "package": {
            "name": "qemu",
            "purl": "pkg:deb/debian/qemu?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-16872.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1:3.1+dfsg-2"
                }
              ]
            }
          ],
          "package": {
            "name": "qemu",
            "purl": "pkg:deb/debian/qemu?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-16872.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1:3.1+dfsg-2"
                }
              ]
            }
          ],
          "package": {
            "name": "qemu",
            "purl": "pkg:deb/debian/qemu?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-16872.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:19.788796153Z",
      "provider": "osv",
      "upstream": [
        "CVE-2018-16872"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2018-16872"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2018-16872",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 421170,
  "published_at": "2018-12-13T21:29:00.26+00:00"
}