libpng: Multiple vulnerabilities

Security Team  Contact Address

Updated March 15, 2009

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200903-28 / libpng
Release Date March 15, 2009
Latest Revision March 15, 2009: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
media-libs/libpng < 1.2.35 >= 1.2.35 All supported architectures

Related bugreports: #244808, #255231, #259578

Synopsis

Multiple vulnerabilities were found in libpng, which might result in the execution of arbitrary code

2.  Impact Information

Background

libpng is the official PNG reference library used to read, write and manipulate PNG images.

Description

Multiple vulnerabilities were discovered in libpng:

Impact

A remote attacker may execute arbitrary code with the privileges of the user opening a specially crafted PNG file by exploiting the erroneous out-of-memory handling. An attacker may also exploit the png_check_keyword() error to set arbitrary memory locations to 0, if the application allows overlong, user-controlled keywords when writing PNG files. The png_handle_tEXT() vulnerability may be exploited by an attacker to potentially consume all memory on a users system when a specially crafted PNG file is opened.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All libpng users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-libs/libpng-1.2.35"

4.  References