<?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>135071</bug_id>
          
          <creation_ts>2006-05-31 13:00 0000</creation_ts>
          <short_desc>games-misc/typespeed: execution of arbitrary code (CVE-2006-1515)</short_desc>
          <delta_ts>2006-06-19 09:19:25 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>
          <bug_file_loc>http://www.debian.org/security/2006/dsa-1084 https://bugs.gentoo.org/show_bug.cgi?id=135071</bug_file_loc>
          <status_whiteboard>B1 [glsa] DerCorny</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dercorny@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>gentoobugs@wonderclown.com</cc>

      

      
          <long_desc isprivate="0">
            <who>dercorny@gentoo.org</who>
            <bug_when>2006-05-31 13:00:43 0000</bug_when>
            <thetext>Package        : typespeed
Vulnerability  : buffer overflow
Problem type   : remote
Debian-specific: no
CVE ID         : CVE-2006-1515

Niko Tyni discovered a buffer overflow in the processing of network
data in typespeed, a game for testing and improving typing speed, which
could lead to the execution of arbitrary code.

We also seem to be vulnerable to a format string bug that could allow local priv escalation: http://www.debian.org/security/2005/dsa-684</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dercorny@gentoo.org</who>
            <bug_when>2006-05-31 13:01:59 0000</bug_when>
            <thetext>games team, please provide fixed ebuilds, thanks</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2006-05-31 18:11:28 0000</bug_when>
            <thetext>package masked.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoobugs@wonderclown.com</who>
            <bug_when>2006-06-03 14:24:09 0000</bug_when>
            <thetext>FYI: Upstream has released version 0.5.0, and according to the changelog there is a security fix (from the Debian team) included.  I haven&apos;t looked at the code, but this might just be fixed by a version bump.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-06-10 06:18:35 0000</bug_when>
            <thetext>0.5.0 in portage</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tcort@gentoo.org</who>
            <bug_when>2006-06-10 08:06:14 0000</bug_when>
            <thetext>amd64 stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2006-06-10 09:03:39 0000</bug_when>
            <thetext>It must be because of the few beers I&apos;ve taken that I was this slow with unix words but..

-- snip --

                    Typespeed v0.5.0

                    Your score was:

                    Rank:               Good
                    Score:              436
                    10MRS:              2177
                    Total CPS:          4.178
                    Correct CPS:        3.629
                    Typo ratio:         13.1%
                    Typorank:           Pencil &lt;- Insult!! :-)

                    Press any key to continue...

-- snip --

Good to go stable on x86.

Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-gentoo-r8 i686)
=================================================================
System uname: 2.6.16-gentoo-r8 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=athlon-xp -O2 -pipe -g&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/lib/X11/xkb&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-march=athlon-xp -O2 -pipe -g&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig collision-protect distlocks metadata-transfer sandbox sfperms splitdebug strict&quot;
GENTOO_MIRRORS=&quot;http://trumpetti.atm.tut.fi/gentoo/&quot;
LANG=&quot;en_US.utf8&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://trumpetti.atm.tut.fi/gentoo-portage&quot;
USE=&quot;x86 3dnow 3dnowext X a52 aac alsa apm avi berkdb bitmap-fonts bzip2 cli crypt dri emboss encode ffmpeg flac fontconfig foomaticdb fortran gdbm gif gstreamer gtk gtk2 id3 imlib ipv6 isdnlog jpeg libg++ libwww mad mikmod mmx mmxext motif mp3 mp4live mpeg mpeg2 musicbrainz ncurses nptl nptlonly ogg opengl oss pam pcre pdflib perl pic player png pppd python quicktime readline reflection sdk sdl session spl sse ssl tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode userlocales vorbis win32codecs xine xml xorg xv xvid zlib elibc_glibc kernel_linux userland_GNU&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Thanks, drac</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tove@gentoo.org</who>
            <bug_when>2006-06-11 06:30:25 0000</bug_when>
            <thetext>In 0.5.0 the highscore file format has changed.

Just touching the files generates corrupt scorefiles.
typespeed --makescores doesn&apos;t work because the wordlists are in a different directory.

I&apos;ve changed in file.c (typespeed-0.5.0-statedir-fix.patch): 
| - if ((n = scandir(&quot;.&quot;, &amp;namelist, iswordl...
| + if ((n = scandir(&quot;GENTOO_WORDLIST_PATH&quot;, &amp;namelist, iswordl...
and was able to create valid scorefiles via typespeed --makescores.


Another thing:
A reinstallation replaces the existing highscore files. Well these files are not really important.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-06-11 06:58:05 0000</bug_when>
            <thetext>fixed the scandir

games_pkg_preinst() in the games.eclass should take care of saving/restoring files across installs/upgrades ... works on my machine</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tove@gentoo.org</who>
            <bug_when>2006-06-11 08:53:57 0000</bug_when>
            <thetext>Stable on x86.
Still &quot;typespeed --makescores&quot; is needed after the first installation and while upgrading the scorefiles aren&apos;t converted.


(In reply to comment #8)

&gt; games_pkg_preinst() in the games.eclass should take care of saving/restoring
&gt; files across installs/upgrades ... works on my machine

Sorry, works here too. Obviously i don&apos;t use games very often.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>frilled@gentoo.org</who>
            <bug_when>2006-06-12 21:54:48 0000</bug_when>
            <thetext>For GLSA: is dsa-684 really valid for us? Since you should have to be in the &quot;games&quot; group to play games anyway, there would be no privilege escalation here (Gentoo is a bit different from the others distros here as far as I can tell)...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2006-06-12 23:29:19 0000</bug_when>
            <thetext>According to CVE-2006-1515 it is remote.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>frilled@gentoo.org</who>
            <bug_when>2006-06-12 23:49:05 0000</bug_when>
            <thetext>I know, but DerCorny mentioned http://www.debian.org/security/2005/dsa-684 which I was refering to.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2006-06-14 11:26:52 0000</bug_when>
            <thetext>ppc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2006-06-19 09:19:25 0000</bug_when>
            <thetext>GLSA 200606-20</thetext>
          </long_desc>
      
    </bug>

</bugzilla>