Bug 537370 (CVE-2009-3909)

Summary: CVE-2009-3909 Gimp: Integer overflow in the PSD image file plugin
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: nphilipp, security-response-team
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: 2017-06-01 12:29:34 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: 518003, 537807, 537808, 714126, 714127, 714128    
Bug Blocks: 714114    
Attachments:
Description Flags
gimp-2.2.13-psd-hardening.patch none

Description Jan Lieskovsky 2009-11-13 11:07:32 UTC
Stefan Cornelius of Secunia Research reported an integer overflow,
leading to heap-based buffer overflow, present in Gimp's Adobe's
Photoshop (PSD) image file plugin. A remote attacker could
provide a specially-crafted PSD image file, which once opened
by a local, unsuspecting user would lead to denial of service
(GIMP PSD plugin crash). 

Upstream patch:
---------------
http://git.gnome.org/cgit/gimp/commit/?h=gimp-2-6&id=88eccea84aa375197cc04a2a0e2e29debb56bfa5

The another PSD related commit might be needed too though:
http://git.gnome.org/cgit/gimp/commit/?h=gimp-2-6&id=687ec47914ec08d6e460918cb641c196d80140a3

Acknowledgements:

Red Hat would like to thank Stefan Cornelius of Secunia Research for reporting this flaw.

Comment 1 Jan Lieskovsky 2009-11-13 11:11:39 UTC
This issue affects the versions of the gimp package, as shipped
with Red Hat Enterprise Linux 4, and 5.

This issue did NOT affect the version of the gimp package, as
shipped with Red Hat Enterprise Linux 6.

This issue did NOT affect the versions of the gimp package, as shipped
with Fedora release of 13 and 14.

Comment 5 Fedora Update System 2009-11-17 13:23:10 UTC
gimp-2.6.7-3.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/gimp-2.6.7-3.fc11

Comment 6 Fedora Update System 2009-11-17 13:23:20 UTC
gimp-2.6.7-3.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/gimp-2.6.7-3.fc12

Comment 7 Jan Lieskovsky 2009-11-17 16:14:54 UTC
The Gimp package update is scheduled for Fedora 10 release too, but is
currently blocked by the following bug 518003.

  Once this blocker is solved, The Gimp in Fedora 10 will be updated.

See also: 
  https://bugzilla.redhat.com/show_bug.cgi?id=518003#c2

Comment 11 Nils Philippsen 2009-11-30 16:59:36 UTC
Created attachment 374811 [details]
gimp-2.2.13-psd-hardening.patch

This is the patch I plan to apply to RHEL-5.

Comment 13 Jan Lieskovsky 2011-05-06 12:53:13 UTC
Statement:

Vulnerable. This issue affects gimp packages in Red Hat Enterprise Linux 4 and 5. This issue does not affect gimp package in Red Hat Enterprise Linux 6.

Comment 16 Nils Philippsen 2011-06-29 08:20:42 UTC
Comment on attachment 374811 [details]
gimp-2.2.13-psd-hardening.patch

This doesn't fix the problem completely.

Comment 19 errata-xmlrpc 2012-08-20 13:44:56 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2012:1181 https://rhn.redhat.com/errata/RHSA-2012-1181.html