Bug 238420 - (CVE-2007-2356) CVE-2007-2356 Stack overflow in gimp's sunras plugin
CVE-2007-2356 Stack overflow in gimp's sunras plugin
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Nils Philippsen
David Lawrence
: Security
: 238684 (view as bug list)
Depends On:
Blocks: 238684
  Show dependency treegraph
Reported: 2007-04-30 08:32 EDT by Lubomir Kundrak
Modified: 2018-08-15 18:28 EDT (History)
0 users

See Also:
Fixed In Version: RHSA-2007-0343
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-05-21 09:02:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Malformed Sun RAS file, that overflows stack in gimp's sunras plugin (3.91 KB, image/x-cmu-raster)
2007-04-30 08:32 EDT, Lubomir Kundrak
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2007:0343 normal SHIPPED_LIVE Moderate: gimp security update 2008-01-07 14:54:33 EST

  None (edit)
Description Lubomir Kundrak 2007-04-30 08:32:40 EDT
Description of problem:

There is a possible stack-based buffer overrun in function
plug-ins/common/sunras.c:set_color_table() that can be exploited by an
attacker to trigger execution of arbitrary code via crafted Sun RAS file.

Version-Release number of selected component (if applicable):

        Affects: RHEL2.1
        Affects: RHEL3
        Affects: RHEL4
        Affects: RHEL5
        Affects: FC5
        Affects: FC6

Steps to Reproduce:

Either use the program referred to in URL to generate a POC, or use one
that is attached to this bug.

Additional info:

Though I have reproduced a crash on all supported systems, as enumerated
above, for some unknown reason gdb was detaching from the plugin run with
GIMP_PLUGIN_DEBUG=sunras, so I was unable to do a depth-in investigation.
I deduce, that it is a stack overflow because core dumps showed evidence
of corrupt stack, with ssp glibc detects a stack smashing, and Secunia
advisory also states the same:

Comment 1 Lubomir Kundrak 2007-04-30 08:32:40 EDT
Created attachment 153788 [details]
Malformed Sun RAS file, that overflows stack in gimp's sunras plugin
Comment 2 Nils Philippsen 2007-04-30 12:02:43 EDT
Upstream already has a fix by Sven Neumann, I've extracted that from the SVN
repo and I'm just building the package (with two minor, trivial packaging fixes)
locally to see that it works out.
Comment 6 Lubomir Kundrak 2007-05-02 06:03:58 EDT
*** Bug 238684 has been marked as a duplicate of this bug. ***
Comment 19 Red Hat Bugzilla 2007-05-21 09:02:51 EDT
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.


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