CVE-2007-2445: Medium severity Linux Linux kernel vulnerability
"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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/RHSA-2007to a version that resolves this vulnerability.Fixed in 0356 - Upgrade
Upgrade
debian/libgd2to a version that resolves this vulnerability.Fixed in 2.0.33-5.2etch1Fixed in 2.0.35.dfsg-1 - Upgrade
Upgrade
debian/libpngto a version that resolves this vulnerability.Fixed in 1.2.15~beta5-1+etch2Fixed in 1.2.15~beta5-2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.0.25 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.2.17
Event History
Frequently Asked Questions
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.
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.
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.
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.
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.