First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 78118
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
CAN-2005-0076.patch CAN-2005-0076.patch patch Sune Kloppenborg Jeppesen 2005-01-15 11:10 0000 984 bytes Details | Diff
patch xview-3.2-r1.ebuild.patch patch Gustavo Felisberto 2005-02-16 15:39 0000 665 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 78118 depends on: Show dependency tree
Bug 78118 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-01-15 11:08 0000
Erik Sj

------- Comment #1 From Sune Kloppenborg Jeppesen 2005-01-15 11:08:43 0000 -------
Erik Sjölund discovered that programs linked against xview are
vulnerable to a number of buffer overflows in the XView library.  When
the overflow is triggered in a program which is installed setuser root
a malicious user could perhaps execute arbitrary code as privileged
user.

These commands will create a segmentation fault:

$ ln -s  /usr/X11R6/bin/xvmount  /tmp/`perl -e 'print "A" x 200'`
$  /tmp/`perl -e 'print "A" x 200'`  -Wt

The overflowed variable seems to be sufficiently far away from the
stack frame, but I'm not totally sure that it is impossible to
overwrite it as well.  I'm attaching a proposed patch.

Please let me know if you need coordination for this bug.
This package is probably part of most other distributions as well.

------- Comment #2 From Sune Kloppenborg Jeppesen 2005-01-15 11:10:31 0000 -------
Created an attachment (id=48564) [details]
CAN-2005-0076.patch

------- Comment #3 From solar 2005-01-15 11:33:01 0000 -------
My system lacks the /usr/X11R6/bin/xvmount but does have xview so I'm not sure
if we are effected or not. Do you have the util?

------- Comment #4 From solar 2005-01-15 11:48:27 0000 -------
n/m found it but it fails to even compile for me in the first place so can't
test.

pkg does not seem to be owned by any official herd or have a clear maintainer
listed in a metadata.xml. The last ebuild seems to be initially provided by
genstef. adding to CC:

genstef please test but do not put this patch into CVS until a disclosure date
is reached

------- Comment #5 From Stefan Schweizer 2005-01-15 12:14:44 0000 -------
I think we will just update the debin patch here as soon as they commit it, I
suppose they also know about it?

I think I am not the best man for testing it, I do not even use xview, so i
remove myself from CC:

I tagree that we should not disclose the details of this bug for now.

------- Comment #6 From Thierry Carrez (RETIRED) 2005-01-16 11:34:00 0000 -------
Not sure we should accept this one. If we don't have xvmount, or any other SUID
root linked to xview, then we should drop this as INVALID.

------- Comment #7 From Thierry Carrez (RETIRED) 2005-01-17 05:38:29 0000 -------
We don't have xvmount (or I can't find it). Depending on xview we just have :
    media-sound/workman
    app-editors/jove (if USE=X)

None of this is SUID root or SUID whatever. Closing this bug as INVALID, even if it should still be fixed when the Debian patch will be updated.

Please reopen if you disagree.

------- Comment #8 From Luke Macken (RETIRED) 2005-02-10 08:11:38 0000 -------
*** Bug 81505 has been marked as a duplicate of this bug. ***

------- Comment #9 From Matthias Geerdsen 2005-02-14 01:15:16 0000 -------
(re)opening since debian issued http://www.debian.org/security/2005/dsa-672
so a new patchset is available now

Guess we should apply that, eventhough we are not directly affected


------- Comment #10 From Gustavo Felisberto 2005-02-16 15:16:53 0000 -------
I actualy use xview all the time, i would not like to see this dead. I've been
watching the debian patch and the it seems that most of it is about Alpha
compatibility, so if i'm to try and solve this do you guys think we should use
the debian patch or just the one here?

------- Comment #11 From Gustavo Felisberto 2005-02-16 15:39:09 0000 -------
Created an attachment (id=51380) [details]
xview-3.2-r1.ebuild.patch

Well after looking at the ebuild it seems we already use the debian patches :)
So here goes a patch to our ebuild, it simply changes the patchset. It builds
ok and works on x86.

------- Comment #12 From Thierry Carrez (RETIRED) 2005-02-17 01:21:12 0000 -------
Humpback: please commit your fix incvs, as it seems you're the only one to use
xview anyway :)

------- Comment #13 From Gustavo Felisberto 2005-02-17 08:36:07 0000 -------
-r3 is in portage marked x86, there was a problem with -r2 that it would not
build with recent versions of xorg.
Credits must go to seemant for finding the new home for the package.

------- Comment #14 From Thierry Carrez (RETIRED) 2005-02-17 08:46:38 0000 -------
alpha, hppa: please test and mark stable. Will be closed without a GLSA since
we don't ship SUID xview-powered apps.

------- Comment #15 From Bryan Østergaard (RETIRED) 2005-02-19 10:28:04 0000 -------
Alpha needs som PIC love before it can be marked stable.

Here's the part of emerge log with the errors, just in case anybody else wants to take a poke at this bug :)

a - wmgr_menu.o
a - wmgr_decor.o
make[4]: Leaving directory `/var/tmp/portage/xview-3.2-r3/work/xview-3.2p1.4-18c/lib/libxview/wmgr'
rm -f libxview.so.3.2.4~
(cd ./xshared; alpha-unknown-linux-gnu-gcc -shared -Wl,-soname -Wl,`basename libxview.so.3.2.4 | sed 's/\(\.[0-9]\).*$/\1/'` -o
libxview.so.3.2.4~ ?*.o -L/usr/X11R6/lib   -lXext  -lX11 -lutil -L../../libolgx -lolgx -lc)
/usr/lib/gcc-lib/alpha-unknown-linux-gnu/3.3.2/../../../../alpha-unknown-linux-gnu/bin/ld: csr_change.o: gp-relative relocation
against dynamic symbol ttysw_gray17_pr
/usr/lib/gcc-lib/alpha-unknown-linux-gnu/3.3.2/../../../../alpha-unknown-linux-gnu/bin/ld: csr_change.o: gp-relative relocation
against dynamic symbol ttysw_gray17_pr
collect2: ld returned 1 exit status
make[3]: *** [libxview.so.3.2.4] Error 1
make[3]: Leaving directory `/var/tmp/portage/xview-3.2-r3/work/xview-3.2p1.4-18c/lib/libxview'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/var/tmp/portage/xview-3.2-r3/work/xview-3.2p1.4-18c/lib'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/xview-3.2-r3/work/xview-3.2p1.4-18c'
make: *** [World] Error 2

------- Comment #16 From Matthias Geerdsen 2005-02-23 12:20:55 0000 -------
any progress on alpha yet?

------- Comment #17 From Thierry Carrez (RETIRED) 2005-03-02 07:06:40 0000 -------
Contacted kloeri -- he will try to get this one done soon.

------- Comment #18 From Sune Kloppenborg Jeppesen 2005-03-10 02:34:45 0000 -------
kloeri any news on this one yet?

------- Comment #19 From Bryan Østergaard (RETIRED) 2005-04-01 06:33:12 0000 -------
Finally gave in and -alpha'ed the xview ebuilds.

------- Comment #20 From Thierry Carrez (RETIRED) 2005-04-01 07:47:21 0000 -------
yeepee.

------- Comment #21 From Michael Hanselmann (hansmi) (RETIRED) 2005-06-27 14:16:06 0000 -------
GMsoft and KillerFox haven't been able to get xview working on hppa. I propose
that we'll remove the hppa keyword from all ebuilds until it works again.

------- Comment #22 From Thierry Carrez (RETIRED) 2005-06-28 01:08:37 0000 -------
No problem for me.

------- Comment #23 From Michael Hanselmann (hansmi) (RETIRED) 2005-06-28 02:27:50 0000 -------
Removed from hppa.

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