Bug 1489705 (CVE-2017-14174) - CVE-2017-14174 ImageMagick: Lack of EOF check in the ReadPSDLayersInternal() function
Summary: CVE-2017-14174 ImageMagick: Lack of EOF check in the ReadPSDLayersInternal() ...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2017-14174
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: 1488981
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-08 07:46 UTC by Andrej Nemec
Modified: 2019-09-29 14:21 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-08 03:24:54 UTC


Attachments (Terms of Use)

Description Andrej Nemec 2017-09-08 07:46:21 UTC
In coders/psd.c in ImageMagick 7.0.7-0 Q16, a DoS in ReadPSDLayersInternal() due to lack of an EOF (End of File) check might cause huge CPU consumption. When a crafted PSD file, which claims a large "length" field in the header but does not contain sufficient backing data, is provided, the loop over "length" would consume huge CPU resources, since there is no EOF check inside the loop.

Upstream issue:

https://github.com/ImageMagick/ImageMagick/issues/714

Upstream patch:

https://github.com/ImageMagick/ImageMagick/commit/04a567494786d5bb50894fc8bb8fea0cf496bea8
https://github.com/ImageMagick/ImageMagick/commit/f68a98a9d385838a1c73ec960a14102949940a64

Comment 1 Andrej Nemec 2017-09-08 07:48:47 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1488981]


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