<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>68712</bug_id>
          
          <creation_ts>2004-10-24 09:15 0000</creation_ts>
          <short_desc>app-sci/tilp-6.74 crashes with segmentation fault when run by a normal user</short_desc>
          <delta_ts>2009-07-13 22:32:56 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Vulnerabilities</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <status_whiteboard>B3 [noglsa] jaervosz</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>public@mroot.net</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>sci@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>public@mroot.net</who>
            <bug_when>2004-10-24 09:15:15 0000</bug_when>
            <thetext>When invoking tilp as a normal user (maybe it is important that it is a &quot;localized user&quot; [LANG=&quot;de_DE@euro&quot;]) tilp crashes with a segmentation fault:

--- tilp ---
martin at wechner ~ $ LANG=&quot;en&quot; tilp
tilp    : TiLP - Version 6.74, (C) 1999-2004 Romain Lievin &lt;roms@tilp.info&gt;
Speicherzugriffsfehler
---

&quot;Speicherzugriffsfehler&quot; is Segmentation Fault in English ;)

This does not happen when tilp is called by root (not localized). Then everything works fine.

I&apos;ve also re-emerged tilp and its dependencies libti*

Reproducible: Always
Steps to Reproduce:
1. emerge =app-sci/tilp-6.74
2. su - &lt;normal_user&gt;
3. tilp

Actual Results:  
Segfaulted

Expected Results:  
Should not

# emerge info
Portage 2.0.51_rc10 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20041006-r0,
2.6.9-ck1 i686)
=================================================================
System uname: 2.6.9-ck1 i686 AMD Duron(tm)
Gentoo Base System version 1.5.3
distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.19,sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=i686 -O3 -pipe -mmmx -msse -m3dnow -mfpmath=sse -ftracer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=i686 -O3 -pipe -mmmx -msse -m3dnow -mfpmath=sse -ftracer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache distlocks sandbox&quot;
GENTOO_MIRRORS=&quot;ftp://mirror.switch.ch/mirror/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;3dnow 3dnowex X aalib acl acpi acpi4linux alsa apache2 apm avi berkdb
bitmap-fonts blender-game bonobo bootsplash bzlib cdparanoia cdr clanVoice crypt
cups dba dedicated dga divx4linux doc dvd encode escreen f77 fbcon foomaticdb
freetype gd gdbm gif gnome gpm gtk gtk2 imagemagick imlib java jpeg libg++
libwww mad mailwrapper mbox mikmod mmx mmx2 motif mpeg mysql ncurses net nls
oggvorbis opengl oss pam pdflib perl png python quicktime radeon readline rtc
ruby samba sdl session shared silverxp slang sockets spell spl sse ssl
stencil-buffer svga tcltk tcpd tetex tokenizer truetype usb videos wxwindows x86
xchattext xfs xml xml2 xmms xpm xprint xsl xv zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>public@mroot.net</who>
            <bug_when>2004-10-26 13:16:05 0000</bug_when>
            <thetext>Since bug #40263 had to do something with locales and crashes I tried

$ LC_ALL=C tilp

but I still get the seg fault when run under a &quot;normal&quot; user.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2004-12-01 00:31:29 0000</bug_when>
            <thetext>Is there perhaps some configuration file saved for this user tilp ties to read? ~/.tilp perhaps? Make a backup copy of it and delete it, please.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>public@mroot.net</who>
            <bug_when>2004-12-01 05:32:22 0000</bug_when>
            <thetext>There was a ~/.tilp but deleting that file did not solve the problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2004-12-01 06:28:04 0000</bug_when>
            <thetext>Please attach (not paste) an strace log:
strace -o log -f tilp</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2004-12-01 06:30:18 0000</bug_when>
            <thetext>Oh, and please check if /tmp/tilp.log exists.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>public@mroot.net</who>
            <bug_when>2004-12-01 12:58:47 0000</bug_when>
            <thetext>/tmp/tilp.log existed and you won&apos;t believe it: deleting it solved this for me! I cannot say why it solved it, however, since I did not backup it.

However I&apos;m getting now a new error when using tilp: Starting tilp works, calculator (TI-Voyage 200) is connected ready, SilverLink is detected correctly, but tilp reports when clicking &quot;Ready&quot; or any other operation

&quot;Msg: Invalid host ID.
Cause: TiLP received an unexpected Machine ID, probably due to a transmission error.&quot;

With Windows and the tools provided by TI it works perfectly instead.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2004-12-01 23:19:58 0000</bug_when>
            <thetext>Having a look at the logging source I noticed that it simply writes to /tmp/tilp.log without deleting it before or checking if it is a symlink. So this could be used by a malicious user to overwrite any file another person running tilp has access to. Masking this package and assiging to security. I think a warning should be issued to our users. I&apos;ll put a message on the tilp sourceforge bug tracker.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2004-12-01 23:38:50 0000</bug_when>
            <thetext>Update: This has been fixed in the latest release which we don&apos;t have yet. Working on it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2004-12-02 00:48:58 0000</bug_when>
            <thetext>Would be nice if ppc could move 6.76 into stable ASAP.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pylon@gentoo.org</who>
            <bug_when>2004-12-02 02:17:17 0000</bug_when>
            <thetext>Stable on ppc.  It does not crash, although I didn&apos;t tested it with my TI92+ attached.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2004-12-03 06:53:41 0000</bug_when>
            <thetext>Maybe a GLSA would be nice now?
The only remaining version in portage is 6.76 which does not have this tmpfile problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-12-03 07:34:09 0000</bug_when>
            <thetext>Security please vote for GLSA need.
Pro : We issued GLSAs for other recent tmpfile vulns
Con : This is a misc package and I don&apos;t think it&apos;s run by the root user very often.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lewk@gentoo.org</who>
            <bug_when>2004-12-03 08:42:14 0000</bug_when>
            <thetext>For the sake of consistency with tempfile vulns, I vote yes.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>public@mroot.net</who>
            <bug_when>2004-12-03 14:27:03 0000</bug_when>
            <thetext>I tried to figure out why I keep getting

&quot;Msg: Invalid host ID.&quot; messages.

Even getting them with 

And I think I found it: /dev/tiusb0 and maybe other necessary devices are not created when the cable is plugged in! I&apos;m getting the messages:

Dec  3 23:21:48 wechner usb 2-2: new full speed USB device using address 4
Dec  3 23:21:48 wechner drivers/usb/misc/tiglusb.c: firmware revision 2.08

so it is loaded, but as I said _no_ device nodes are created!

I&apos;m using ck-sources-2.6.9-r3</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2004-12-06 12:44:42 0000</bug_when>
            <thetext>Patrick will you look into this please?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2004-12-07 02:10:35 0000</bug_when>
            <thetext>Please correct me if I am wrong, but isn&apos;t that a kernel driver problem? I don&apos;t think tilp should create any device nodes, should it?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-12-07 02:41:50 0000</bug_when>
            <thetext>Yes, this looks like a kernel/kernelconfig/udev/devfs issue, unrelated to tilp. You plug the thing in, it should create the devices. I suppose tilp has nothing to do about it.

We aren&apos;t trying to solve all tilp-related issues here, just testing that there is no regression compared to the previous stable version. So unless your tilp device creation was okay with the previous version and now is broken, please file another bug.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2004-12-07 03:03:57 0000</bug_when>
            <thetext>Thx.

Security please cast your vote on a GLSA for this. I tend to say no.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>public@mroot.net</who>
            <bug_when>2004-12-07 05:31:09 0000</bug_when>
            <thetext>Comment #18: You&apos;re right. It followed the original bug. Shall I open a new bug for that issue?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2004-12-07 06:00:27 0000</bug_when>
            <thetext>Martin if you have the same problem with the previous version file a new bug. Otherwise it seems like a regression and should be handled on this bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>public@mroot.net</who>
            <bug_when>2004-12-07 14:30:35 0000</bug_when>
            <thetext>Had the same problem with the old version.

New bug #73719

Thanks for that hint.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2004-12-07 22:14:15 0000</bug_when>
            <thetext>Security please cast your vote on this one.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-12-08 01:05:54 0000</bug_when>
            <thetext>I vote no -- package is really not the kind you would run as root on a multiuser setup (or is it ?). Please reopen if you happen to disagree.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>