CVE-2007-2445: Medium severity Linux Linux kernel vulnerability

Published May 8, 2007
·
Updated

"From: Glenn Randers-Pehrson <glennrp>

A security bug has been reported to mozilla.

It seems that a grayscale image with a malformed (bad CRC) tRNS chunk will crash libpng and mozilla. In my experience it also brought down my Windows display manager.

The reason is that pngptr->numtrans is set to 1 and then there is an error return after checking the CRC, so the trans[] array is never allocated. Since pngptr->numtrans is nonzero, libpng tries to use the array later. Here is the fix, thanks to Mats Palmgren:

At line 1316 of pngrutil.c, change

if (pngcrcfinish(pngptr, 0)) return;

to

if (pngcrcfinish(pngptr, 0)) { pngptr->numtrans = 0; return; }

Libpng-1.2.17rc1 does not contain this fix."

Allocated CVE-2007-2445 This issue is not currently public

Other sources

The pnghandletRNS function in pngrutil.c in libpng before 1.0.25 and 1.2.x before 1.2.17 allows remote attackers to cause a denial of service (application crash) via a grayscale PNG image with a bad tRNS chunk CRC value.

Affected Software

9 affected componentsFixes available
Linux Linux kernel
Png Reference Library Libpng<=1.0.15
Png Reference Library Libpng<=1.2.16
All of the following
Linux Linux kernel
Any of the following
Png Reference Library Libpng<=1.0.15
Png Reference Library Libpng<=1.2.16
redhat/rhsa-2007<0356
0356
debian/libgd2
2.0.33-5.2etch12.0.35.dfsg-1
debian/libpng
1.2.15~beta5-1+etch21.2.15~beta5-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/RHSA-2007 to a version that resolves this vulnerability.

    Fixed in 0356
  2. Upgrade

    Upgrade debian/libgd2 to a version that resolves this vulnerability.

    Fixed in 2.0.33-5.2etch1Fixed in 2.0.35.dfsg-1
  3. Upgrade

    Upgrade debian/libpng to a version that resolves this vulnerability.

    Fixed in 1.2.15~beta5-1+etch2Fixed in 1.2.15~beta5-2
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.0.25
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.2.17

Event History

May 8, 2007
Data Sourced
via Red Hat·12:01 PM
DescriptionSeverityAffected Software
May 16, 2007
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Data Sourced
10:30 PM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·10:30 PM
RemedyDescriptionSeverityAffected Software
May 17, 2007
CVE Published
via MITRE·02:00 AM
Oct 16, 2018
Data Sourced
04:43 PM
RemedySeverity

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2007-2445?

CVE-2007-2445 has a severity rated as moderate due to the potential for denial of service.

2

How do I fix CVE-2007-2445?

To fix CVE-2007-2445, upgrade libpng to version 1.0.25 or 1.2.17 or later.

3

Which versions of libpng are vulnerable to CVE-2007-2445?

Versions of libpng prior to 1.0.25 and 1.2.17 are vulnerable to CVE-2007-2445.

4

What type of attack does CVE-2007-2445 facilitate?

CVE-2007-2445 allows remote attackers to cause a denial of service due to specific PNG image manipulations.

5

What software is affected by CVE-2007-2445?

CVE-2007-2445 affects libpng versions before 1.0.25 and 1.2.17, impacting any application that relies on these versions for handling PNG images.

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