Article View: linux.kernel.netdev
Article #24003[PATCH net 00/14] Netfilter fixes for net
From: Pablo Neira Ayuso
Date: Sun, 29 Nov 2026 00:07
Date: Sun, 29 Nov 2026 00:07
141 lines
14020 bytes
14020 bytes
The following patchset contains Netfilter fixes for net, mostly LLM
findings are usual these days, unless stated otherwise:
1) Allocate all ct extensions if ct helper extension is used, this is
needed because ct extension reallocation is possible while expectations
are already sitting in the expectation list. From Jaeyeong Lee.
2) Restrict xt_IDLETIMER to init_netns. This xtables extensions exposes
a global sysfs interface. Follow ups are possible to restore this
feature if someone proves to be using this extension from netns.
From Zhiling Zou.
3) Prevent an unbound recursion in the synproxy transmit path. This is
similar to a recent fix to address a similar recursion in the reject
transmit path. Patch from Fernando F. Mancera.
4) On conntrack module removal, wait for RCU quiescent state to address
possible use-after-free. From Chengfeng Ye.
5) Set IP_CT_ESTABLISHED state to TCP reject skbuffs to address a
warning splat in the NAT infrastructure. From xujiahao.
6) Restrict maximum number of chain of master conntracks to 8 when
allocating a new expectation. This is to address a recursion in
the conntrack destroy path leading to stack overflow.
From Florian Westphal.
7) Skip recycled unconfirmed conntracks seen from /proc/net/nf_conntrack
due to TYPESAFE_RCU, otherwise access to ct extension of this new
unconfirmed conntrack results in a crash. from Yiran Qiu.
8) Detach ct template in conntrack bridge when packet is invalid,
otherwise ct template is exposed to follow up hooks in the pipeline.
From Luxiao Xu.
9) In synproxy, fix incorrect handshake ACK sent to the backend carries
a TSecr uncovered since commit 3ba075278c11 ("tcp: be less liberal in
TSEcr received while in SYN_RECV state"). This bug has been
reported in production. Patch from Florian Westphal.
10) Disable hook for dormant table only if transition to dormant state
took place in this transaction. From Ma Xinmen.
11) Add unregister flag for hooks as a dependency to fix a regression
in the follow up patch in this series.
12) Unbind flowtable flow_block when hook are released, otherwise,
flowtable entries in hardware are not released when the flowtable
is destroyed. This regression has been observed in production.
13) Flush pending nf_tables destroy work before handling the flowtable
event to address a race between flowtable events and the destroy
worker.
14) Update conntrack defrag to stop at the legacy AH protocol header,
just like 568af6de058c ("netfilter: nf_tables: set pktinfo->thoff
at AH header if found"). Fragment header before AH is still
possible. This addresses a hypothetical policy bypass. The AH
protocol is deprecated since 2017, noone should be using it.
Please, pull these changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-11-29
Thanks.
----------------------------------------------------------------
The following changes since commit e1055cbfd6eb578417f3ce983cf44462e8465267:
Merge tag 'linux-can-fixes-for-7.4-20261124' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can (2026-11-26 15:47:14 +0100)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-11-29
for you to fetch changes up to 88fe9e22aa1f37150e2057d8d9dd4c979196be11:
netfilter: ipv6: stop the conntrack fragment search at AH (2026-11-29 00:40:27 +0100)
----------------------------------------------------------------
netfilter pull request 26-11-29
----------------------------------------------------------------
Chengfeng Ye (1):
netfilter: conntrack: wait for RCU readers before freeing the hash
Fernando Fernandez Mancera (1):
netfilter: synproxy: prevent unbounded recursion in transmit path
Florian Westphal (2):
netfilter: nf_conntrack: limit expectation master chain depth
netfilter: synproxy: fix double tsoff application in server ACK TSecr
Jaeyeong Lee (1):
netfilter: conntrack: prevent helper extension relocation
Luxiao Xu (1):
netfilter: bridge: detach conntrack template on invalid IP frames
Ma Xinmeng (1):
netfilter: nf_tables: only disable tables on a dormant transition
Pablo Neira Ayuso (3):
netfilter: nf_tables: add NFT_HOOK_UNREGISTERED and use it
netfilter: nf_tables: unbind flowtable on hook release
netfilter: nf_tables: flush destroy work from flowtable netdev event handler
Ryosuke Iwahashi (1):
netfilter: ipv6: stop the conntrack fragment search at AH
Yiran Qiu (1):
netfilter: conntrack: skip unconfirmed entries in /proc/net/nf_conntrack
Zhiling Zou (1):
netfilter: xt_IDLETIMER: restrict to init_net
xujiahao (1):
netfilter: conntrack: attach generated TCP resets as ESTABLISHED
include/linux/netfilter.h | 8 +-
include/net/netfilter/nf_conntrack_helper.h | 15 ++++
include/net/netfilter/nf_tables.h | 3 +-
net/bridge/netfilter/nf_conntrack_bridge.c | 16 ++--
net/ipv4/icmp.c | 2 +-
net/ipv4/netfilter/nf_reject_ipv4.c | 2 +-
net/ipv6/icmp.c | 2 +-
net/ipv6/netfilter/nf_conntrack_reasm.c | 9 +--
net/ipv6/netfilter/nf_reject_ipv6.c | 2 +-
net/netfilter/core.c | 4 +-
net/netfilter/nf_conntrack_core.c | 28 +++++--
net/netfilter/nf_conntrack_expect.c | 15 +++-
net/netfilter/nf_conntrack_extend.c | 31 +++++---
net/netfilter/nf_conntrack_netlink.c | 36 ++++++---
net/netfilter/nf_conntrack_standalone.c | 3 +
net/netfilter/nf_synproxy_core.c | 39 +++++++++-
net/netfilter/nf_tables_api.c | 114 +++++++++++++++++-----------
net/netfilter/nft_chain_filter.c | 6 +-
net/netfilter/xt_IDLETIMER.c | 7 ++
19 files changed, 242 insertions(+), 100 deletions(-)
Technical Details
Message-ID:
<20261129000724.797425-1-pablo@netfilter.org>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373297-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373297-linux-kernel-netdev=dewy.ru From: pablo@netfilter.org (Pablo Neira Ayuso) Newsgroups: linux.kernel.netdev Subject: [PATCH net 00/14] Netfilter fixes for net Date: Sun, 29 Nov 2026 01:07:10 +0100 Organization: Usenet Network Message-ID: <20261129000724.797425-1-pablo@netfilter.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1063955"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:0lKvqIYh4iFWCKX3e8yb62qPaZY= sha256:r5njsvIzv8r3BSWMjTFyIAdumgjw9YPoFrns561/7YM= sha1:3s7+JoXmUBgyikpuHymETCByhcs= sha256:fe4Y19+tEMCVEBpPwgsKEkeUTMET0lnojLSjBt4hv1A= 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 67EF0125F92; Sun, 29 Nov 2026 03:07:54 +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 1EOrMGSOcmxE; Sun, 29 Nov 2026 03:07:47 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-373297-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id C45A3125F8D; Sun, 29 Nov 2026 03:07:37 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 2FFE424B08; Sun, 29 Nov 2026 00:07:35 +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=1795910853; b=HGPbm5hqGtQnt3zdXU4tYIjm/Ha5vw9en2jHBFW8LI8JuLV/uTkauvznM18yB34XCDV7 K5w1uoSct6chSyP6eLP/Yn9ozwDvx/D8i74Dh3w+QdB9LbtoZmz06fWNsp8N/w5Se0vwn rTElETIce2uYDdndJKugSFHk8AkqYV+yJqMeKMpjFRhQzWT6zc153jCHbu3fOlKbBCMUb AOePkz9SASJFW8A6uxOyxNy0wXf+gBxkl0vh8LR99rZqn7Yd16nPAelXHy8iXGX7O8m3c Wc9O6z+aMI4/GpdlavcSzzzvJxU2KyM/xYeDEXhDjS1vXEtZIUSE7VOoPEzobj6apCw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795910853; 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=ZLX3Lan3KwvTMFucjO9J3ktEQgsPKBQS006OqrAGelg=; b=SrYk44MHVtWmi660SMqcBv2LGHGILRFEVqfvEZrnQzNuDPA0tP9mFPHIAPKvDdoIoAWj Neq7asIXlK5Bu+vO+xVaPltu0WFpMSDyQdfs38Rd0uUOY6p0ZiXWb/Ro8MkCOWarqPRAV jxwvmOsnapN4B3zJ+Tdz84HH4fjKZCSAlIdATMMTRrFy8aWaYkfmrmLOl/1MTBe4mu1xI SDtDaHGsVNyc3EAFnoE0hWNthWImbULYyrO3BbrVaQjrik+Ng0HrSh9Qh6YZ7UCfM0MBU 1wjlAwAwOLzOkhuyY9oAGzki0FchKdfTo+rEp4PYZ/najesyvvRqnvdvShlotdc7faQ== 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=CyigsG8T; 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 77287606A32A; Sun, 29 Nov 2026 00:07:33 +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=CyigsG8T 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=1795910852; b=bniFY32ouJiGyJbGq3UFn7Dtrk1U9414tPoKb+9gPSP1MyKMVZs/kXASFmburQvQrCcE 1tMapbVai3S9k88EDcLBoBOwlHeeGIaamHj8LHzuLnSK4YpVst9B0C5YBcHbGE+SoehHy t/6RepqAcpedsaa7Uz+Qnoy9+EHmw8FfuPxS5fzY6yYH+jT6elnn63sHsTk4Ll8uUrcbr GGI+lMRvEig26d4cPcjIJ8GCLI+tuTd+qmd0gs/nb9X/CDH4HyORGb+BNkT/8/EQlH4gT IJqiJsV2qRSaL14o1BeuSHa+sNKWwziKECRTTAlnPq+2GDqBC562OzwIfbNUXSfJxew== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795910852; 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=ZLX3Lan3KwvTMFucjO9J3ktEQgsPKBQS006OqrAGelg=; b=TvmnS+RVpp/8xIfP4lBiEEB9GLzGJqx+/GFIHsGL74EKqsnan6rOnLs8ADRHyHP/cIi3 jfjTzVBb/8DUZKNrBuLH6SL7KWnicTkYUmA9N0O30Tucva0CMGNPZGNDNV8GbFZUip05x IgPnNUB9J0BF2OeNGWbovPf4h1Hk46wzFigz4EdMJCA1SHDzoabtw7LoLlGku/GbkmWt9 tTSzWKgoimUghtRDtE9YAWRAAaNCHaQasCpJbOl18jo2Da8oi5JEf18ow150UcGnZlger tuvkbxYhX8Y7Yk9cUZtAmlAxM1BMt2XGNj81KOjGusJUG8FlIGKYtg9dphnKavObR4A== 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=CyigsG8T; 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 AA0F1606A31C; Sun, 29 Nov 2026 00:07:31 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AA0F1606A31C 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=1795910849; bh=ZLX3Lan3KwvTMFucjO9J3ktEQgsPKBQS006OqrAGelg=; h=From:To:Cc:Subject:Date:From; b=CyigsG8TuYQXEZgFoqT8rMfg28bmFMVCFTgB8zJtcjiFHqXXA4E1W4nyXI/dEaiMG 57xNB+ex0offgvoIXUziauNK/AfoL8sms9/dKqepGPUHCY+NwO15FCYlkrQKrmvg7z g+ZxCSzPQ25ZPcH8e9bDK4yRxDkhDupmKr4Sr1IhT0xHWfMGAuZE2xdY++iaIz0pSs eKNS/cPUjnFeDLjiEkF5ERL4bpbO/On9uppNho2/vGyKGe8sOWD/T6eVNxRtq1ulOz jtsz/PNQHIL9vEW2H0YVvAd8DGDiMLzh9R5NIjwAte5XH/IyvScCChuRPqzRfq2x1O x5Iu2acqjGOgw== X-Received: from localhost.localdomain (mail-agni [217.70.190.124]) by mail.netfilter.org (Postfix) with ESMTPSA id A95F460082; Sun, 29 Nov 2026 01:07:28 +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