Bug 179455 - CVE-2006-0481 libpng heap based buffer overflow
Summary: CVE-2006-0481 libpng heap based buffer overflow
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: libpng
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Matthias Clasen
QA Contact:
URL:
Whiteboard: impact=moderate,public=20041203,repor...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-31 15:42 UTC by Josh Bressers
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version: RHSA-2006-0205
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-13 15:30:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch extracted from the upstream 1.2.8 release (4.08 KB, patch)
2006-01-31 15:44 UTC, Josh Bressers
no flags Details | Diff
Testcase (2.62 KB, application/octet-stream)
2006-01-31 15:45 UTC, Josh Bressers
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2006:0205 0 normal SHIPPED_LIVE Moderate: libpng security update 2006-02-13 05:00:00 UTC

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



Note You need to log in before you can comment on or make changes to this bug.