Users login

Create an account »


Users login

Home » Security Advisories» Gentoo » Libpng denial of service vulnerability

Libpng denial of service vulnerability

A bug in the libpng library can be abused to crash programs making use of that library to decode PNG images.

  • Vendor: Gentoo
  • Vendor ID: GLSA-200405-06
  • Date: May 14, 2004

Gentoo Linux Security Advisory GLSA 200405-06

Severity: Normal
Title: libpng denial of service vulnerability
Date: May 14, 2004
Bugs: #49887
ID: 200405-06



A bug in the libpng library can be abused to crash programs making use
of that library to decode PNG images.


libpng is a standard library used to process PNG (Portable Network
Graphics) images.

Affected packages

Package / Vulnerable / Unaffected
1 media-libs/libpng <= 1.2.5-r4 >= 1.2.5-r5


libpng provides two functions (png_chunk_error and png_chunk_warning)
for default error and warning messages handling. These functions do not
perform proper bounds checking on the provided message, which is
limited to 64 bytes. Programs linked against this library may crash
when handling a malicious PNG image.


This vulnerability could be used to crash various programs using the
libpng library, potentially resulting in a denial of service attack on
vulnerable daemon processes.


There is no known workaround at this time. All users are advised to
upgrade to the latest available version of libpng.


All users of libpng should upgrade to the latest stable version:

# emerge sync

# emerge -pv ">=media-libs/libpng-1.2.5-r5"
# emerge ">=media-libs/libpng-1.2.5-r5"

You should also run revdep-rebuild to rebuild any packages that depend
on older versions of libpng :

# revdep-rebuild


[ 1 ] CAN-2004-0421


This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:


Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security or alternatively, you may file a bug at


Copyright 2004 Gentoo Technologies, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

Newsletter signup

Signup to our monthly newsletter and stay in touch with IT news!

Free E-books

We've got ebooks! But they're not online. :( Please give us a few days to bring downloads back.


Have something to say or just wanna drop us a line? Please keep this in mind: to spam, we reply with spam.

Contact us »