Gentoo Logo

libpng: Buffer overflow

Content:

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200607-06 / libpng
Release Date July 19, 2006
Latest Revision July 19, 2006: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
media-libs/libpng < 1.2.12 >= 1.2.12 All supported architectures
app-emulation/emul-linux-x86-baselibs < 2.5.1 >= 2.5.1 AMD64

Related bugreports: #138433, #138672

Synopsis

A buffer overflow has been found in the libpng library that could lead to the execution of arbitrary code.

2.  Impact Information

Background

libpng is an open, extensible image format library, with lossless compression.

Description

In pngrutil.c, the function png_decompress_chunk() allocates insufficient space for an error message, potentially overwriting stack data, leading to a buffer overflow.

Impact

By enticing a user to load a maliciously crafted PNG image, an attacker could execute arbitrary code with the rights of the user, or crash the application using the libpng library, such as the emul-linux-x86-baselibs.

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.12"

All AMD64 emul-linux-x86-baselibs users should also upgrade to the latest version:

Code Listing 3.2: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-emulation/emul-linux-x86-baselibs-2.5.1"

4.  References



Print

Page updated July 19, 2006

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2014 Gentoo Foundation, Inc. Questions, Comments? Contact us.