🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10857

[PATCH net,v3 00/13] Netfilter/IPVS fixes for net

#10857
From: Pablo Neira Ayuso
Date: Wed, 04 Nov 2026 09:02
141 lines
13491 bytes
v3: keep back two patches in the series with sashiko reports that
    suggest they need a bit more work.

-o-

Hi,
 
The following batch contains Netfilter/IPVS fixes for net, this batch
addresses LLM findings, several of these fixes has been reproduced by
syzbot:
 
1) Add recursion count to nf_reject infrastructure to prevent stack
   overflow, from Fernando F. Mancera.
 
2) Use kfree_rcu() to release IPVS parent application to fix UaF,
   from Chengfeng Ye.
 
3) Fix UaF in IPVS netns removal path due to releasing per-net protocol
   data too early, from Chengfeng Ye.
 
4) Fix unbounded growth of stale, unmatchable IPVS connection entries,
   from Julian Anastasov.
 
5) Preserve recursion count on nfqueue reinjection, from Zihan Xi.
 
6) Restore GRE timeout in the flowtable, otherwise, WARN_ON_ONCE()
   is reachable, from Michail Andreas Michalopoulos.
 
7) Check non-null gc transaction in nft_rbtree before queuing it for
   processing, from Xingyuan Mo.
 
8) Replace WARN_ON_ONCE() by DEBUG_NET_WARN_ON_ONCE() in
   nf_conntrack_bridge which is reachable if the protocol of the tag
   of a frame differs from the vlan_protocol of the bridge.
   From Laveesh Bansal.

9) Check x_tables target name is non-null before accessing it when
    building a new table, from Fernando F. Mancera.
 
10) Fix out-of-bound memory read in nf_conntrack_sip, from
    Joas Antonio Dos Santos.
 
11) Fix a memleak in nf_tables hardware offload when double deleting
    the same rule, in the same batch.
 
12) Use a mutex in xt_recent netns exit path instead of spinlock,
    since proc unregistration might sleep. From Cen Zhang.

13) Zero the nf_nat_range2 struct before filling it up, to avoid
    using stale uninitialized stack data to configure NAT with
    an esoteric NAT flags combination. From Florian Westphal.

Please, pull these changes from:

  git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-11-04

Thanks.

----------------------------------------------------------------

The following changes since commit cb284914e749388eef402938bdb3115fe1f6d337:

  net: ipa: Fix double free of the interrupt structure on config error (2026-10-30 19:04:37 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-11-04

for you to fetch changes up to ec993b526a3114f6c3cdd21cb2b148986370361e:

  netfilter: nat: zero newrange before filling it in (2026-11-04 09:48:34 +0100)

----------------------------------------------------------------
netfilter pull request 26-11-04

----------------------------------------------------------------
Cen Zhang (Microsoft) (1):
      netfilter: xt_recent: do not call remove_proc_entry() under recent_lock

Chengfeng Ye (2):
      ipvs: Defer application parent freeing until after RCU readers
      ipvs: fix protocol data lifetime during namespace teardown

Fernando Fernandez Mancera (2):
      netfilter: nft_reject: prevent unbounded recursion in output hooks
      netfilter: x_tables: check target name before accessing verdict

Florian Westphal (1):
      netfilter: nat: zero newrange before filling it in

Joas Antonio dos Santos (1):
      netfilter: nf_conntrack_sip: fix OOB read in ct_sip_parse_transport()

Julian Anastasov (1):
      ipvs: do not create conns from packets with port 0

Laveesh Bansal (1):
      netfilter: bridge: use DEBUG_NET_WARN_ON_ONCE in nf_ct_bridge_refrag()

Michail Andreas Michalopoulos (1):
      netfilter: flowtable: extend ct timeout of offloaded GRE flows

Pablo Neira Ayuso (1):
      netfilter: nf_tables: fix memleak when rule deletion fails with hardware offload

Xingyuan Mo (1):
      netfilter: nft_set_rbtree: check catchall_sync return before queue_done

Zihan Xi (1):
      netfilter: nf_dup: preserve guard across NFQUEUE reinjection

 include/linux/netdevice_xmit.h             |  4 +--
 include/net/netfilter/nf_dup_netdev.h      | 35 -------------------------
 include/net/netfilter/nf_queue.h           |  1 +
 include/net/netfilter/nf_recursion.h       | 42 ++++++++++++++++++++++++++++++
 net/bridge/netfilter/nf_conntrack_bridge.c |  2 +-
 net/ipv4/netfilter/arp_tables.c            |  5 ++--
 net/ipv4/netfilter/ip_tables.c             |  5 ++--
 net/ipv4/netfilter/nf_reject_ipv4.c        | 12 +++++++++
 net/ipv6/netfilter/ip6_tables.c            |  5 ++--
 net/ipv6/netfilter/nf_reject_ipv6.c        | 13 +++++++++
 net/netfilter/ipvs/ip_vs_app.c             |  2 +-
 net/netfilter/ipvs/ip_vs_core.c            | 15 ++++++-----
 net/netfilter/ipvs/ip_vs_proto_sctp.c      |  5 ++++
 net/netfilter/ipvs/ip_vs_proto_tcp.c       |  5 ++++
 net/netfilter/ipvs/ip_vs_proto_udp.c       |  4 +++
 net/netfilter/nf_conntrack_sip.c           |  4 +--
 net/netfilter/nf_dup_netdev.c              |  1 +
 net/netfilter/nf_flow_table_core.c         |  1 +
 net/netfilter/nf_nat_masquerade.c          |  4 +--
 net/netfilter/nf_queue.c                   |  1 +
 net/netfilter/nf_tables_api.c              | 21 +++++++--------
 net/netfilter/nf_tables_offload.c          |  3 +++
 net/netfilter/nfnetlink_queue.c            | 17 +++++++++---
 net/netfilter/nft_fwd_netdev.c             |  1 +
 net/netfilter/nft_set_rbtree.c             |  3 ++-
 net/netfilter/xt_NETMAP.c                  |  4 +--
 net/netfilter/xt_recent.c                  |  7 ++---
 27 files changed, 145 insertions(+), 77 deletions(-)
 create mode 100644 include/net/netfilter/nf_recursion.h
Technical Details
Message-ID: <20261104090224.750548-1-pablo@netfilter.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356297-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356297-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net,v3 00/13] Netfilter/IPVS fixes for net
Date: Wed,  4 Nov 2026 10:02:11 +0100
Organization: Usenet Network
Message-ID: <20261104090224.750548-1-pablo@netfilter.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3357203"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:pGiT7GTOBEw31HcJbct1Bdx5hIg= sha256:zX2TjbLnLn2t3/mAkhYypzx5B9Zyn6EJX7GizX7m7XI=
	sha1:j7uaxoDJIAHJVQyEscVcgTBvNQ8= sha256:CrZd5uvgscqdvvYYahyaujLKpSZ8VGqFCmhFdRMCQOM=
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 76F7D112B3D; Wed,  4 Nov 2026 12:03:49 +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 VxpMEKVZX1Su;
	Wed,  4 Nov 2026 12:03:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-356297-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 E308D112B2D; Wed,  4 Nov 2026 12:03:37 +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 D506325AA5; Wed,  4 Nov 2026 09:02:58 +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=1793782968;
	b=ElmhQ+h+tCApeSMZ1L15rrZKwfIGkXuZmAy8bW5BS3JsVEGym1xDr0kx686ORUsm1l7+
	 VfPpEAYMiMJRiJLtEKdvD0UlWZSePe3CiPnSi0WqgEkA67QTmSOKGEKPQHokwXCOsvkjb
	 Mkav4w33zZAcgmlFIRdxAn8TWcgCn2fE6dudN7wIcAyk4rGo4ejQwmH98J4nMS7QCE34T
	 3Uz33+zAV4BFd4RKcSlaH/5OrBt5ztlaI9iOrX13Bm5xsqXiztHcu9GLFfGSLENsIgFM9
	 JxKWTFeGND5y/foaWBF12k3+pFCZkVKis3eL0fl5NNT0/tGIYzhLzTJTbZjcvwMX9Fg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793782968;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To:
	 Cc:Subject:Date:Message-ID:X-Mailer:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Transfer-Encoding;
	bh=GTxT/20Qc2969O2nV6qvd8EoaHo8CyrPGUWwInAaeyA=;
	b=bv8w1K1a+uBjbPFNJfRlp4jdkeTK7tx0/iOzRlOg34Qh2YYVOvaiNj/lcIj4C2sbAXll
	 6Dq5cqPqDJ46HdOWK3XNr3dgs73Z+6y3DWUER9fpMTYyxGLmwtbuWW3VSrAgUH4iKiJRK
	 fXQIO0AgDJKc5HHU9kl+ZQjSIahrRSBGiELiklCuiNFPibX4MI0dTBiLM/4AFDmskU0e2
	 TtqstGsEKsQOvQEK3QlaVOp0cIq1dI9lVrKgzzqHBUO1wzuXeU5WaCJIeS/eKSnbvvL+u
	 TFyyDIciMr98AYlsL3hNDn7VwZmenvvAcIYtD1edBqvtbAz3NIS+v8Bv+Q56pDYAuMQ==
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=O4wtIEiM;
	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 B5DFB606D82A;
	Wed,  4 Nov 2026 09:02:48 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=netfilter.org header.i=@netfilter.org header.a=rsa-sha256 header.s=2025 header.b=O4wtIEiM
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=1793782962;
	b=D08tS55CrLuCbJcg2VF96EaAW/K61jGZ/mXsz5uFMXBMDcYfPupU7I1lyylHKubFtd2E
	 9c5RQ6PrTA7x/pZnvYQWD/sqezKOJfWltmHAu6ibMBFK70dpA6hj4emHfIDCCoD/IjQ+Z
	 3lVuUWMVPAHGIgXdDbfDpH0x3gxa9eNtEd7eC9dOs/f5AiWAU4hWKIsGQuQ3vvreLbJio
	 Cgn6YrZKqnvmZl+ai0X5RjHOemoaksmp9SI49IyMXge08bBpGAKEQAiRW42tGE/+GCUKy
	 kPJwg7SXZxStHzI31fs3smOVaoASwn8muMwZwRsbhR0vrUZKzDSfvS545MDGBtba+mw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793782962;
	h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date:
	 Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding:
	 X-Spam-Status:X-Spam-Checker-Version;
	bh=GTxT/20Qc2969O2nV6qvd8EoaHo8CyrPGUWwInAaeyA=;
	b=hh67PQacyQwQQtKvaSl0LVlXCunrWjqRBmyh7VPJubvJ1QDVvSOHXoEfz/8CbTSV88PS
	 q5cBhpXp/dVactL7ds2X1GsPJqdc5BzEqQlz9uE6PTsdjjzbZHgx8vggcV57B6B2JFWRn
	 CYaoO9aVQoWnKCv6tUKBDc+GV6edxFkSMes6p4PrpcWxaJmqfnj0u7PDRi9xOyJ9qTiay
	 oiBPetlWs+UNyh58LkqhrtWnHpn704sSAeCdazkuZYCpnUdANV/msmPuQ5ELgq2ytFSGw
	 xOTJFkCQ4MuNuw9aWrns/6er/6imNn6SU41mT2Bp0m7QN2oeqPqj7WgdTSFCJLCbUyw==
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=O4wtIEiM;
	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) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07431606A328;
	Wed,  4 Nov 2026 09:02:40 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 07431606A328
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=1793782952;
	bh=GTxT/20Qc2969O2nV6qvd8EoaHo8CyrPGUWwInAaeyA=;
	h=From:To:Cc:Subject:Date:From;
	b=O4wtIEiMF/ovYc1Dne66D3v/7pR+rr1s5UldJzkNQCfUzkiDsYltU4oMtJKHt042G
	 elV1caP3T4cga0afXHp6KV7UwTv40Yxj06iwp31C04pzzgTS25nKXEj5RmwREmgW45
	 ov6Kzi0m1LyYVa8uWPICRrq+2CNX2c8DKQbqyJuImnNFTdL7d20/u1xSsnptpMsnFX
	 hmPMEEMcf9jXM/UV7lVOvwo01vHwxcuCGP0o22B55ibBi9V7ybX1iw3rDg0pjHHgD5
	 6528mPnQ6+1qECjoWdxlH4/0I0lOVqzIfdqL4a66Lk7ltkGHmaBijT+WhfODCZEMp0
	 YlmV+8ZJ0r0AA==
X-Received: from localhost.localdomain (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with ESMTPSA id 086C36007D;
	Wed,  4 Nov 2026 10:02:31 +0100 (CET)
X-Cc: davem@davemloft.net,
	netdev@vger.kernel.org,
	kuba@kernel.org,
	pabeni@redhat.com,
	edumazet@kernel.org,
	horms@kernel.org,
	fw@strlen.de,
	ja@ssi.bg
X-Mailer: git-send-email 2.47.3
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