Skip to content
OpenAdvisories
High · 7.0 CVE-2018-16867 EUVD-2018-8658GHSA-6ch3-xhrw-w89m

A flaw was found in qemu Media Transfer Protocol (MTP) before version 3.1.0. A path traversal in the in usb_mtp_write_data function in hw/u…

Published Dec 12, 2018 · Updated Aug 5, 2024 · Assigned by redhat

Description

A flaw was found in qemu Media Transfer Protocol (MTP) before version 3.1.0. A path traversal in the in usb_mtp_write_data function in hw/usb/dev-mtp.c due to an improper filename sanitization. When the guest device is mounted in read-write mode, this allows to read/write arbitrary files which may lead do DoS scenario OR possibly lead to code execution on the host.

Affected products

VendorProductAffectedFixed
[UNKNOWN] QEMU: 3.1.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 qemu 1:3.1+dfsg-1 —
Debian 13 qemu 1:3.1+dfsg-1 —
Debian 12 qemu 1:3.1+dfsg-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 ivshmem-tools +2 15:3.0.0-3.el7 ELSA-2019-4585, ELSA-2018-4313
Oracle Linux 7 qemu +9 12:2.9.0-20.el7 ELSA-2019-4585, ELSA-2019-4556, ELSA-2018-4313

Advisories 5

References