Bug 487364 (CVE-2009-0749)

Summary: CVE-2009-0749 optipng: memory re-allocation flaw in GIF reader
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: unspecifiedCC: opensource, ville.skytta
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-02 19:49:17 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
Local copy of the upstream patch none

Description Tomas Hoger 2009-02-25 16:44:19 UTC
Quoting security updates section of the upstream page:
  All current OptiPNG versions are known to be vulnerable to memory
  reallocation attacks, due to a bug in the GIF image reader. (Many
  thanks to Roy Tam for the report, as well as the fix.) 

  http://optipng.sourceforge.net/

Upstream patch to be included in future upstream versions:
http://prdownloads.sourceforge.net/optipng/optipng-0.6.2.1.diff?download

Comment 1 Tomas Hoger 2009-02-25 16:45:15 UTC
Created attachment 333177 [details]
Local copy of the upstream patch

Taken from:
http://prdownloads.sourceforge.net/optipng/optipng-0.6.2.1.diff?download

Comment 2 Fedora Update System 2009-02-25 18:06:26 UTC
optipng-0.6.2.1-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/optipng-0.6.2.1-1.fc10

Comment 3 Fedora Update System 2009-02-25 18:06:31 UTC
optipng-0.6.2.1-1.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/optipng-0.6.2.1-1.fc9

Comment 4 Fedora Update System 2009-02-26 15:31:54 UTC
optipng-0.6.2.1-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 5 Fedora Update System 2009-02-26 15:32:05 UTC
optipng-0.6.2.1-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 6 Tomas Hoger 2009-03-02 19:49:17 UTC
CVE-2009-0749:

Use-after-free vulnerability in the GIFReadNextExtension function in
lib/pngxtern/gif/gifread.c in OptiPNG 0.6.2 and earlier allows
context-dependent attackers to cause a denial of service (application
crash) via a crafted GIF image that causes the realloc function to
return a new pointer, which triggers memory corruption when the old
pointer is accessed.