Bug 1654885 (CVE-2018-16867) - CVE-2018-16867 QEMU: dev-mtp: path traversal in usb_mtp_write_data of the Media Transfer Protocol (MTP)
Summary: CVE-2018-16867 QEMU: dev-mtp: path traversal in usb_mtp_write_data of the Med...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2018-16867
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=important,public=20181203,repo...
Depends On: 1656746
Blocks: 1654890
TreeView+ depends on / blocked
 
Reported: 2018-11-29 23:13 UTC by Laura Pardo
Modified: 2019-06-11 11:13 UTC (History)
37 users (show)

Fixed In Version: qemu 3.1.0
Doc Type: Bug Fix
Doc Text:
A flaw was found in QEMU's Media Transfer Protocol (MTP) where a path traversal in the in usb_mtp_write_data function in hw/usb/dev-mtp.c due to an improper file name sanitization. Reading and writing of arbitrary files is allowed when a guest device is mounted which may lead to a denial of service scenario or possibly lead to code execution on the host.
Clone Of:
Environment:
Last Closed: 2019-06-10 10:43:23 UTC


Attachments (Terms of Use)

Description Laura Pardo 2018-11-29 23:13:08 UTC
A flaw was found in qemu Media Transfer Protocol (MTP). 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.

Upstream patch:
---------------
  -> https://lists.gnu.org/archive/html/qemu-devel/2018-12/msg00390.html

Reference:
----------
  -> https://www.openwall.com/lists/oss-security/2018/12/06/1

Comment 1 Laura Pardo 2018-11-29 23:13:17 UTC
Acknowledgments:

Name: Michael Hanselmann (hansmi.ch)

Comment 2 Prasad J Pandit 2018-12-06 09:01:57 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 1656746]

Comment 3 Sam Fowler 2018-12-12 02:20:28 UTC
External Reference:

https://www.openwall.com/lists/oss-security/2018/12/06/1


Note You need to log in before you can comment on or make changes to this bug.