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
Created ImageMagick tracking bugs for this issue: Affects: fedora-all [bug 1625432]
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.
Upstream patch: https://github.com/ImageMagick/ImageMagick6/commit/4745eb1047617330141e9abfd5ae01236a71ae12
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.
Upstream patch: https://github.com/ImageMagick/ImageMagick/commit/17a1a6f97fd088a71931bdc422f4e96bb6ffc549