Advisory

DEBIAN-CVE-2018-16872

Also known as: CVE-2018-16872

Summary

The record has no summary.

Details

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

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2018-12-13 21:29 UTC
Modified
2026-10-23 18:03 UTC

Affected packages and fixes

qemu

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 1:3.1+dfsg-2 (ecosystem)

Fixed versions

1:3.1+dfsg-2

Fix

  • Fixed version 1:3.1+dfsg-2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

qemu

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 1:3.1+dfsg-2 (ecosystem)

Fixed versions

1:3.1+dfsg-2

Fix

  • Fixed version 1:3.1+dfsg-2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

qemu

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 1:3.1+dfsg-2 (ecosystem)

Fixed versions

1:3.1+dfsg-2

Fix

  • Fixed version 1:3.1+dfsg-2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences