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.
Created ImageMagick tracking bugs for this issue:
Affects: fedora-all [bug 1625432]
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.
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.