Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 93352
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Adir Abraham <adirab@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
10_debian_format-string-vulnerabilities.patch 10_debian_format-string-vulnerabilities.patch patch Thierry Carrez (RETIRED) 2005-06-10 01:40 0000 2.42 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 93352 depends on: Show dependency tree
Bug 93352 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-05-20 11:28 0000
From SecurityFocus.com:

gEdit is prone to a format string vulnerability. Exploitation may occur when the
program is invoked with a filename that includes malicious format specifiers.
This issue could be exploited to corrupt arbitrary regions of memory with
attacker-supplied data, potentially resulting in execution of arbitrary code in
the context of the user running the program. 

An example for an exploit:

bash-2.05b#cat fmtexp.c

#include <stdio.h>


int
main()
{
printf("hah gedit\n");
}


bash-2.05b#gcc -o fk fmtexp.c

bash-2.05b#mv fk AA%n%n%n.c

bash-2.05b#gedit AA%n%n%n.c 

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Jean-François Brunette (RETIRED) 2005-05-20 11:33:03 0000 -------
vulnerable:
GNOME gEdit 2.0.2
GNOME gEdit 2.2.0
GNOME gEdit 2.10.2
------------------

There is the 2.10.2 in portage which is masked

------- Comment #2 From Thierry Carrez (RETIRED) 2005-05-20 14:18:16 0000 -------
Pulling in gnome team. Is there something upstream ion this (very recent) issue
?

------- Comment #3 From Thierry Carrez (RETIRED) 2005-05-24 05:43:24 0000 -------
Just had a talk with Paolo Borelli on irc.gnome.org's #gedit. They know about
it, but thought it was not public yet. I guess they will release a fix soon,
once they fix an apparent mix-up with RedHat security.

------- Comment #4 From Thierry Carrez (RETIRED) 2005-06-01 05:35:32 0000 -------
Upstream is back from GUADEC and should post a new gedit soon.

Note that this requires a user to open a very strange-looking filename with
gedit, and not sure it can easily be automated using email or web browsing.

------- Comment #5 From foser (RETIRED) 2005-06-01 07:50:29 0000 -------
evolution offers the possibility to open attachements with an appropriate
application, so for text files that might be gedit.

------- Comment #6 From foser (RETIRED) 2005-06-08 14:58:48 0000 -------
added gedit-2.10.3 which according to the changelog has the fix for this,
marked
stable x86.

------- Comment #7 From Thierry Carrez (RETIRED) 2005-06-09 09:34:37 0000 -------
foser: many thx

I guess we should also backport the one-line patch to 2.8.x for the other arches
because moving them to 2.10.x might not be an easy option ?

I'll try to isolate the patch, Paolo Borelli told me it should be quite simple
to backport.

------- Comment #8 From Thierry Carrez (RETIRED) 2005-06-09 10:26:56 0000 -------
Hmm, not that simple. The patch is in 4 different files and the file names
changed ffrom 2.8 to 2.10 apparently...

http://cvs.gnome.org/viewcvs/gedit/gedit/ChangeLog?r1=1.764&r2=1.765&sortby=date

foser: what are our options ? I guess gedit-2.10 can't run on gnome 2.8 ?

------- Comment #9 From Thierry Carrez (RETIRED) 2005-06-10 01:40:28 0000 -------
Created an attachment (id=60972) [details]
10_debian_format-string-vulnerabilities.patch

Patch from Ubuntu's release

------- Comment #10 From Thierry Carrez (RETIRED) 2005-06-10 01:41:41 0000 -------
foser: the above patch applies cleanly to 2.8.3

To make it easier for other arches than x86, could you bump gedit-2.8.3 with
that patch ?

------- Comment #11 From foser (RETIRED) 2005-06-10 07:27:56 0000 -------
I didn't apply it to 2.8 because 2.10.3 doesn't need any of the 2.10 libs
besides gtksourceview which is a safe upgrade as well. So my suggestion is to
just have all arches update to 2.10.3 gedit, which is long overdue anyway.

But if you really want it in 2.8 anyway, just let me know.

------- Comment #12 From Thierry Carrez (RETIRED) 2005-06-10 07:35:19 0000 -------
Arches: please test and mark stable, see above comment.

------- Comment #13 From Michael Hanselmann (hansmi) (RETIRED) 2005-06-10 12:14:05 0000 -------
Stable on ppc.

------- Comment #14 From Simon Stelling (RETIRED) 2005-06-10 12:52:38 0000 -------
stable on amd64

------- Comment #15 From SpanKY 2005-06-10 23:35:51 0000 -------
hppa/ia64 stable

------- Comment #16 From Markus Rothe 2005-06-11 03:25:03 0000 -------
stable on ppc64 

------- Comment #17 From Bryan Østergaard (RETIRED) 2005-06-11 03:35:05 0000 -------
Alpha stable.

------- Comment #18 From Thierry Carrez (RETIRED) 2005-06-11 11:01:52 0000 -------
GLSA 200506-09
mips: remember to mark stable to benefit from GLSA

------- Comment #19 From Hardave Riar (RETIRED) 2005-07-02 13:45:21 0000 -------
Stable on mips.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug