From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AAADC10A01 for ; Thu, 28 Dec 2023 22:00:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=strlen.de Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1rIyQn-0001hj-Fg; Thu, 28 Dec 2023 23:00:45 +0100 Date: Thu, 28 Dec 2023 23:00:45 +0100 From: Florian Westphal To: Linus Torvalds Cc: Wander Lairson Costa , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , security@kernel.org, Kevin Rich , stable@vger.kernel.org Subject: Re: [PATCH] netfilter/nf_tables: fix UAF in catchall element removal Message-ID: <20231228220045.GA598@breakpoint.cc> References: <20231228143737.17712-1-wander@redhat.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Linus Torvalds wrote: > On Thu, 28 Dec 2023 at 06:38, Wander Lairson Costa wrote: > > > > If the catchall element is gc'd when the pipapo set is removed, the element > > can be deactivated twice. > > > > When a set is deleted, the nft_map_deactivate() is called to deactivate the > > data of the set elements [1]. > > Please send this to the netdev list and netfilter-devel, it's already > on a public list thanks to the stable cc. > > Pablo & al - see > > https://lore.kernel.org/all/20231228143737.17712-1-wander@redhat.com/ > > for the original full email. Thanks. I suspect the correct fix is https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git/commit/?id=7315dc1e122c85ffdfc8defffbb8f8b616c2eb1a which missed the last pre-holiday-shutdown net pull request and is thus still only in nf.git.