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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| [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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- WID-SEC-2024-1996 QEMU: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit den Rechten des Dienstes BSI CERT-Bund (WID) · Sep 2, 2024
- ELSA-2019-4585 Important: qemu security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Mar 15, 2019
- ELSA-2019-4556 Important: qemu security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Feb 22, 2019
- ELSA-2018-4313 Important: qemu security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Dec 21, 2018
- ELSA-2018-4312 Important: qemu security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Dec 21, 2018
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16867
- 106195 vdb-entry
- [oss-security] 20181206 CVE-2018-16867 QEMU: dev-mtp: path traversal in usb_mtp_write_data of the Media Transfer Protocol (MTP) mailing-list
- FEDORA-2019-88a98ce795 vendor-advisory
- USN-3923-1 vendor-advisory