Article View: linux.kernel.netdev
Article #24800[PATCH net,v2 RESEND 00/10] Netfilter fixes for net
From: Pablo Neira Ayuso
Date: Mon, 30 Nov 2026 21:51
Date: Mon, 30 Nov 2026 21:51
116 lines
12618 bytes
12618 bytes
v2: - add nft_synproxy to address SYN and ACK packets only patch.
- drop patches that need more work:
+ flowtable hardware offload cleanup (3 patches)
+ use ESTABLISHED state for TCP reject.
+ AH conntrack defrag issue needs another round too.
-o-
Hi,
The following patchset contains Netfilter fixes for net:
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) Updates nft_synproxy to address SYN and ACK packets only, just
like ip{6}t_SYNPROXY does, otherwise hook re-entering is possible.
From Fernando F. Mancera
6) Restrict maximum number of chain of master conntracks to 8. 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.
Please, pull these changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-26-11-30
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-30
for you to fetch changes up to ee5c04c7d9d5cefd08ca7eb6e9bf434fecf44f92:
netfilter: nf_tables: only disable tables on a dormant transition (2026-11-30 21:59:26 +0100)
----------------------------------------------------------------
netfilter pull request 26-11-30
----------------------------------------------------------------
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: conntrack: limit 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
Nguyen Ngoc Thang (1):
netfilter: nft_synproxy: only handle pure SYN and ACK packets
Yiran Qiu (1):
netfilter: conntrack: skip unconfirmed entries in /proc/net/nf_conntrack
Zhiling Zou (1):
netfilter: xt_IDLETIMER: restrict to init_net
include/net/netfilter/nf_conntrack_helper.h | 15 +++++++++++
net/bridge/netfilter/nf_conntrack_bridge.c | 16 +++++++-----
net/netfilter/nf_conntrack_core.c | 1 +
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 | 2 +-
net/netfilter/nft_synproxy.c | 8 +++---
net/netfilter/xt_IDLETIMER.c | 7 ++++++
11 files changed, 135 insertions(+), 38 deletions(-)
Technical Details
Message-ID:
<20261130215141.1009148-1-pablo@netfilter.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374476-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374476-linux-kernel-netdev=dewy.ru From: pablo@netfilter.org (Pablo Neira Ayuso) Newsgroups: linux.kernel.netdev Subject: [PATCH net,v2 RESEND 00/10] Netfilter fixes for net Date: Mon, 30 Nov 2026 22:51:31 +0100 Organization: Usenet Network Message-ID: <20261130215141.1009148-1-pablo@netfilter.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1547246"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:2AUepP+o8QjB3NafK8Ycr9P+q8E= sha256:yrwMyVvHog7mHBdeuaLedXg45Y2zSWmRZoq6TmznkCk= sha1:+q9SlhmKJx61mGlsST35JNGEU8o= sha256:KMv/rfAhdtBHxVqmAntW4IZ7ml85qofQmj7adevuH5E= 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 6E03412600B; Tue, 1 Dec 2026 00:52:08 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 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] 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 Dstq_BJNmSt2; Tue, 1 Dec 2026 00:52:04 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-374476-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 40602126007; Tue, 1 Dec 2026 00:51:54 +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 8743F232E6; Mon, 30 Nov 2026 21:51:52 +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=1796075510; b=wVWRhHuqJPCHKZFpD+CK3WAwDd+bwfCZ/eWOhgQ3eb+kIDkocIH+PJaWvwysdbgLx3qr DQkGdvEsbrsFoPpbkElcY9ci6r25CN9e5PmYwQVISECkaCgPdSjxImhlES/nFMW0zfnoS xu64fjhSJzN2VkazubDMf3GUbaCL1i/vrewA1Oy8LlhT8j83luysRqBbbaDEYd0SUMcl+ Zyd/ikyPIlpPhlQkFFFUPMf413vW57trs1KNwOErYttk/C5uSnNioYjnExHMNJrJ5V2oC zgiPtpBW7V2cwPBezGonbtwgTUgrc1z8U+oiyUO3brg4bGU29W7UwjIeHbx8je6Se8A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796075510; 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=fqOKfIdu1acP1Oac6fijCdQKfStLDvzkaMmX33YvRK4=; b=zzoj45ATW/dVR1ZkoD36LqoJuiD/cf4Io21Oc8x5vmxZXHnA18ht8uvrj79IRVyTtLep Y64MUttVx1cYPT13TEqbpgdB+c1wAMpQrs7tjobIO2GiH8N4/3J+A7CHdcgNStVBCXJ1c VdQ5mjifFQCJw/Dj2ALYAh9yVyDB/BsAusqW/zocPHSipylFBA6TdfnWA70KMrlxmvMS2 hQhscGma2aTbzPXqPV4C6BYLKDNC2g2wy91FH9QoPAOngCLycw19BygScur6IA0MfJVoy oYHrKdUIHTdkZuFnQdfmIE8ZLFENVUJeyNOK8M8wC8508fMWirmcpX94wbmxMwENjsQ== 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=DDx+4mZc; 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 0AB49606A32E; Mon, 30 Nov 2026 21:51:50 +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=DDx+4mZc 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=1796075509; b=c4LsgcbGN0UZE4uX9yWACju5ijQoevp0svDkCf/hOhajxfqKRVqryS1ZYeJgEs/6PT4h NpD+TrexIoKE5omiOlqDW3mBqyIJCjTl95Yp94udlff41C6/QCpS0Qd9Mtm8EtxeHpRa4 ZxYST6VxlZrJwoZPxCg7zLUk5Va7nDrTWvm2EO0Roi8kDfvlHdMBMMKSICJV+h8qOJFvV u+qlD4XuLmvgZNMCPwAlETJkEHTkGBIIXIpDs2C5WlBYk8R+4V5u0VQcW5NevmcABe2x+ RwL79toLcSxbKLhI2jZKGTLbz4i5V6GNavYEbR/IZpke4jQbqzxu8LmgHkbtlN1r9GQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796075509; 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=fqOKfIdu1acP1Oac6fijCdQKfStLDvzkaMmX33YvRK4=; b=yLol7P5c212HnWs+JktzpqCVGTzOWf1C2dUdEySu013WTArOUq4hH038kdQTklT0HAxk 4iyPa9bs7vpLwVriTZ7TkyfjKa1OAVMAhzsJjHNNXtx1sl+TEn6Na3aGkUlDFIYEM7oH9 mi6LqwJQ/OsbPXI5otqADq2x056gRTY4Cq+lg4o+i02ui6wjkuRJMNb2Sz5LumN2nzNnY XyGC519Mu0B5Bp6WaHPmXLN3hh17bFzYBzQJERcTLzmHdtOqtXA0DAhfjscQQAEIbI4DS EibOqxTnER2f2d13YOTS4MyTI+I+2f1JjD/cQZA4o3MkxU0Qz8yS3dtXkiWJ7NusX6Q== 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=DDx+4mZc; 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 ESMTPS id AE03F606A31A; Mon, 30 Nov 2026 21:51:48 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AE03F606A31A 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=1796075506; bh=fqOKfIdu1acP1Oac6fijCdQKfStLDvzkaMmX33YvRK4=; h=From:To:Cc:Subject:Date:From; b=DDx+4mZcJXLK4usIswjsuQ4jwf91sap3DJlGf/15vN2zT9lN8RLIx9A65qTvwOpVr +Qn+o0RRie+rBqiJJBGMpj1y0G9IojSsPQukiBgo1bt+toSUI4HIObqkKTTBnqsaNN ZQjeakhkIITxflFyu5XE41XveS8g4EFXt1b+CHt38dPMfw3dfZpBWCfc0BeY9K5rpg TEX6AsBNXlrqtroYLa6KKXuVlzItOmC1zm6oo89hnrcBCtgWkZ2juE5tXI9TY//fUH 96an9rogRt+O4Yy8zOtMJiZsRkdQkEVLboLj+I1P8VPzS2wztf7GtpDu+hwFI531DW NLPVGbR1Rfegg== X-Received: from localhost.localdomain (mail-agni [217.70.190.124]) by mail.netfilter.org (Postfix) with ESMTPSA id 5CE716005E; Mon, 30 Nov 2026 22:51:45 +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