Vulnerability Note VU#477046
libpng malformed cHRM divide-by-zero vulnerability
Overview
libpng crashes when processing malformed cHRM chunks.
Description
When libpng encounters a cHRM chunk that is malformed it will perform a divide-by-zero causing libpng to crash. This bug was introduced in libpng version 1.5.4 and has been fixed in libpng version 1.5.5. |
Impact
By tricking a user into opening a specifically crafted PNG file within an application that uses libpng, an attacker may be able to cause a denial of service crash. The PNG Development Group has stated that: Such malformed PNG files are not necessarily malevolent (ones have been observed on the Internet that were created by accident) but they will cause a crash anyway. |
Solution
Apply an Update |
The PNG Development Group recommends upgrading to libpng-1.5.5. However, if you must continue to use libpng-1.5.4, you can apply the following patch to libpng-1.5.4: |
Vendor Information (Learn More)
According to The PNG Development Group: Those that use a "system" libpng that happens to be libpng-1.5.4 are vulnerable to a divide-by-zero crash. Mozilla products that use the embedded libpng are not vulnerable. |
| Vendor | Status | Date Notified | Date Updated |
|---|---|---|---|
| libpng | Affected | - | 22 Sep 2011 |
CVSS Metrics (Learn More)
| Group | Score | Vector |
|---|---|---|
| Base | N/A | N/A |
| Temporal | N/A | N/A |
| Environmental | N/A | N/A |
References
- http://libpng.sf.net/index.html
- ftp://ftp.simplesystems.org/pub/png/src
- https://sourceforge.net/tracker/index.php?func=detail&aid=3406145&group_id=5624&atid=105624
Credit
Thanks to Glenn Randers-Pehrson of the PNG Development Group for reporting this vulnerability.
This document was written by Michael Orlando.
Other Information
- CVE IDs: CVE 2011-3328
- Date Public: 22 Sep 2011
- Date First Published: 22 Sep 2011
- Date Last Updated: 23 Sep 2011
- Severity Metric: 0.06
- Document Revision: 15
Feedback
If you have feedback, comments, or additional information about this vulnerability, please send us email.