REDHAT-BUG-844105: Low severity ImageMagick ImageMagick vulnerability

Published Jul 28, 2012
·
Updated

Tom Lane (tgl) found an issue in ImageMagick that is also present in GraphicsMagick. Basically CVE-2011-3026 deals with libpng memory allocation, limitations have been added so that a bad PNG can't cause the system to allocate a lot of memory causing a denial of service. However on further investigation of ImageMagick Tom Lane found that PNG malloc function (Magickpngmalloc) in turn calls AcquireMagickMemory with an improper size argument:

#ifdef PNGUSERMEMSUPPORTED static pngvoidp Magickpngmalloc(pngstructp pngptr,pnguint32 size) { (void) pngptr; return((pngvoidp) AcquireMagickMemory((sizet) size)); }

Similar code is present in GraphicsMagick:

#ifdef PNGUSERMEMSUPPORTED static pngvoidp pngIMmalloc(pngstructp pngptr,pnguint32 size) { (void) pngptr; return MagickAllocateMemory(pngvoidp,(sizet) size); }

This is incorrect, the size argument should be declared pngallocsizet according to 1.5, or pngsizet according to 1.2.

"As this function stands, it invisibly does the wrong thing for any request over 4GB. On big-endian architectures it very possibly will do the wrong thing even for requests less than that. So the reason why the hard-wired 4GB limit prevents a core dump is that it masks the ABI mismatch here."

So basically we have memory allocations problems that can probably lead to a denial of service.

Affected Software

2 affected components
ImageMagick ImageMagick
GraphicsMagick Graphicsmagick

Event History

Jul 28, 2012
Data Sourced
11:01 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-844105?

The severity of REDHAT-BUG-844105 is categorized as high due to potential memory allocation issues in ImageMagick and GraphicsMagick.

2

How do I fix REDHAT-BUG-844105?

To fix REDHAT-BUG-844105, update to the patched versions of ImageMagick or GraphicsMagick as provided by your system's package manager.

3

What systems are affected by REDHAT-BUG-844105?

REDHAT-BUG-844105 affects the ImageMagick and GraphicsMagick software on various operating systems.

4

What is the root cause of REDHAT-BUG-844105?

The root cause of REDHAT-BUG-844105 is related to libpng memory allocation issues that can lead to system instability.

5

Are there any workarounds for REDHAT-BUG-844105?

A temporary workaround for REDHAT-BUG-844105 is to avoid using vulnerable features of ImageMagick or GraphicsMagick until an update is applied.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203