Bug 1489702 (CVE-2017-14173) - CVE-2017-14173 ImageMagick: Integer overflow in the function ReadTXTImage()
Summary: CVE-2017-14173 ImageMagick: Integer overflow in the function ReadTXTImage()
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2017-14173
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:44 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:53 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2017-09-08 07:44:53 UTC
In the function ReadTXTImage() in coders/txt.c in ImageMagick 7.0.6-10, an integer overflow might occur for the addition operation "GetQuantumRange(depth)+1" when "depth" is large, producing a smaller value than expected. As a result, an infinite loop would occur for a crafted TXT file that claims a very large "max_value" value.

Upstream issue:

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

Upstream patch:

https://github.com/ImageMagick/ImageMagick/commit/48bcf7c39302cdf9b0d9202ad03bf1b95152c44d

Comment 1 Andrej Nemec 2017-09-08 07:48:30 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.