<?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>74070</bug_id>
          
          <creation_ts>2004-12-11 00:47 0000</creation_ts>
          <short_desc>Remote DoS in 2.6 nfsacl extension</short_desc>
          <delta_ts>2005-07-21 12:18:20 0000</delta_ts>
          
          
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Kernel</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          <bug_file_loc>http://acl.bestbits.at/pipermail/acl-devel/2005-January/001816.html</bug_file_loc>
          <status_whiteboard>[2.6 maintainerPatching]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jaervosz@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>dholm@gentoo.org</cc>
    
    <cc>gmsoft@gentoo.org</cc>
    
    <cc>kang@gentoo.org</cc>
    
    <cc>kern-sec@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2004-12-11 00:47:50 0000</bug_when>
            <thetext>the sunrpc-multiple-programs patch, which is part of the nfsacl protocol
extension for 2.6 kernels, contains a bug that crashes the kernel nfs
deamon with a NULL pointer access when a client requests an unknown
program number. The incremental fix from Olaf Kirch (thanks) is as
follows:


Index: linux-2.6.5/net/sunrpc/svc.c
===================================================================
--- linux-2.6.5.orig/net/sunrpc/svc.c   2004-11-19 11:22:19.000000000 +0100
+++ linux-2.6.5/net/sunrpc/svc.c        2004-12-10 15:48:40.000000000 +0100
@@ -450,7 +450,7 @@ err_bad_auth:
 err_bad_prog:
 #ifdef RPC_PARANOIA
        if (prog != 100227 || serv-&gt;sv_program-&gt;pg_prog != 100003)
-               printk(&quot;svc: unknown program %d (me %d)\n&quot;, prog, progp-&gt;pg_prog);
+               printk(&quot;svc: unknown program %d (me %d)\n&quot;, prog, serv-&gt;sv_program-&gt;pg_prog);
        /* else it is just a Solaris client seeing if ACLs are supported */
 #endif
        serv-&gt;sv_stats-&gt;rpcbadfmt++;


The version found at http://acl.bestbits.at/nfsacl/2.6.9-rc2/ includes
this fix. I will announce this on acl-devel@bestbits.at next week.

The 2.4 kernel patches are not affected.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2005-01-13 04:21:37 0000</bug_when>
            <thetext>Now public</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tocharian@gentoo.org</who>
            <bug_when>2005-01-14 01:10:25 0000</bug_when>
            <thetext>Fixed in ~x86 hardened-dev-sources-2.6.10-r2</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2005-01-19 03:43:46 0000</bug_when>
            <thetext>gentoo-dev-sources is done
the patch is here: http://dev.gentoo.org/~dsd/gentoo-dev-sources/release-10.07/dist/1150_sunrpc-nfsacl.patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2005-03-16 03:16:44 0000</bug_when>
            <thetext>Mass-Ccing kern-sec@gentoo.org to make sure Kernel Security guys know about all
of these...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plasmaroo@gentoo.org</who>
            <bug_when>2005-04-07 05:15:48 0000</bug_when>
            <thetext>Created an attachment (id=55551)
Patch
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plasmaroo@gentoo.org</who>
            <bug_when>2005-04-07 05:17:19 0000</bug_when>
            <thetext>Following sources still need patching:

hppa-sources: Adding GMSoft...
mips-sources: Adding Kumba...
pegasos-sources: Adding dholm...
rsbac-sources: Adding kang...
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kang@gentoo.org</who>
            <bug_when>2005-04-08 02:37:55 0000</bug_when>
            <thetext>rsbac-sources fixed in rsbac-sources-2.6.11-r2</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kumba@gentoo.org</who>
            <bug_when>2005-04-23 22:21:57 0000</bug_when>
            <thetext>mips-sources fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2005-06-22 06:53:49 0000</bug_when>
            <thetext>This patch can be dropped. It only applies to the multiple programs (Support
multiple program numbers on one RPC transport) functionality provided by the
nfsacl extention patches not yet merged upstream. Normal sunrpc users are not
affected.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plasmaroo@gentoo.org</who>
            <bug_when>2005-07-21 12:18:20 0000</bug_when>
            <thetext>Closing bug as per comment #9.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>55551</attachid>
            <date>2005-04-07 05:15 0000</date>
            <desc>Patch</desc>
            <filename>74070.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGxpbnV4LTIuNi4xMC9uZXQvc3VucnBjL3N2Yy5jLm9yaWcJMjAwNS0wMS0xOCAwMzoxODow
OC4yMzUzNjI5OTIgKzAwMDAKKysrIGxpbnV4LTIuNi4xMC9uZXQvc3VucnBjL3N2Yy5jCTIwMDUt
MDEtMTggMDM6MTg6MjguNTMyMjc3MzkyICswMDAwCkBAIC00NDYsNyArNDQ2LDcgQEAgZXJyX2Jh
ZF9hdXRoOgogZXJyX2JhZF9wcm9nOgogI2lmZGVmIFJQQ19QQVJBTk9JQQogCWlmIChwcm9nICE9
IDEwMDIyNyB8fCBwcm9ncC0+cGdfcHJvZyAhPSAxMDAwMDMpCi0JCXByaW50aygic3ZjOiB1bmtu
b3duIHByb2dyYW0gJWQgKG1lICVkKVxuIiwgcHJvZywgcHJvZ3AtPnBnX3Byb2cpOworCQlwcmlu
dGsoInN2YzogdW5rbm93biBwcm9ncmFtICVkIChtZSAlZClcbiIsIHByb2csIHNlcnYtPnN2X3By
b2dyYW0tPnBnX3Byb2cpOwogCS8qIGVsc2UgaXQgaXMganVzdCBhIFNvbGFyaXMgY2xpZW50IHNl
ZWluZyBpZiBBQ0xzIGFyZSBzdXBwb3J0ZWQgKi8KICNlbmRpZgogCXNlcnYtPnN2X3N0YXRzLT5y
cGNiYWRmbXQrKzsK
</data>        

          </attachment>
    </bug>

</bugzilla>