First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 172752
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sune Kloppenborg Jeppesen <jaervosz@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 172752 depends on: Show dependency tree
Bug 172752 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: 2007-03-30 06:30 0000
A bug recently showed up in the Debian BTS that describes an integer overflow
in
X's XGetPixel() function

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=414045

The report incorrectly states it is a buffer overflow.  The bug also has a
proposed patch and reproducer for this flaw.

The issue is that the XInitImage() function allows the caller to supply silly
values, which can cause several integer overflow.  A call to XGetPixel() can
also result in integer overflows.  While one would expect the calling
application to sanitize the data passed to XInitImage(), the library should
also
be smart enough to prevent the caller from giving it bad data.

------- Comment #1 From Sune Kloppenborg Jeppesen 2007-03-30 06:32:25 0000 -------
x11 please advise.

------- Comment #2 From Donnie Berkholz 2007-03-30 07:39:41 0000 -------
Quoting from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=414045;msg=85 --
in particular, see the end of this quote for security relevance.

"For both the broken.xwd and broken2.xwd files in bug #414045,
the offending operation is in libx11-1.0.3/src/ImUtil.c:505
   dst++ = *src++;
and in fact it's the src pointer that is out of range.
This suggests it's "only" a DOS problem, or at worst an
information leak problem, but no direct exploit is possible."

------- Comment #3 From Sune Kloppenborg Jeppesen 2007-03-30 07:50:42 0000 -------
I'm not sure of the severity but RH states integer overflow and the bug with
the patch is restricted
(https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=231694)

Should we just put it as upstream until more information becomes available (ie.
CVE id)?

------- Comment #4 From Donnie Berkholz 2007-03-30 17:08:13 0000 -------
(In reply to comment #3)
> Should we just put it as upstream until more information becomes available (ie.
> CVE id)?

Sure, if you want. But there seems to be a CVE ID in the subject already..

------- Comment #5 From Sune Kloppenborg Jeppesen 2007-03-30 19:52:41 0000 -------
Donnie if you're eager to commit just go ahead, I was just being cautious :)

Though CVE ids can be both rejected and contested, so the id in itself doesn't
guarantee anything other than giving a common naming system across vendors.

------- Comment #6 From Sune Kloppenborg Jeppesen 2007-04-04 06:39:42 0000 -------
Redhat issued an errata here (this also covers the issues from bug #172575):

http://rhn.redhat.com/errata/RHSA-2007-0125.html

------- Comment #7 From Donnie Berkholz 2007-04-05 07:02:01 0000 -------
Arches need to stable x11-libs/libX11-1.0.3-r2 or libX11-1.1.1-r1, at their
option.

------- Comment #8 From DrChandra the Gentoo Person 2007-04-05 19:26:42 0000 -------
libX11-1.1.1-r1.ebuild was recently introduced into ~x86 to do nothing
different but additionally apply this patch:

xorg-libX11-1.1.1-xinitimage.diff

The cvs comment for the change refers to the number of this bug.

I had to downdrade to libX11-1.1.1 because this change causes opera
to segfault. I recommend *not* stablizing this change.

------- Comment #9 From Donnie Berkholz 2007-04-05 22:50:15 0000 -------
Perhaps this should block on bug #173505.

------- Comment #10 From Sune Kloppenborg Jeppesen 2007-04-11 10:28:58 0000 -------
As far as I can see from that bug it's a bug in the client application and not
in the patch itself so I suppose we can start marking this one stable. Donnie
what do you say?

------- Comment #11 From Donnie Berkholz 2007-04-11 18:15:12 0000 -------
(In reply to comment #10)
> As far as I can see from that bug it's a bug in the client application and not
> in the patch itself so I suppose we can start marking this one stable. Donnie
> what do you say?

Agreed.

------- Comment #12 From Sune Kloppenborg Jeppesen 2007-04-11 19:39:49 0000 -------
Arches please test and mark stable. Target keywords are:

libX11-1.1.1-r1.ebuild:KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64
s390 sh sparc x86 ~x86-fbsd"

------- Comment #13 From Markus Rothe 2007-04-11 20:22:51 0000 -------
stable on ppc64:

dev-libs/libpthread-stubs-0.1
x11-proto/xcb-proto-1.0
x11-libs/libxcb-1.0
x11-libs/libX11-1.1.1-r1

------- Comment #14 From Peter Weller 2007-04-11 20:34:47 0000 -------
ditto on amd64

------- Comment #15 From Raúl Porcel 2007-04-11 20:40:08 0000 -------
stable on ia64:

x11-proto/xcb-proto-1.0
x11-libs/libxcb-1.0

stable on x86 + ia64:
x11-libs/libX11-1.1.1-r1

------- Comment #16 From Jeroen Roovers 2007-04-11 21:06:17 0000 -------
Stable for HPPA.

------- Comment #17 From Gustavo Zacarias (RETIRED) 2007-04-12 19:46:41 0000 -------
sparc stable.

------- Comment #18 From Tobias Scherbaum 2007-04-13 15:43:05 0000 -------
ppc stable

------- Comment #19 From Jose Luis Rivero (yoswink) 2007-04-18 10:52:28 0000 -------
alpha done

------- Comment #20 From Raphael Marichez 2007-05-05 23:11:34 0000 -------
GLSA 200705-06, thanks everybody

------- Comment #21 From Joshua Kinard 2007-11-20 05:35:26 0000 -------
1.1.2 is stable for us (at some point)

First Last Prev Next    No search results available      Search page      Enter new bug