Bug 1465040 (CVE-2017-9832) - CVE-2017-9832 libmtp: Integer overflow in ptp_unpack_OPL function
Summary: CVE-2017-9832 libmtp: Integer overflow in ptp_unpack_OPL function
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2017-9832
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1465042 1465043 1465044 1465045 1466791
Blocks: 1465052
TreeView+ depends on / blocked
 
Reported: 2017-06-26 13:13 UTC by Adam Mariš
Modified: 2021-02-17 01:59 UTC (History)
10 users (show)

Fixed In Version: libmtp 1.1.13, libgphoto2 2.5.14
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-30 15:28:34 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Mariš 2017-06-26 13:13:41 UTC
An integer overflow vulnerability in ptp-pack.c (ptp_unpack_OPL function) of libmtp (version 1.1.12 and below) allows attackers to cause a denial of service (out-of-bounds memory access) or maybe remote code execution by inserting a mobile device into a personal computer through a USB cable.

Upstream bug report:

https://sourceforge.net/p/libmtp/mailman/message/35727918/

Comment 1 Adam Mariš 2017-06-26 13:17:45 UTC
Created libmtp tracking bugs for this issue:

Affects: fedora-all [bug 1465043]


Created libmtp11 tracking bugs for this issue:

Affects: epel-6 [bug 1465042]

Comment 2 Adam Mariš 2017-06-26 13:19:46 UTC
Created libmtp tracking bugs for this issue:

Affects: fedora-all [bug 1465044]


Created libmtp11 tracking bugs for this issue:

Affects: epel-6 [bug 1465045]

Comment 3 Stefan Cornelius 2017-06-30 13:14:33 UTC
Created libgphoto2 tracking bugs for this issue:

Affects: fedora-all [bug 1466791]

Comment 4 Robert Scheck 2017-06-30 13:16:23 UTC
Stefan, can you please explain how the libmtp flaw is related to the newly
added/mentioned libgphoto2 tracker bug? Does libgphoto2 bundle libmtp?

Comment 5 Stefan Cornelius 2017-06-30 13:36:27 UTC
(In reply to Robert Scheck from comment #4)
> Stefan, can you please explain how the libmtp flaw is related to the newly
> added/mentioned libgphoto2 tracker bug? Does libgphoto2 bundle libmtp?

Hi Robert,

I've not tested this, so I can't 100% claim that libgphoto2 is also affected. However, I've noticed the following commits in libgphoto2 and at least one of them seems related enough to handle them as a part of this:

https://github.com/gphoto/libgphoto2/commit/203df81b9d97e820411e1eb94ae08139af73bbd0
https://github.com/gphoto/libgphoto2/commit/e25b3983489cd290edef693e78c0af694d3cd010

Let me know if you have any further questions.

Comment 6 Stefan Cornelius 2017-06-30 15:28:46 UTC
Statement:

Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.


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