From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH] netfilter: fix namespace handling in nf_log_proc_dostring Date: Tue, 4 Oct 2016 08:46:53 +0200 Message-ID: <20161004064653.GA8692@salvia> References: <1474227655-5022-1-git-send-email-jann@thejh.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Patrick McHardy , Jozsef Kadlecsik , "David S. Miller" , netfilter-devel@vger.kernel.org, netdev@vger.kernel.org, security@kernel.org To: Jann Horn Return-path: Content-Disposition: inline In-Reply-To: <1474227655-5022-1-git-send-email-jann@thejh.net> Sender: netfilter-devel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Sun, Sep 18, 2016 at 09:40:55PM +0200, Jann Horn wrote: > nf_log_proc_dostring() used current's network namespace instead of the one > corresponding to the sysctl file the write was performed on. Because the > permission check happens at open time and the nf_log files in namespaces > are accessible for the namespace owner, this can be abused by an > unprivileged user to effectively write to the init namespace's nf_log > sysctls. Applied, thanks.