Advisory Published
Updated

REDHAT-BUG-720607

First published: Tue Jul 12 2011(Updated: )

libpng overwrites unallocated memory when promoting a paletted image with transparency (one channel) to gray-alpha (two channels), only if the application calls png_rgb_to_gray() but fails to call png_set_expand(). This bug exists in all released versions of libpng (1.0, 1.2, 1.4 and 1.5). The data overwritten is entirely controlled by the image data in the PNG file and it is possible to cause any string of data to be written by fabricating an appropriate PNG file. The amount of overwrite is equal to the row length of the original image. This has been fixed in libpng-1.5.4, libpng-1.4.8, libpng-1.2.45, and libpng-1.0.55.

Affected SoftwareAffected VersionHow to fix
Libp2p<1.0.55
Libp2p<1.2.45
Libp2p<1.4.8
Libp2p<1.5.4

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-720607?

    The severity of REDHAT-BUG-720607 is considered critical due to the potential for memory corruption.

  • How do I fix REDHAT-BUG-720607?

    To fix REDHAT-BUG-720607, applications must ensure that they call png_set_expand() before calling png_rgb_to_gray() when promoting paletted images.

  • Which versions of libpng are affected by REDHAT-BUG-720607?

    All released versions of libpng, including 1.0, 1.2, 1.4, and 1.5, are affected by REDHAT-BUG-720607.

  • What is the root cause of REDHAT-BUG-720607?

    The root cause of REDHAT-BUG-720607 is the overwriting of unallocated memory when the necessary expansion functions are not called during image format promotion.

  • Is REDHAT-BUG-720607 present in any specific applications?

    Yes, REDHAT-BUG-720607 can be present in any application that utilizes affected versions of libpng without following proper usage practices.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203