FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

png -- unknown chunk processing uninitialized memory access

Affected packages
png < 1.2.27

Details

VuXML ID 57c705d6-12ae-11dd-bab7-0016179b2dd5
Discovery 2008-04-12
Entry 2008-04-25
Modified 2008-04-29

Secunia reports:

Tavis Ormandy has reported a vulnerability in libpng, which can be exploited by malicious people to cause a Denial of Service, disclose potentially sensitive information, or potentially compromise an application using the library.

The vulnerability is caused due to the improper handling of PNG chunks unknown to the library. This can be exploited to trigger the use of uninitialized memory in e.g. a free() call via unknown PNG chunks having a length of zero.

Successful exploitation may allow execution of arbitrary code, but requires that the application calls the png_set_read_user_chunk_fn() function or the png_set_keep_unknown_chunks() function under specific conditions.

References

Bugtraq ID 28770
CVE Name CVE-2008-1382
URL http://libpng.sourceforge.net/Advisory-1.2.26.txt
URL http://secunia.com/advisories/29792