#833485 CVE-2016-6520: imagemagick: buffer overflow

Package:
imagemagick
Source:
imagemagick
Description:
image manipulation programs -- binaries
Submitter:
Henri Salo
Date:
2025-12-31 10:51:05 UTC
Severity:
important
Tags:
#833485#5
Date:
2016-08-05 02:19:06 UTC
From:
To:
A buffer overflow vulnerability has been fixed by following commit:

https://github.com/ImageMagick/ImageMagick/commit/76401e172ea3a55182be2b8e2aca4d07270f6da6

Related CVE request: http://www.openwall.com/lists/oss-security/2016/08/02/6

#833485#10
Date:
2016-08-08 20:45:43 UTC
From:
To:
control: fixed -1 8:6.8.9.9-7.2

according to http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=30259&p=136359#p136359
it is not for us

This is a ImageMagick 7 specific patch. We allocate the buffers based
on the number of image pixel channels, however, the method was not
returning the correct number of channels, 3 (RGB) instead of 4 (RGBA).
Calling SyncImagePixelCache() forces an update to the pixel cache
morphology and then GetImageChannels() correctly returns 4 channels. A
better fix, which we subsequently added, was to ensure that each
image, as it is returned by a coder, is synced such that
GetImageChannels() always returns the correct value. For this
particular case, we set the image trait to alpha but we did not
evaluate the image to update the change in the pixel cache morphology
from 3 to 4.

#833485#17
Date:
2016-08-08 20:45:43 UTC
From:
To:
control: fixed -1 8:6.8.9.9-7.2

according to http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=30259&p=136359#p136359
it is not for us

This is a ImageMagick 7 specific patch. We allocate the buffers based
on the number of image pixel channels, however, the method was not
returning the correct number of channels, 3 (RGB) instead of 4 (RGBA).
Calling SyncImagePixelCache() forces an update to the pixel cache
morphology and then GetImageChannels() correctly returns 4 channels. A
better fix, which we subsequently added, was to ensure that each
image, as it is returned by a coder, is synced such that
GetImageChannels() always returns the correct value. For this
particular case, we set the image trait to alpha but we did not
evaluate the image to update the change in the pixel cache morphology
from 3 to 4.

#833485#28
Date:
2025-12-31 10:49:28 UTC
From:
To:
close 833485 7.0.2.7
thanks