ALAS2-2025-3096


Amazon Linux 2 Security Advisory: ALAS2-2025-3096
Advisory Released Date: 2026-01-05
Advisory Updated Date: 2026-01-05
Severity: Medium

Issue Overview:

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to 7.1.2-9 and 6.9.13-34, there is a vulnerability in ImageMagick's Magick++ layer that manifests when Options::fontFamily is invoked with an empty string. Clearing a font family calls RelinquishMagickMemory on _drawInfo->font, freeing the font string but leaving _drawInfo->font pointing to freed memory while _drawInfo->family is set to that (now-invalid) pointer. Any later cleanup or reuse of _drawInfo->font re-frees or dereferences dangling memory. DestroyDrawInfo and other setters (Options::font, Image::font) assume _drawInfo->font remains valid, so destruction or subsequent updates trigger crashes or heap corruption. This vulnerability is fixed in 7.1.2-9 and 6.9.13-34. (CVE-2025-65955)


Affected Packages:

ImageMagick


Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
Run yum update ImageMagick or yum update --advisory ALAS2-2025-3096 to update your system.

New Packages:
aarch64:
    ImageMagick-6.9.10.97-1.amzn2.0.18.aarch64
    ImageMagick-devel-6.9.10.97-1.amzn2.0.18.aarch64
    ImageMagick-doc-6.9.10.97-1.amzn2.0.18.aarch64
    ImageMagick-perl-6.9.10.97-1.amzn2.0.18.aarch64
    ImageMagick-c++-6.9.10.97-1.amzn2.0.18.aarch64
    ImageMagick-c++-devel-6.9.10.97-1.amzn2.0.18.aarch64
    ImageMagick-debuginfo-6.9.10.97-1.amzn2.0.18.aarch64

i686:
    ImageMagick-6.9.10.97-1.amzn2.0.18.i686
    ImageMagick-devel-6.9.10.97-1.amzn2.0.18.i686
    ImageMagick-doc-6.9.10.97-1.amzn2.0.18.i686
    ImageMagick-perl-6.9.10.97-1.amzn2.0.18.i686
    ImageMagick-c++-6.9.10.97-1.amzn2.0.18.i686
    ImageMagick-c++-devel-6.9.10.97-1.amzn2.0.18.i686
    ImageMagick-debuginfo-6.9.10.97-1.amzn2.0.18.i686

src:
    ImageMagick-6.9.10.97-1.amzn2.0.18.src

x86_64:
    ImageMagick-6.9.10.97-1.amzn2.0.18.x86_64
    ImageMagick-devel-6.9.10.97-1.amzn2.0.18.x86_64
    ImageMagick-doc-6.9.10.97-1.amzn2.0.18.x86_64
    ImageMagick-perl-6.9.10.97-1.amzn2.0.18.x86_64
    ImageMagick-c++-6.9.10.97-1.amzn2.0.18.x86_64
    ImageMagick-c++-devel-6.9.10.97-1.amzn2.0.18.x86_64
    ImageMagick-debuginfo-6.9.10.97-1.amzn2.0.18.x86_64