Bug 179455

Summary: CVE-2006-0481 libpng heap based buffer overflow
Product: Red Hat Enterprise Linux 4 Reporter: Josh Bressers <bressers>
Component: libpngAssignee: Matthias Clasen <mclasen>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: jnovy
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20041203,reported=20051219,source=redhat
Fixed In Version: RHSA-2006-0205 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-13 15:30:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch extracted from the upstream 1.2.8 release
none
Testcase none

Description Josh Bressers 2006-01-31 15:42:24 UTC
libpng heap based buffer overflow

There is a heap based buffer overflow in libpng 1.2.7 only. Upstream
has a note with the release for 1.2.8 that fixes a crash when a
program tries to strip alpha channels out of the image (calling the
png_set_strip_alpha() function during libpng initialization).

It should be noted that this particular libpng feature is only used by
tetex and xemacs within RHEL4, limiting the potential damage the
overflow can cause.

Comment 1 Josh Bressers 2006-01-31 15:44:43 UTC
Created attachment 123913 [details]
Patch extracted from the upstream 1.2.8 release

Comment 2 Josh Bressers 2006-01-31 15:45:19 UTC
Created attachment 123914 [details]
Testcase

Comment 3 Matthias Clasen 2006-02-03 18:04:26 UTC
I have built libpng-1.2.7-1.el4.2 with the patch, and converted your testcase in
the RHTS test /desktop/libpng/CVE2006-0481, but it doesn't work in RHTS for some
reason. Local testing yields the expected results.

Comment 7 Red Hat Bugzilla 2006-02-13 15:30:37 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2006-0205.html