CVE-2020-25664

Published: 08 December 2020

In WriteOnePNGImage() of the PNG coder at coders/png.c, an improper call to AcquireVirtualMemory() and memset() allows for an out-of-bounds write later when PopShortPixel() from MagickCore/quantum-private.h is called. The patch fixes the calls by adding 256 to rowbytes. An attacker who is able to supply a specially crafted image could affect availability with a low impact to data integrity. This flaw affects ImageMagick versions prior to 6.9.10-68 and 7.0.8-68.

Priority

Medium

CVSS 3 base score: 6.1

Status

Package Release Status
imagemagick
Launchpad, Ubuntu, Debian
Upstream
Released (8:6.9.11.24+dfsg-1)
Ubuntu 21.04 (Hirsute Hippo) Deferred
(2021-01-07)
Ubuntu 20.10 (Groovy Gorilla) Deferred
(2021-01-07)
Ubuntu 20.04 LTS (Focal Fossa) Deferred
(2021-01-07)
Ubuntu 18.04 LTS (Bionic Beaver) Deferred
(2021-01-07)
Ubuntu 16.04 LTS (Xenial Xerus) Deferred
(2021-01-07)
Ubuntu 14.04 ESM (Trusty Tahr) Does not exist

Patches:
Upstream: https://github.com/ImageMagick/ImageMagick6/commit/27d3ddedb73f63fa984ff5b4d66e07eef654070f
Upstream: https://github.com/ImageMagick/ImageMagick6/commit/e16a98540228f707a718dd09ac0b8cacd2a25d49 (revert)

Notes

AuthorNote
mdeslaur
fix attempt was reverted
unclear what the fix for this issue is as of 2021-01-07

References

Bugs