Bug 486355 (CVE-2009-0040)

Summary: CVE-2009-0040 libpng arbitrary free() flaw
Product: [Other] Security Response Reporter: Josh Bressers <bressers>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: berrange, bnater, fedora-mingw, jlieskov, jrusnack, kreilly, kseifried, mjc, pasteur, paul, rjones, tgl, vdanen
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://213.203.218.125/l/li/libpng/libpng-1.2.34-ADVISORY.txt
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-30 23:41:38 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:
Bug Depends On: 487164, 487165, 487166, 487167, 487168, 487169, 487170, 487171, 487172, 537849, 802164    
Bug Blocks:    
Attachments:
Description Flags
Upstream advisory for posterity
none
Upstream patch to fix the issue none

Description Josh Bressers 2009-02-19 14:01:24 UTC
A flaw was discovered in libpng that could result in libpng trying to free() random memory if certain unlikely error conditions occur.  To quote the libpng advisory:

    If the application runs out of memory during the
    loop, some of the element pointers will be uninitialized.
    Libpng will then longjmp to a cleanup process that
    attempts to free all of the elements in the array,
    including the uninitialized ones.  This behavior
    could be forced by a malevolent input.

Comment 1 Josh Bressers 2009-02-19 14:02:33 UTC
Created attachment 332560 [details]
Upstream advisory for posterity

Comment 2 Vincent Danen 2009-02-21 00:59:16 UTC
Created attachment 332781 [details]
Upstream patch to fix the issue

Comment 9 Fedora Update System 2009-02-26 09:02:41 UTC
mingw32-libpng-1.2.35-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/mingw32-libpng-1.2.35-1.fc10

Comment 10 Richard W.M. Jones 2009-02-26 09:03:21 UTC
Thanks for the heads up on this.  I have rebuilt
the mingw32-libpng package in Rawhide, F-10 and EL-5.

Comment 11 Paul Howarth 2009-02-26 09:50:00 UTC
Upstream release 1.0.43 addresses this issue for libpng10.

Rawhide is already updated, and updates for F-9 and F-10 are currently in updates-testing.

https://admin.fedoraproject.org/updates/F9/FEDORA-2009-2045
https://admin.fedoraproject.org/updates/F10/FEDORA-2009-1976

Comment 12 Fedora Update System 2009-02-26 15:33:16 UTC
libpng-1.2.35-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2009-02-26 15:34:32 UTC
libpng-1.2.35-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2009-02-26 15:35:27 UTC
mingw32-libpng-1.2.35-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 22 Fedora Update System 2009-03-09 22:47:32 UTC
libpng10-1.0.43-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 23 Fedora Update System 2009-03-09 23:11:15 UTC
libpng10-1.0.43-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 24 Fedora Update System 2009-03-21 01:26:13 UTC
thunderbird-2.0.0.21-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 25 Fedora Update System 2009-03-21 01:27:17 UTC
thunderbird-2.0.0.21-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.