Bug 879302 (CVE-2012-5576)

Summary: CVE-2012-5576 gimp (XWD plug-in): Stack-based buffer overflow when loading XWD file
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
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20121102,reported=20121121,source=oss-security,cvss2=6.8/AV:N/AC:M/Au:N/C:P/I:P/A:P,rhel-5/gimp=affected,rhel-6/gimp=affected,fedora-all/gimp=affected,cwe=CWE-121[auto]
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-14 14:50:01 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On: 879306, 910362, 910364, 910366, 910367    
Bug Blocks: 879318    
Attachments:
Description Flags
Local copy of the reproducer image none

Description Jan Lieskovsky 2012-11-22 09:58:18 EST
A stack-based buffer overflow flaw was found in the way GIMP, the GNU Image Manipulation Program, performed loading of certain X Window System (XWD) image dumps. A remote attacker could provide a specially-crafted XWD format image file that, when processed, would lead to gimp XWD plug-in crash or, potentially, arbitrary code execution with the privileges of the user running the gimp executable.

References:
[1] http://www.openwall.com/lists/oss-security/2012/11/21/2

Upstream bug report:
[2] https://bugzilla.gnome.org/show_bug.cgi?id=687392

Relevant patch:
[3] http://git.gnome.org/browse/gimp/commit/?id=0b35f6a082a0b3c372c568ea6bde39a4796acde2

Reproducer:
[4] https://bugzilla.gnome.org/show_bug.cgi?id=687392#c1
Comment 1 Jan Lieskovsky 2012-11-22 10:03:10 EST
This issue affects the versions of the gimp package, as shipped with Red Hat Enterprise Linux 5 and 6.

--

This issue affects the versions of the gimp package, as shipped with Fedora release of 16 and 17. Please schedule an update.
Comment 2 Jan Lieskovsky 2012-11-22 10:04:32 EST
Created gimp tracking bugs for this issue

Affects: fedora-all [bug 879306]
Comment 3 Jan Lieskovsky 2012-11-22 10:28:44 EST
Created attachment 649873 [details]
Local copy of the reproducer image
Comment 4 Huzaifa S. Sidhpurwala 2012-11-27 00:57:13 EST
This issue has been assigned CVE-2012-5576 via:
http://www.openwall.com/lists/oss-security/2012/11/27/1
Comment 7 Fedora Update System 2013-02-21 00:37:22 EST
gimp-2.8.4-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 8 errata-xmlrpc 2013-12-03 11:51:52 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5
  Red Hat Enterprise Linux 6

Via RHSA-2013:1778 https://rhn.redhat.com/errata/RHSA-2013-1778.html