Bug 2418549 (CVE-2025-65955) - CVE-2025-65955 imagemagick: ImageMagick use-after-free/double-free
Summary: CVE-2025-65955 imagemagick: ImageMagick use-after-free/double-free
Keywords:
Status: NEW
Alias: CVE-2025-65955
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2418551 2418552 2418553 2418554 2418555
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-03 00:01 UTC by OSIDB Bzimport
Modified: 2025-12-03 00:06 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-03 00:01:13 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.