Debian Security Advisory

DSA-498-1 libpng -- out of bound access

Date Reported:
30 Apr 2004
Affected Packages:
libpng, libpng3
Security database references:
In the Bugtraq database (at SecurityFocus): BugTraq ID 10244.
In Mitre's CVE dictionary: CVE-2004-0421.
More information:

Steve Grubb discovered a problem in the Portable Network Graphics library libpng which is utilised in several applications. When processing a broken PNG image, the error handling routine will access memory that is out of bounds when creating an error message. Depending on machine architecture, bounds checking and other protective measures, this problem could cause the program to crash if a defective or intentionally prepared PNG image file is handled by libpng.

This could be used as a denial of service attack against various programs that link against this library. The following commands will show you which packages utilise this library and whose programs should probably restarted after an upgrade:

   apt-cache showpkg libpng2
   apt-cache showpkg libpng3

The following security matrix explains which package versions will contain a correction.

Package stable (woody) unstable (sid)
libpng 1.0.12-3.woody.5 1.0.15-5
libpng3 1.2.1-1.1.woody.5

We recommend that you upgrade your libpng and related packages.

Fixed in:

Debian GNU/Linux 3.0 (woody)

Intel IA-32:
Intel IA-64:
Motorola 680x0:
Big endian MIPS:
Little endian MIPS:
IBM S/390:
Sun Sparc:

MD5 checksums of the listed files are available in the original advisory.