The PALM image coder at coders/palm.c makes an improper call to AcquireQuantumMemory() in routine WritePALMImage() because it needs to be offset by 256. This can cause a out-of-bounds read later on in the routine. The patch adds 256 to bytes_per_row in the call to AcquireQuantumMemory(). This could cause impact to reliability. This flaw affects ImageMagick versions prior to 7.0.8-68.
Source: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-25665
Reference (s):
- https://bugzilla.redhat.com/show_bug.cgi?id=1891606
- URL: https://bugzilla.redhat.com/show_bug.cgi?id=1891606
- MLIST:[debian-lts-announce] 20210112 [SECURITY] [DLA 2523-1] imagemagick security update
- URL: https://lists.debian.org/debian-lts-announce/2021/01/msg00010.html

