🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #17836

Re: [PATCH nf v4] netfilter: ipset: fix double free on kernel-side delete during resize

#17836
From: Pablo Neira Ayuso
Date: Tue, 17 Nov 2026 12:19
23 lines
9165 bytes
On Tue, Nov 17, 2026 at 05:44:51AM -0600, Xue Boyang wrote:
> Thanks for the pointer. I had not taken that series into account when
> preparing v4.
> 
> I have now looked through it. The rhashtable conversion removes the
> ipset-specific table-copy resize path, so it appears to avoid this
> double-free/UAF class at its root rather than fixing the individual
> races in the old resize implementation.
> 
> I will run the reproducer and the related GC/dump tests against v10 and
> report the results.

Thanks.

> Since that series targets nf-next and is a fairly large conversion,
> while this issue also affects existing and stable kernels, would you
> prefer that I replace this v4 synchronization rework with a smaller
> targeted fix for nf/stable, leaving the complete cleanup to the
> rhashtable series?

I think -stable backports of Florian's ipset update for net-next will
be needed.
Technical Details
Message-ID: <avxGSmw0DYWUZJrn@chamomile>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365229-linux-kernel-netdev=dewy.ru
References: <20261117101018.523826-1-fuchen.dust@gmail.com> <avwswXiJh8HUPa5T@chamomile> <20261117114451.608829-1-fuchen.dust@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365229-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH nf v4] netfilter: ipset: fix double free on kernel-side
 delete during resize
Date: Tue, 17 Nov 2026 13:19:22 +0100
Organization: Usenet Network
Message-ID: <avxGSmw0DYWUZJrn@chamomile>
References: <20261117101018.523826-1-fuchen.dust@gmail.com>
 <avwswXiJh8HUPa5T@chamomile>
 <20261117114451.608829-1-fuchen.dust@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="2324767"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:wWMQkiHIGpkVCN/hUGrKa9klTK4= sha256:ChaOKg0MNbZM9n/9LojUBL8d1G/jEgNRp1Dx4EJTZT8=
	sha1:6ftF7zJCjrKN+XyyZ3AOlgybLHY= sha256:ftzY7uJro068IsEzriaw4uiIdvXwFtB8DtRBFhNa2BY=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 83675114F46; Tue, 17 Nov 2026 15:19:46 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=netfilter.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id mqCprEmUvtRY;
	Tue, 17 Nov 2026 15:19:43 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-365229-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=netfilter.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id AB3BF114F44; Tue, 17 Nov 2026 15:19:34 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id EAD8E26BEC; Tue, 17 Nov 2026 12:19:30 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1794917969;
	b=fczytbDPfnMvMfV3ZayKS8zi18t4UmX07O6km8Kz3zhB8JD/PtHy5eegbuamg4jPUr+Y
	 mK77X7S0kbgMl1KaVj6j7IAzqefl3RW1KBaJVftNP0zzdoam7XUM8oafmRfWpdFZVCsi0
	 DlMeJ/hH2cM5XlwvGdbV2M/loFyKa1rLWQjbRE9XZ9V1d7IToZzQXhgKwOytbncEgqCJU
	 hltJiZ4DGMFqSBpvyu92Y2PDf1hUROe9R4LdAP8iRuio7tBD0OmGEYAJwbkIdmjsFdEXR
	 uAwL81QnILq5e8wktJIuDKZpWf2P0v7BCoLnKNdNFCm2OW0JWsb9eTanTbLn+jlLecw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794917969;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=bAqhpt5SmcNHh18+WgBOwF32RfrRMvxEuACaGU0iKrY=;
	b=UKGmcCt6GXEsPDvz8ulCvhTB0brgmIFS97AdwNLItepgG8JNBpTCh8AWaz2ZTXuaqP//
	 NMwbzDgEWnV2v1p+G/WGgOSJ/BJPD4em/w8BVHtbdN8CRAq9gW/BtXT4GV+Tr26KjRApo
	 GY0z4m6sU16YCQdt95b9/UM16J+Do+HwxelVlzULTh8baLoclJhA1DsHPBH/fpk+Tbvsy
	 uyEGnuDuBLxquGoes4bONIjSS6OPI4AtWSLntG0zAuKPmBvzp6p2dt99nmHrO2YXKzdQS
	 jyPIlOZ2gKcj0m7FiVy5rysiICnBElCEy3ErgR9rSgrjCwYKErou53B+kodeRMo4t+A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=nwjLQsUm;
	dmarc=none header.from=netfilter.org;
	spf=pass smtp.mailfrom=netfilter.org;
	arc=fail smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 66D68606A339;
	Tue, 17 Nov 2026 12:19:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=nwjLQsUm
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.70.190.124
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794917968;
	b=ioXwakZZMwQb+dHWO7FIbwLImvFa5H6drhjq9Ec18YxUTa9sUQSCy7H7QLfja9wPpfRT
	 IRrFpseBcDnn1Yv25FOoq66PoA0tAwXv6s8XpUIUKvlkJpJc5CTxib0wiAtbts1kjLgR5
	 IpcAcb8b8k6Mq0ocO88TZ2z+yfI9vSwKg3SyPZsYzSmBtcxXibtKUH1q650d2pCeGbaO0
	 2tPq6kZWA86JZhBKWxsAkEYPcgzPHpyGrxN9lWQcscydbciJlepDABYTuyduGAfpVWoz1
	 +nn74VcGg0bd962wF5FkXzcg+VFtCJsjmH3TMW+3hcgyIoMExQ7eiJZVka5hMg+KoMQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794917968;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To:X-Spam-Status:X-Spam-Checker-Version;
	bh=bAqhpt5SmcNHh18+WgBOwF32RfrRMvxEuACaGU0iKrY=;
	b=QHebkLZKYC+9mP0OmPCaqKYvcvsYKTvhbM7PKl3kgUxsHSA/Y5TPmeWoKz18iOrMr6RM
	 tsK1zj7y8UgNhW++7KTiIuZZwb/lVet7d4Y7fltt/0GcZky2naObnK4tKpSPIEmKUOTyz
	 rT/Hjy+aLSBln+DWpWcwUkbBKTt0VOIu3E+gQB0stYQIk/WJhP3qKig6lVT7V7oTXbCU7
	 N9yEmmjfw/OsIpRvTGpxPhiqAxBniYFPGsBveuEe8XPjDiTlnGW+e+WCEhM2gpWWTy1s9
	 bZWCHpvx+pYJt3WXXQ0xkc00QvE7jhawK1EAxaMRoWu5DrDo4pnZvq6InR6ghcdJJJg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=netfilter.org;
	spf=pass smtp.mailfrom=netfilter.org;
	dkim=pass header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=nwjLQsUm;
	arc=none smtp.remote-ip=217.70.190.124
X-Received: from mail.netfilter.org (mail.netfilter.org [217.70.190.124])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with UTF8SMTPS id 11663606A336;
	Tue, 17 Nov 2026 12:19:27 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 11663606A336
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org;
	s=2025; t=1794917965;
	bh=bAqhpt5SmcNHh18+WgBOwF32RfrRMvxEuACaGU0iKrY=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
	b=nwjLQsUmgkUw2fIMHhptCO+5jj3fZ+oq/FJUSLxNFQUm+QVtj5ut/OWN25rlRmbLo
	 txO87ZSZJm9f37lxaowL+alqPXdrEDj5RH+FPfQl//EmkeDyxEPxaxvaFu1UhfVLp6
	 dM2672IjKXuTm2aHwHvCDJw+uRmHKFttobpuqeEGJ8poVIXbRQVx9hBzA0KQMjjltb
	 H2PB0V29OMzgQLYlJ/rFw5Hfn37YssnzfnYkiekv7D5mL8EHxskqX5oHZvZA6e/y/a
	 FO0SXLyjb8RdwtQbKxadSV436henXMd749tqAHmQy2J8qdMGnXXB1Ky0Gh/eT0cClN
	 JWEB3OfbUUfNg==
X-Received: from netfilter.org (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with UTF8SMTPSA id 65AE860058;
	Tue, 17 Nov 2026 13:19:25 +0100 (CET)
X-Cc: kadlec@netfilter.org, fw@strlen.de, netfilter-devel@vger.kernel.org,
	coreteam@netfilter.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, phil@nwl.cc, sunyiqixm@gmail.com,
	bsdhenrymartin@gmail.com
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261117114451.608829-1-fuchen.dust@gmail.com>