Bug 1625429 (CVE-2018-16412) - CVE-2018-16412 ImageMagick: heap-based buffer over-read in the ParseImageResourceBlocks function in coders/psd.c
Summary: CVE-2018-16412 ImageMagick: heap-based buffer over-read in the ParseImageReso...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2018-16412
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: 1625432
Blocks: 1625433
TreeView+ depends on / blocked
 
Reported: 2018-09-04 22:14 UTC by Laura Pardo
Modified: 2021-02-16 23:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-18 12:56:11 UTC
Embargoed:


Attachments (Terms of Use)

Description Laura Pardo 2018-09-04 22:14:38 UTC
A flaw was found in ImageMagick 7.0.8-11 Q16 has a heap-based buffer over-read in the coders/psd.c ParseImageResourceBlocks function.


References:
https://github.com/ImageMagick/ImageMagick/issues/1250

Comment 1 Laura Pardo 2018-09-04 22:16:40 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1625432]

Comment 2 Riccardo Schirone 2018-09-18 12:01:05 UTC
Statement:

This issue did not affect the versions of ImageMagick as shipped with Red Hat Enterprise Linux 5, 6 and 7 as they did not include the vulnerable code.

Comment 4 Riccardo Schirone 2018-09-18 12:47:19 UTC
ParseImageResourceBlocks function in coders/psd.c does not check if the the read value plus the base `p` buffer may overflow. Thus a big `count` value can bypass the check and result in an out-of-bound read later on during the execution of the function.


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