From owner-svn-src-all@FreeBSD.ORG Fri Jul 26 22:40:29 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E349674; Fri, 26 Jul 2013 22:40:29 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D0F6B2462; Fri, 26 Jul 2013 22:40:29 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6QMeT8O062387; Fri, 26 Jul 2013 22:40:29 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6QMeT0Y062385; Fri, 26 Jul 2013 22:40:29 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201307262240.r6QMeT0Y062385@svn.freebsd.org> From: Xin LI Date: Fri, 26 Jul 2013 22:40:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org Subject: svn commit: r253694 - in releng/8.3: . sys/kern X-SVN-Group: releng MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 22:40:30 -0000 Author: delphij Date: Fri Jul 26 22:40:29 2013 New Revision: 253694 URL: http://svnweb.freebsd.org/changeset/base/253694 Log: Fix a bug that allows remote client bypass the normal access checks when when -network or -host restrictions are used at the same time with -mapall. [13:08] Security: CVE-2013-4851 Security: FreeBSD-SA-13:08.nfsserver Approved by: so Modified: releng/8.3/UPDATING releng/8.3/sys/kern/vfs_export.c Modified: releng/8.3/UPDATING ============================================================================== --- releng/8.3/UPDATING Fri Jul 26 22:40:23 2013 (r253693) +++ releng/8.3/UPDATING Fri Jul 26 22:40:29 2013 (r253694) @@ -15,6 +15,11 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 8. debugging tools present in HEAD were left in place because sun4v support still needs work to become production ready. +20130429: p9 FreeBSD-SA-13:08.nfsserver + Fix a bug that allows remote client bypass the normal + access checks when when -network or -host restrictions are + used at the same time with -mapall. + 20130429: p8 FreeBSD-SA-13:05.nfsserver Fix a bug that allows NFS clients to issue READDIR on files. Modified: releng/8.3/sys/kern/vfs_export.c ============================================================================== --- releng/8.3/sys/kern/vfs_export.c Fri Jul 26 22:40:23 2013 (r253693) +++ releng/8.3/sys/kern/vfs_export.c Fri Jul 26 22:40:29 2013 (r253694) @@ -208,7 +208,7 @@ vfs_hang_addrlist(struct mount *mp, stru np->netc_anon = crget(); np->netc_anon->cr_uid = argp->ex_anon.cr_uid; crsetgroups(np->netc_anon, argp->ex_anon.cr_ngroups, - np->netc_anon->cr_groups); + argp->ex_anon.cr_groups); np->netc_anon->cr_prison = &prison0; prison_hold(np->netc_anon->cr_prison); np->netc_numsecflavors = argp->ex_numsecflavors;