<?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>59378</bug_id>
          
          <creation_ts>2004-08-04 04:34 0000</creation_ts>
          <short_desc>sys-kernel/*: file offset pointer handling vulnerability</short_desc>
          <delta_ts>2004-08-26 04:49:59 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Security</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://isec.pl/vulnerabilities/isec-0016-procleaks.txt</bug_file_loc>
          <status_whiteboard>A4 [kernel]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>carlo@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>gregkh@gentoo.org</cc>
    
    <cc>hanno@gentoo.org</cc>
    
    <cc>hp-cluster@gentoo.org</cc>

      

      
          <flag name="Assigned_To"
                status="?"
                setter="plasmaroo@gentoo.org"
              requestee="plasmaroo@gentoo.org"
          />
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2004-08-04 04:34:37 0000</bug_when>
            <thetext>There  are two different versions of the file handling API inside recent
Linux kernels: the old 32 bit and the new (LFS)  64  bit  API.  We  have
identified  numerous places, where invalid conversions from 64 bit sized
file offsets to 32 bit ones as well  as  insecure  access  to  the  file
offset member variable take place.

We  have  found that most of the /proc entries (like /proc/version) leak
about one page of unitialized kernel memory  and  can  be  exploited  to
obtain sensitive data.

Tested  and known to be vulnerable kernel versions are all &lt;= 2.4.26 and
&lt;= 2.6.7. All users are encouraged to patch all  vulnerable  systems  as
soon  as appropriate vendor patches are released. There is no hotfix for
this vulnerability.

Exploit included. That&apos;s fun! :(</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-08-04 08:15:08 0000</bug_when>
            <thetext>CAN-2004-0415</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2004-08-04 11:43:40 0000</bug_when>
            <thetext>Patched in grsec-sources-2.4.26.2.0-r7.ebuild with 
http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/linux-2.4.26-CAN-2004-0415.patch

Note to other kernel maintainers. 
This patch is 80k and thus to large for ${FILESDIR} so please use the SRC_URI=</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plasmaroo@gentoo.org</who>
            <bug_when>2004-08-04 12:26:32 0000</bug_when>
            <thetext>Patches for 2.4.{19, 2[0123456]} as well as 2.6.7 are also there at http://dev.gentoo.org/~plasmaroo/patches/kernel/misc/security/...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scox@sig11.org</who>
            <bug_when>2004-08-04 13:01:44 0000</bug_when>
            <thetext>hardened-sources patched (2.4.26-r4).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kang@gentoo.org</who>
            <bug_when>2004-08-04 18:50:55 0000</bug_when>
            <thetext>rsbac-(dev-)sources patched</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plasmaroo@gentoo.org</who>
            <bug_when>2004-08-05 07:17:08 0000</bug_when>
            <thetext>All done, everything should now be patched. The following sources remain, and I&apos;m adding their maintainers to the CC list:

gentoo-dev-sources: Adding gregkh...
hardened-dev-sources: hardened@gentoo.org is already on the list...
hppa-(dev-)sources: Adding GMSoft...
mips-sources: Adding `Kumba...
openmosix-sources: Adding cluster herd...
{ppc, pegasos(dev-)}-sources: Adding dholm...
sparc-sources: Adding Joker...
selinux-sources: Ading pebenito...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>voxus@gentoo.org</who>
            <bug_when>2004-08-05 08:13:41 0000</bug_when>
            <thetext>openmosix-sources patched</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kumba@gentoo.org</who>
            <bug_when>2004-08-05 22:04:37 0000</bug_when>
            <thetext>mips-sources fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gregkh@gentoo.org</who>
            <bug_when>2004-08-06 17:11:51 0000</bug_when>
            <thetext>gentoo-dev-sources fixed in release 2.6.7-r12</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tseng@gentoo.org</who>
            <bug_when>2004-08-06 18:45:02 0000</bug_when>
            <thetext>Fixed in hardened-dev-sources.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dholm@gentoo.org</who>
            <bug_when>2004-08-08 04:13:03 0000</bug_when>
            <thetext>ppc-sources, pegasos-sources, and pegasos-dev-sources have been fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2004-08-08 08:53:08 0000</bug_when>
            <thetext>Removing hardened@ but leaving  pebenito@ on the list for selinux-sources</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gmsoft@gentoo.org</who>
            <bug_when>2004-08-09 16:33:22 0000</bug_when>
            <thetext>Fixed on hppa.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gustavoz@gentoo.org</who>
            <bug_when>2004-08-12 05:48:26 0000</bug_when>
            <thetext>sparc-sources-2.4.27 is out and stable courtesy of Joker, fixed.
Joker: i&apos;m just removing sparc@ from this, feel free to remove yourself.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>joker@gentoo.org</who>
            <bug_when>2004-08-12 09:25:01 0000</bug_when>
            <thetext>sparc-sources-2.4.27 released</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pebenito@gentoo.org</who>
            <bug_when>2004-08-13 20:11:30 0000</bug_when>
            <thetext>selinux-src fixed</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plasmaroo@gentoo.org</who>
            <bug_when>2004-08-26 04:49:59 0000</bug_when>
            <thetext>GLSA 200408-24.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>