Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH nf-next v4 2/9] netfilter: nf_conntrack_h323: register H.245 helper as TCP
       [not found] <20261203155812.8873-1-fw@strlen.de>
@ 2026-12-03 15:58 ` Florian Westphal
  2026-12-03 15:58 ` [PATCH nf-next v4 3/9] netfilter: conntrack: refactor helper call logic in nf_confirm() Florian Westphal
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: Florian Westphal @ 2026-12-03 15:58 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal, stable

The H.245 helper is only ever assigned to the TCP child connection that
expect_h245() creates, and h245_help() parses a TCP header via
get_tpkt_data().  Yet it is registered with IPPROTO_UDP.

This has been harmless for the conntrack core path, which invokes
helpers without comparing helper->l4proto to the protocol of the
connection the helper is attached to.  The OVS/act_ct path
(nf_ct_helper() in nf_conntrack_ovs.c) does compare, so the H.245
helper was skipped for the TCP child connections there; after this
change h245_help() also runs on that path.

LLM finding, no bug report.

Fixes: f587de0e2feb ("[NETFILTER]: nf_conntrack/nf_nat: add H.323 helper port")
Cc: stable@vger.kernel.org
Signed-off-by: Florian Westphal <fw@strlen.de>
---
 net/netfilter/nf_conntrack_h323_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netfilter/nf_conntrack_h323_main.c b/net/netfilter/nf_conntrack_h323_main.c
index 4cb1665bba02..a259319e7b1f 100644
--- a/net/netfilter/nf_conntrack_h323_main.c
+++ b/net/netfilter/nf_conntrack_h323_main.c
@@ -1718,7 +1718,7 @@ static int __init h323_helper_init(void)
 	nf_ct_helper_init(&nf_conntrack_helper_ras[1], AF_INET6, IPPROTO_UDP,
 			  "RAS",
 			  &ras_exp_policy, 0, ras_help, NULL, THIS_MODULE);
-	nf_ct_helper_init(&nf_conntrack_helper_h245, AF_UNSPEC, IPPROTO_UDP,
+	nf_ct_helper_init(&nf_conntrack_helper_h245, AF_UNSPEC, IPPROTO_TCP,
 			  "H.245",
 			  &h245_exp_policy, 0, h245_help, NULL, THIS_MODULE);
 	nf_ct_helper_init(&nf_conntrack_helper_q931[0], AF_INET, IPPROTO_TCP,
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH nf-next v4 3/9] netfilter: conntrack: refactor helper call logic in nf_confirm()
       [not found] <20261203155812.8873-1-fw@strlen.de>
  2026-12-03 15:58 ` [PATCH nf-next v4 2/9] netfilter: nf_conntrack_h323: register H.245 helper as TCP Florian Westphal
@ 2026-12-03 15:58 ` Florian Westphal
  2026-12-03 15:58 ` [PATCH nf-next v4 4/9] netfilter: conntrack: verify L4 protocol before calling helper Florian Westphal
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: Florian Westphal @ 2026-12-03 15:58 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal, stable

The current implementation of nf_confirm() handles several distinct
tasks: retrieving the connection, calculating protocol offsets for
different network families, and executing the associated helpers or
sequence adjustments.

Move functionality to separate functions:

1. nf_confirm_get_protoff(): Isolates the logic for determining the
   protocol offset (protoff) for IPv4 and IPv6 packets.
2. nf_ct_call_helper(): Encapsulates the decision-making process of
   whether to call a connection tracking helper or perform sequence
   adjustments, utilizing nf_confirm_get_protoff() to find the correct
   offset.

NF_CT_STAT_INC_ATOMIC() is now called for any NF_DROP; earlier this was
elided in some cases. IMO that was a bug all along.

Follow-up patches will extend these new functions with stricter checks.

It would have been good to add stricter validation for the "previously
seen" case - pedit or BPF can be used to munge the skb to no longer
reflect the nf_conn tuples.

But it cannot easily be done: fragmented traffic is a valid corner case,
and such skbs cannot be validated.  Add a comment about this.

Cc: stable@vger.kernel.org
Signed-off-by: Florian Westphal <fw@strlen.de>
---
 include/net/netfilter/nf_conntrack_helper.h |   6 +
 net/netfilter/nf_conntrack_core.c           |  38 +++----
 net/netfilter/nf_conntrack_proto.c          | 118 +++++++++++++++-----
 3 files changed, 113 insertions(+), 49 deletions(-)

diff --git a/include/net/netfilter/nf_conntrack_helper.h b/include/net/netfilter/nf_conntrack_helper.h
index 335b8c43694f..676373fb1143 100644
--- a/include/net/netfilter/nf_conntrack_helper.h
+++ b/include/net/netfilter/nf_conntrack_helper.h
@@ -124,6 +124,12 @@ int __nf_ct_try_assign_helper(struct nf_conn *ct, struct nf_conn *tmpl,
 
 int nf_ct_helper(struct sk_buff *skb, struct nf_conn *ct,
 		 enum ip_conntrack_info ctinfo, u16 proto);
+bool nf_confirm_get_protoff(struct sk_buff *skb, struct net *net,
+			    struct nf_conn *ct,
+			    enum ip_conntrack_info ctinfo,
+			    unsigned int *protoffp);
+int nf_ct_call_helper(struct sk_buff *skb, struct nf_conn *ct,
+		      enum ip_conntrack_info ctinfo);
 int nf_ct_add_helper(struct nf_conn *ct, const char *name, u8 family,
 		     u8 proto, bool nat, struct nf_conntrack_helper **hp);
 
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index 931b76aacd93..5506c4ab1f26 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -2008,7 +2008,21 @@ nf_conntrack_in(struct sk_buff *skb, const struct nf_hook_state *state)
 
 	tmpl = nf_ct_get(skb, &ctinfo);
 	if (tmpl || ctinfo == IP_CT_UNTRACKED) {
-		/* Previously seen (loopback or untracked)?  Ignore. */
+		/* Previously seen (loopback or untracked)?  Ignore.
+		 *
+		 * The attached ct is deliberately not revalidated against the
+		 * packet headers.  Non-first fragments (e.g. on loopback with a
+		 * reduced MTU) carry the ct but have no L4 header to compare
+		 * against.  Rejecting them breaks such setups (they become
+		 * 'ct state invalid').  Accepting them makes revalidation moot,
+		 * since whoever can mangle headers (pedit/BPF) can just set a
+		 * fragment bit.
+		 *
+		 * Users of an attached ct that depend on skb contents (helpers,
+		 * seqadj, NAT) must therefore validate protocol and offsets
+		 * themselves and bounds-check all accesses, e.g. via
+		 * skb_header_pointer()/skb_ensure_writable().
+		 */
 		if ((tmpl && !nf_ct_is_template(tmpl)) ||
 		     ctinfo == IP_CT_UNTRACKED)
 			return NF_ACCEPT;
@@ -2204,7 +2218,7 @@ static int nf_confirm_cthelper(struct sk_buff *skb, struct nf_conn *ct,
 	const struct nf_conntrack_helper *helper;
 	const struct nf_conn_help *help;
 	unsigned int helper_flags;
-	int protoff;
+	unsigned int protoff;
 
 	help = nfct_help(ct);
 	if (!help)
@@ -2218,26 +2232,8 @@ static int nf_confirm_cthelper(struct sk_buff *skb, struct nf_conn *ct,
 	if (!(helper_flags & NF_CT_HELPER_F_USERSPACE))
 		return NF_ACCEPT;
 
-	switch (nf_ct_l3num(ct)) {
-	case NFPROTO_IPV4:
-		protoff = skb_network_offset(skb) + ip_hdrlen(skb);
-		break;
-#if IS_ENABLED(CONFIG_IPV6)
-	case NFPROTO_IPV6: {
-		__be16 frag_off;
-		u8 pnum;
-
-		pnum = ipv6_hdr(skb)->nexthdr;
-		protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &pnum,
-					   &frag_off);
-		if (protoff < 0 || (frag_off & htons(~0x7)) != 0)
-			return NF_ACCEPT;
-		break;
-	}
-#endif
-	default:
+	if (!nf_confirm_get_protoff(skb, nf_ct_net(ct), ct, ctinfo, &protoff))
 		return NF_ACCEPT;
-	}
 
 	if (test_bit(IPS_SEQ_ADJUST_BIT, &ct->status) &&
 	    !nf_is_loopback_packet(skb)) {
diff --git a/net/netfilter/nf_conntrack_proto.c b/net/netfilter/nf_conntrack_proto.c
index 7a40e4e0e33e..9c74bce8bf25 100644
--- a/net/netfilter/nf_conntrack_proto.c
+++ b/net/netfilter/nf_conntrack_proto.c
@@ -131,36 +131,16 @@ static bool in_vrf_postrouting(const struct nf_hook_state *state)
 	return false;
 }
 
-unsigned int nf_confirm(void *priv,
-			struct sk_buff *skb,
-			const struct nf_hook_state *state)
+bool nf_confirm_get_protoff(struct sk_buff *skb, struct net *net,
+			    struct nf_conn *ct,
+			    enum ip_conntrack_info ctinfo,
+			    unsigned int *protoffp)
 {
-	int (*helper_cb)(struct sk_buff *skb, unsigned int protoff,
-			 struct nf_conn *ct,
-			 enum ip_conntrack_info conntrackinfo);
-	const struct nf_conn_help *help;
-	enum ip_conntrack_info ctinfo;
 	unsigned int protoff;
-	struct nf_conn *ct;
-	bool seqadj_needed;
 	__be16 frag_off;
 	int start;
 	u8 pnum;
 
-	ct = nf_ct_get(skb, &ctinfo);
-	if (!ct || in_vrf_postrouting(state))
-		return NF_ACCEPT;
-
-	help = nfct_help(ct);
-
-	seqadj_needed = test_bit(IPS_SEQ_ADJUST_BIT, &ct->status) && !nf_is_loopback_packet(skb);
-	if (!help && !seqadj_needed)
-		return nf_conntrack_confirm(skb);
-
-	/* helper->help() do not expect ICMP packets */
-	if (ctinfo == IP_CT_RELATED_REPLY)
-		return nf_conntrack_confirm(skb);
-
 	switch (nf_ct_l3num(ct)) {
 	case NFPROTO_IPV4:
 		protoff = skb_network_offset(skb) + ip_hdrlen(skb);
@@ -169,16 +149,60 @@ unsigned int nf_confirm(void *priv,
 		pnum = ipv6_hdr(skb)->nexthdr;
 		start = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &pnum, &frag_off);
 		if (start < 0 || (frag_off & htons(~0x7)) != 0)
-			return nf_conntrack_confirm(skb);
+			return false;
 
 		protoff = start;
 		break;
 	default:
-		return nf_conntrack_confirm(skb);
+		DEBUG_NET_WARN_ONCE(1, "helper invoked on non-IP family!");
+		return false;
 	}
 
+	*protoffp = protoff;
+	return true;
+}
+
+/**
+ * nf_ct_call_helper() - Invoke the connection tracking helper for a packet
+ * @skb:    The socket buffer containing the packet to be processed.
+ * @ct:     The connection tracking entry associated with this packet.
+ * @ctinfo: The current connection track information (state) of the packet.
+ *
+ * This function calls the l4 connection tracking helper (e.g. ftp, sip...) if
+ * one was assigned to the connection.
+ *
+ * It also performs TCP sequence number adjustment if the connection has
+ * IPS_SEQ_ADJUST set (e.g. after a helper or NAT changed the payload length).
+ * This may mangle the packet, or return NF_DROP if the adjustment fails.
+ *
+ * Return: verdict (NF_ACCEPT, NF_DROP, ...)
+ */
+int nf_ct_call_helper(struct sk_buff *skb, struct nf_conn *ct,
+		      enum ip_conntrack_info ctinfo)
+{
+	struct net *net = nf_ct_net(ct);
+	const struct nf_conn_help *help;
+	bool seqadj_needed;
+	unsigned int protoff;
+
+	help = nfct_help(ct);
+
+	seqadj_needed = test_bit(IPS_SEQ_ADJUST_BIT, &ct->status) && !nf_is_loopback_packet(skb);
+	if (!help && !seqadj_needed)
+		return NF_ACCEPT;
+
+	/* helper->help() do not expect ICMP packets */
+	if (ctinfo == IP_CT_RELATED_REPLY)
+		return NF_ACCEPT;
+
+	if (!nf_confirm_get_protoff(skb, net, ct, ctinfo, &protoff))
+		return NF_ACCEPT;
+
 	if (help) {
 		const struct nf_conntrack_helper *helper;
+		int (*helper_cb)(struct sk_buff *skb, unsigned int protoff,
+				 struct nf_conn *ct,
+				 enum ip_conntrack_info conntrackinfo);
 		int ret;
 
 		/* rcu_read_lock()ed by nf_hook */
@@ -195,9 +219,47 @@ unsigned int nf_confirm(void *priv,
 	}
 
 	if (seqadj_needed &&
-	    !nf_ct_seq_adjust(skb, ct, ctinfo, protoff)) {
-		NF_CT_STAT_INC_ATOMIC(nf_ct_net(ct), drop);
+	    !nf_ct_seq_adjust(skb, ct, ctinfo, protoff))
 		return NF_DROP;
+
+	return NF_ACCEPT;
+}
+
+/**
+ * nf_confirm - Confirm (commit) a connection tracking entry
+ * @priv: Private data from the netfilter hook registration (unused)
+ * @skb: Packet
+ * @state: Netfilter hook state containing context (netns, hooknum, in/out devices)
+ *
+ * This function is invoked as the final step of the connection tracking
+ * processing pipeline. It performs two main operations:
+ *
+ * 1. Invokes the associated conntrack helper (if registered) to allow
+ *    layer 7 specific parsing and NAT mangling.  This includes TCP
+ *    sequence number adjustment if the connection requires it.
+ *
+ * 2. Commits a new conntrack entry to the conntrack hash table, making it
+ *    globally visible and enabling future packet lookups for stateful tracking.
+ *
+ * Returns: A netfilter verdict, e.g. NF_ACCEPT or NF_DROP.
+ */
+unsigned int nf_confirm(void *priv,
+			struct sk_buff *skb,
+			const struct nf_hook_state *state)
+{
+	enum ip_conntrack_info ctinfo;
+	struct nf_conn *ct;
+	int ret;
+
+	ct = nf_ct_get(skb, &ctinfo);
+	if (!ct || in_vrf_postrouting(state))
+		return NF_ACCEPT;
+
+	ret = nf_ct_call_helper(skb, ct, ctinfo);
+	if (unlikely(ret != NF_ACCEPT)) {
+		if (ret == NF_DROP)
+			NF_CT_STAT_INC_ATOMIC(state->net, drop);
+		return ret;
 	}
 
 	/* We've seen it coming out the other side: confirm it */
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH nf-next v4 4/9] netfilter: conntrack: verify L4 protocol before calling helper
       [not found] <20261203155812.8873-1-fw@strlen.de>
  2026-12-03 15:58 ` [PATCH nf-next v4 2/9] netfilter: nf_conntrack_h323: register H.245 helper as TCP Florian Westphal
  2026-12-03 15:58 ` [PATCH nf-next v4 3/9] netfilter: conntrack: refactor helper call logic in nf_confirm() Florian Westphal
@ 2026-12-03 15:58 ` Florian Westphal
  2026-12-03 15:58 ` [PATCH nf-next v4 5/9] netfilter: conntrack: replace open-coded helper invocation Florian Westphal
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: Florian Westphal @ 2026-12-03 15:58 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal, stable

This commit ensures that a conntrack helper is only invoked if its
configured L4 protocol matches the actual protocol of the packet.

Currently, nf_ct_call_helper() invokes a helper based on the connection
state, but it does not explicitly verify the protocol number against
the helper's expected protocol. This could potentially lead to helpers
processing packets they were not designed for.

This can happen with related ICMP(v6) errors in the original direction
or when conntrack got attached via TC/act_ct, then was later munged via
pedit or bpf to alter the ip protocol.

Extend the introduced helper functions: extract the L4 protocol number,
then check it matches helper->l4proto.

Also change ipv4 to explicitly skip fragments, this shouldn't happen
for normal netfilter-only code path, because conntrack depends on defrag
module, but this may not be the case for other users (ovs, tc).

For ipv6, treat any non-zero frag_off as a fragment, matching the ipv4
check.  This also skips first fragments (offset 0, M bit set): a helper
only sees a truncated payload of those, and non-first fragments carry no
l4 header, so helpers cannot work on fragmented packets.  conntrack's
defrag normally prevents such packets from reaching helpers.

Also skip the helper invocation if the packet contains no payload
(protoff == skb->len).

helper->l4proto == 0 means the helper is protocol agnostic and is
exempt from the check.  This is needed for the internal, unregistered
helper that nft_ct allocates for expectation objects: it can be attached
to any master connection and ct_expect_help() does not parse l4 payload.

Fixes: 9fb9cbb1082d ("[NETFILTER]: Add nf_conntrack subsystem.")
Cc: stable@vger.kernel.org
Signed-off-by: Florian Westphal <fw@strlen.de>
---
 include/net/netfilter/nf_conntrack_helper.h |  4 ++--
 net/netfilter/nf_conntrack_core.c           |  4 +++-
 net/netfilter/nf_conntrack_proto.c          | 23 ++++++++++++++-------
 3 files changed, 21 insertions(+), 10 deletions(-)

diff --git a/include/net/netfilter/nf_conntrack_helper.h b/include/net/netfilter/nf_conntrack_helper.h
index 676373fb1143..3279bef21014 100644
--- a/include/net/netfilter/nf_conntrack_helper.h
+++ b/include/net/netfilter/nf_conntrack_helper.h
@@ -44,7 +44,7 @@ struct nf_conntrack_helper {
 	refcount_t ct_refcnt;
 
 	u8 nfproto;	/* NFPROTO_*, can be NFPROTO_UNSPEC */
-	u8 l4proto;	/* IPPROTO_UDP/TCP */
+	u8 l4proto;	/* IPPROTO_*, 0: any (internal, unregistered helpers) */
 
 	/* Function to call when data passes; return verdict */
 	int __rcu (*help)(struct sk_buff *skb, unsigned int protoff,
@@ -127,7 +127,7 @@ int nf_ct_helper(struct sk_buff *skb, struct nf_conn *ct,
 bool nf_confirm_get_protoff(struct sk_buff *skb, struct net *net,
 			    struct nf_conn *ct,
 			    enum ip_conntrack_info ctinfo,
-			    unsigned int *protoffp);
+			    unsigned int *protoffp, u8 *pnum);
 int nf_ct_call_helper(struct sk_buff *skb, struct nf_conn *ct,
 		      enum ip_conntrack_info ctinfo);
 int nf_ct_add_helper(struct nf_conn *ct, const char *name, u8 family,
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index 5506c4ab1f26..2ceb198c70ac 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -2219,6 +2219,7 @@ static int nf_confirm_cthelper(struct sk_buff *skb, struct nf_conn *ct,
 	const struct nf_conn_help *help;
 	unsigned int helper_flags;
 	unsigned int protoff;
+	u8 pnum;
 
 	help = nfct_help(ct);
 	if (!help)
@@ -2232,7 +2233,8 @@ static int nf_confirm_cthelper(struct sk_buff *skb, struct nf_conn *ct,
 	if (!(helper_flags & NF_CT_HELPER_F_USERSPACE))
 		return NF_ACCEPT;
 
-	if (!nf_confirm_get_protoff(skb, nf_ct_net(ct), ct, ctinfo, &protoff))
+	if (!nf_confirm_get_protoff(skb, nf_ct_net(ct), ct, ctinfo, &protoff,
+				   &pnum))
 		return NF_ACCEPT;
 
 	if (test_bit(IPS_SEQ_ADJUST_BIT, &ct->status) &&
diff --git a/net/netfilter/nf_conntrack_proto.c b/net/netfilter/nf_conntrack_proto.c
index 9c74bce8bf25..bd93d9a1f2b3 100644
--- a/net/netfilter/nf_conntrack_proto.c
+++ b/net/netfilter/nf_conntrack_proto.c
@@ -134,21 +134,23 @@ static bool in_vrf_postrouting(const struct nf_hook_state *state)
 bool nf_confirm_get_protoff(struct sk_buff *skb, struct net *net,
 			    struct nf_conn *ct,
 			    enum ip_conntrack_info ctinfo,
-			    unsigned int *protoffp)
+			    unsigned int *protoffp, u8 *pnum)
 {
 	unsigned int protoff;
 	__be16 frag_off;
 	int start;
-	u8 pnum;
 
 	switch (nf_ct_l3num(ct)) {
 	case NFPROTO_IPV4:
+		if (ip_is_fragment(ip_hdr(skb)))
+			return false;
 		protoff = skb_network_offset(skb) + ip_hdrlen(skb);
+		*pnum = ip_hdr(skb)->protocol;
 		break;
 	case NFPROTO_IPV6:
-		pnum = ipv6_hdr(skb)->nexthdr;
-		start = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &pnum, &frag_off);
-		if (start < 0 || (frag_off & htons(~0x7)) != 0)
+		*pnum = ipv6_hdr(skb)->nexthdr;
+		start = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), pnum, &frag_off);
+		if (start < 0 || frag_off)
 			return false;
 
 		protoff = start;
@@ -170,6 +172,9 @@ bool nf_confirm_get_protoff(struct sk_buff *skb, struct net *net,
  *
  * This function calls the l4 connection tracking helper (e.g. ftp, sip...) if
  * one was assigned to the connection.
+ * This re-derives the l4 protocol number: act_ct can associate the skb with
+ * a connection/protocol and later pedit/bpf function can munge the packet
+ * afterwards.
  *
  * It also performs TCP sequence number adjustment if the connection has
  * IPS_SEQ_ADJUST set (e.g. after a helper or NAT changed the payload length).
@@ -184,6 +189,7 @@ int nf_ct_call_helper(struct sk_buff *skb, struct nf_conn *ct,
 	const struct nf_conn_help *help;
 	bool seqadj_needed;
 	unsigned int protoff;
+	u8 pnum = 0;
 
 	help = nfct_help(ct);
 
@@ -195,10 +201,10 @@ int nf_ct_call_helper(struct sk_buff *skb, struct nf_conn *ct,
 	if (ctinfo == IP_CT_RELATED_REPLY)
 		return NF_ACCEPT;
 
-	if (!nf_confirm_get_protoff(skb, net, ct, ctinfo, &protoff))
+	if (!nf_confirm_get_protoff(skb, net, ct, ctinfo, &protoff, &pnum))
 		return NF_ACCEPT;
 
-	if (help) {
+	if (help && protoff < skb->len) {
 		const struct nf_conntrack_helper *helper;
 		int (*helper_cb)(struct sk_buff *skb, unsigned int protoff,
 				 struct nf_conn *ct,
@@ -208,6 +214,9 @@ int nf_ct_call_helper(struct sk_buff *skb, struct nf_conn *ct,
 		/* rcu_read_lock()ed by nf_hook */
 		helper = rcu_dereference(help->helper);
 		if (helper) {
+			if (helper->l4proto && helper->l4proto != pnum)
+				return NF_ACCEPT;
+
 			helper_cb = rcu_dereference(helper->help);
 			if (helper_cb) {
 				ret = helper_cb(skb, protoff,
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH nf-next v4 5/9] netfilter: conntrack: replace open-coded helper invocation
       [not found] <20261203155812.8873-1-fw@strlen.de>
                   ` (2 preceding siblings ...)
  2026-12-03 15:58 ` [PATCH nf-next v4 4/9] netfilter: conntrack: verify L4 protocol before calling helper Florian Westphal
@ 2026-12-03 15:58 ` Florian Westphal
  2026-12-03 15:58 ` [PATCH nf-next v4 6/9] netfilter: conntrack: harden helper invocation with tuple revalidation Florian Westphal
  2026-12-03 15:58 ` [PATCH nf-next v4 7/9] netfilter: conntrack: confirm ct when helper validation fails Florian Westphal
  5 siblings, 0 replies; 6+ messages in thread
From: Florian Westphal @ 2026-12-03 15:58 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal, stable

Replace duplicated logic with the new nf_ct_call_helper() function.

The skip of sequence adjustment for packets received via loopback only
makes sense for the netfilter hooks, where such packets were already
adjusted on the output path.  OVS and act_ct do not run the netfilter
hooks, so nf_ct_helper() always adjusted sequence numbers.  Add a
'from_hook' argument to nf_ct_call_helper() so that nf_ct_helper()
keeps doing so.

One behavior change is intentional: if the helper's ->help callback is
NULL (helper is being unregistered), nf_ct_helper() used to return
without adjusting sequence numbers.  Now it continues with sequence
adjustment, like nf_confirm() always did.  The connection may already
have been mangled, so later packets need the adjustment.

Check the helper's family against nf_ct_l3num(ct) instead of the
caller-supplied protocol.  nf_ct_call_helper() parses the packet according
to nf_ct_l3num(ct), so the helper selection and the header parsing now
always use the same family, even if act_ct or OVS see a packet whose
family differs from the attached conntrack's family.

The proto argument of nf_ct_helper() is therefore unused; remove it.

This bug is ancient and always existed ever since conntrack was added
to the kernel.  Before unprivileged user and namespaces
(5eaf563e5329, b33c77ef23dd) this required CAP_NET_ADMIN, so only
privileged users could trigger it.

Fixes: 9fb9cbb1082d ("[NETFILTER]: Add nf_conntrack subsystem.")
Cc: stable@vger.kernel.org
Signed-off-by: Florian Westphal <fw@strlen.de>
---
 include/net/netfilter/nf_conntrack_helper.h |  4 +-
 net/netfilter/nf_conntrack_ovs.c            | 57 ++-------------------
 net/netfilter/nf_conntrack_proto.c          | 18 +++++--
 net/openvswitch/conntrack.c                 |  4 +-
 net/sched/act_ct.c                          |  2 +-
 5 files changed, 22 insertions(+), 63 deletions(-)

diff --git a/include/net/netfilter/nf_conntrack_helper.h b/include/net/netfilter/nf_conntrack_helper.h
index 3279bef21014..191420feb9b9 100644
--- a/include/net/netfilter/nf_conntrack_helper.h
+++ b/include/net/netfilter/nf_conntrack_helper.h
@@ -123,13 +123,13 @@ int __nf_ct_try_assign_helper(struct nf_conn *ct, struct nf_conn *tmpl,
 			      gfp_t flags);
 
 int nf_ct_helper(struct sk_buff *skb, struct nf_conn *ct,
-		 enum ip_conntrack_info ctinfo, u16 proto);
+		 enum ip_conntrack_info ctinfo);
 bool nf_confirm_get_protoff(struct sk_buff *skb, struct net *net,
 			    struct nf_conn *ct,
 			    enum ip_conntrack_info ctinfo,
 			    unsigned int *protoffp, u8 *pnum);
 int nf_ct_call_helper(struct sk_buff *skb, struct nf_conn *ct,
-		      enum ip_conntrack_info ctinfo);
+		      enum ip_conntrack_info ctinfo, bool from_hook);
 int nf_ct_add_helper(struct nf_conn *ct, const char *name, u8 family,
 		     u8 proto, bool nat, struct nf_conntrack_helper **hp);
 
diff --git a/net/netfilter/nf_conntrack_ovs.c b/net/netfilter/nf_conntrack_ovs.c
index fe525b324af4..5e7b72149fa5 100644
--- a/net/netfilter/nf_conntrack_ovs.c
+++ b/net/netfilter/nf_conntrack_ovs.c
@@ -10,18 +10,10 @@
 
 /* 'skb' should already be pulled to nh_ofs. */
 int nf_ct_helper(struct sk_buff *skb, struct nf_conn *ct,
-		 enum ip_conntrack_info ctinfo, u16 proto)
+		 enum ip_conntrack_info ctinfo)
 {
-	int (*helper_cb)(struct sk_buff *skb, unsigned int protoff,
-			 struct nf_conn *ct,
-			 enum ip_conntrack_info conntrackinfo);
 	const struct nf_conntrack_helper *helper;
 	const struct nf_conn_help *help;
-	unsigned int protoff;
-	int err;
-
-	if (ctinfo == IP_CT_RELATED_REPLY)
-		return NF_ACCEPT;
 
 	help = nfct_help(ct);
 	if (!help)
@@ -32,53 +24,10 @@ int nf_ct_helper(struct sk_buff *skb, struct nf_conn *ct,
 		return NF_ACCEPT;
 
 	if (helper->nfproto != NFPROTO_UNSPEC &&
-	    helper->nfproto != proto)
-		return NF_ACCEPT;
-
-	switch (proto) {
-	case NFPROTO_IPV4:
-		protoff = ip_hdrlen(skb);
-		proto = ip_hdr(skb)->protocol;
-		break;
-	case NFPROTO_IPV6: {
-		u8 nexthdr = ipv6_hdr(skb)->nexthdr;
-		__be16 frag_off;
-		int ofs;
-
-		ofs = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr,
-				       &frag_off);
-		if (ofs < 0 || (frag_off & htons(~0x7)) != 0) {
-			pr_debug("proto header not found\n");
-			return NF_ACCEPT;
-		}
-		protoff = ofs;
-		proto = nexthdr;
-		break;
-	}
-	default:
-		WARN_ONCE(1, "helper invoked on non-IP family!");
-		return NF_DROP;
-	}
-
-	if (helper->l4proto != proto)
-		return NF_ACCEPT;
-
-	helper_cb = rcu_dereference(helper->help);
-	if (!helper_cb)
+	    helper->nfproto != nf_ct_l3num(ct))
 		return NF_ACCEPT;
 
-	err = helper_cb(skb, protoff, ct, ctinfo);
-	if (err != NF_ACCEPT)
-		return err;
-
-	/* Adjust seqs after helper.  This is needed due to some helpers (e.g.,
-	 * FTP with NAT) adusting the TCP payload size when mangling IP
-	 * addresses and/or port numbers in the text-based control connection.
-	 */
-	if (test_bit(IPS_SEQ_ADJUST_BIT, &ct->status) &&
-	    !nf_ct_seq_adjust(skb, ct, ctinfo, protoff))
-		return NF_DROP;
-	return NF_ACCEPT;
+	return nf_ct_call_helper(skb, ct, ctinfo, false);
 }
 EXPORT_SYMBOL_GPL(nf_ct_helper);
 
diff --git a/net/netfilter/nf_conntrack_proto.c b/net/netfilter/nf_conntrack_proto.c
index bd93d9a1f2b3..40f08f846b33 100644
--- a/net/netfilter/nf_conntrack_proto.c
+++ b/net/netfilter/nf_conntrack_proto.c
@@ -169,6 +169,11 @@ bool nf_confirm_get_protoff(struct sk_buff *skb, struct net *net,
  * @skb:    The socket buffer containing the packet to be processed.
  * @ct:     The connection tracking entry associated with this packet.
  * @ctinfo: The current connection track information (state) of the packet.
+ * @from_hook: True when called from a netfilter hook (nf_confirm), false for
+ *             act_ct and OVS, which do not run the netfilter hooks.
+ *
+ * The caller must hold rcu_read_lock(). The caller must have pulled
+ * @skb up to the network header (L3).
  *
  * This function calls the l4 connection tracking helper (e.g. ftp, sip...) if
  * one was assigned to the connection.
@@ -183,7 +188,7 @@ bool nf_confirm_get_protoff(struct sk_buff *skb, struct net *net,
  * Return: verdict (NF_ACCEPT, NF_DROP, ...)
  */
 int nf_ct_call_helper(struct sk_buff *skb, struct nf_conn *ct,
-		      enum ip_conntrack_info ctinfo)
+		      enum ip_conntrack_info ctinfo, bool from_hook)
 {
 	struct net *net = nf_ct_net(ct);
 	const struct nf_conn_help *help;
@@ -193,7 +198,13 @@ int nf_ct_call_helper(struct sk_buff *skb, struct nf_conn *ct,
 
 	help = nfct_help(ct);
 
-	seqadj_needed = test_bit(IPS_SEQ_ADJUST_BIT, &ct->status) && !nf_is_loopback_packet(skb);
+	seqadj_needed = test_bit(IPS_SEQ_ADJUST_BIT, &ct->status);
+	/* Packets looped back via lo already had their sequence numbers
+	 * adjusted in the netfilter hooks on the output path.  Callers outside
+	 * of the netfilter hooks (act_ct, OVS) have no such earlier pass.
+	 */
+	if (from_hook && nf_is_loopback_packet(skb))
+		seqadj_needed = false;
 	if (!help && !seqadj_needed)
 		return NF_ACCEPT;
 
@@ -211,7 +222,6 @@ int nf_ct_call_helper(struct sk_buff *skb, struct nf_conn *ct,
 				 enum ip_conntrack_info conntrackinfo);
 		int ret;
 
-		/* rcu_read_lock()ed by nf_hook */
 		helper = rcu_dereference(help->helper);
 		if (helper) {
 			if (helper->l4proto && helper->l4proto != pnum)
@@ -264,7 +274,7 @@ unsigned int nf_confirm(void *priv,
 	if (!ct || in_vrf_postrouting(state))
 		return NF_ACCEPT;
 
-	ret = nf_ct_call_helper(skb, ct, ctinfo);
+	ret = nf_ct_call_helper(skb, ct, ctinfo, true);
 	if (unlikely(ret != NF_ACCEPT)) {
 		if (ret == NF_DROP)
 			NF_CT_STAT_INC_ATOMIC(state->net, drop);
diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conntrack.c
index d3326edcabf7..5768cfe8f594 100644
--- a/net/openvswitch/conntrack.c
+++ b/net/openvswitch/conntrack.c
@@ -825,7 +825,7 @@ static int __ovs_ct_lookup(struct net *net, struct sw_flow_key *key,
 		 * before the call.
 		 */
 		if (nf_ct_is_confirmed(ct) && !cached) {
-			int err = nf_ct_helper(skb, ct, ctinfo, info->family);
+			int err = nf_ct_helper(skb, ct, ctinfo);
 
 			err = verdict_to_errno(err);
 			if (err)
@@ -1032,7 +1032,7 @@ static int ovs_ct_commit(struct net *net, struct sw_flow_key *key,
 		/* Call the helpers now.  We couldn't do this before as
 		 * all the extensions must be allocated before the call.
 		 */
-		err = nf_ct_helper(skb, ct, ctinfo, info->family);
+		err = nf_ct_helper(skb, ct, ctinfo);
 		err = verdict_to_errno(err);
 		if (err)
 			return err;
diff --git a/net/sched/act_ct.c b/net/sched/act_ct.c
index 7602733d7f6b..500aa2639a8c 100644
--- a/net/sched/act_ct.c
+++ b/net/sched/act_ct.c
@@ -1115,7 +1115,7 @@ TC_INDIRECT_SCOPE int tcf_ct_act(struct sk_buff *skb, const struct tc_action *a,
 	 * extensions are already added.
 	 */
 	if (nf_ct_is_confirmed(ct) ? (!cached && !skip_add) : commit) {
-		err = nf_ct_helper(skb, ct, ctinfo, family);
+		err = nf_ct_helper(skb, ct, ctinfo);
 		if (err != NF_ACCEPT)
 			goto nf_error;
 	}
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH nf-next v4 6/9] netfilter: conntrack: harden helper invocation with tuple revalidation
       [not found] <20261203155812.8873-1-fw@strlen.de>
                   ` (3 preceding siblings ...)
  2026-12-03 15:58 ` [PATCH nf-next v4 5/9] netfilter: conntrack: replace open-coded helper invocation Florian Westphal
@ 2026-12-03 15:58 ` Florian Westphal
  2026-12-03 15:58 ` [PATCH nf-next v4 7/9] netfilter: conntrack: confirm ct when helper validation fails Florian Westphal
  5 siblings, 0 replies; 6+ messages in thread
From: Florian Westphal @ 2026-12-03 15:58 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal, stable

Complete hardening of the connection tracking helper invocation sequence
initiated in the previous refactoring commits.

1. Tuple Verification: Extracts the *current* tuple from the packet and
   verify it matches the connection tracking entry's tuple, either as-is
   (not yet NATed: act_ct and OVS may run the helper before a later
   ct action with nat translates the packet) or inverted against the
   other direction (already NATed, as on the netfilter hook path).
   This prevents helpers from being invoked on packets that may have been
   modified after the initial connection lookup, e.g. via act_ct ->
   pedit.  This also prevents the helper from operating on ICMP(v6) PMTU
   errors.

2. L4 Header Sanity: For TCP, ensure a full and sane header is present
   (doff).  For UDP, ensure the full header is present and that uh->len is
   neither smaller than the header nor larger than the remaining packet,
   as helpers compute the payload length from it.  UDP packets larger than
   64KiB have uh->len == 0 and are rejected for helpers on purpose: helpers
   deal with small signalling messages, and some (snmp, nat payload
   mangling) cannot handle uh->len == 0.  The packet is still tracked,
   only the helper invocation is skipped.

Also adds missing 'nhoff' to ipv6_skip_exthdr(), this would be required
for conntrack over bridges.

Fixes: 9fb9cbb1082d ("[NETFILTER]: Add nf_conntrack subsystem.")
Cc: stable@vger.kernel.org
Signed-off-by: Florian Westphal <fw@strlen.de>
---
 net/netfilter/nf_conntrack_proto.c | 115 ++++++++++++++++++++++++++++-
 1 file changed, 112 insertions(+), 3 deletions(-)

diff --git a/net/netfilter/nf_conntrack_proto.c b/net/netfilter/nf_conntrack_proto.c
index 40f08f846b33..97dd02ec59dc 100644
--- a/net/netfilter/nf_conntrack_proto.c
+++ b/net/netfilter/nf_conntrack_proto.c
@@ -131,11 +131,88 @@ static bool in_vrf_postrouting(const struct nf_hook_state *state)
 	return false;
 }
 
+/* Helpers and seqadj assume that a full, sane L4 header is present at
+ * protoff.  The tuple lookup only pulls the port numbers, so validate the rest.
+ */
+static bool nf_confirm_l4_hdr_ok(const struct sk_buff *skb,
+				 unsigned int protoff, u8 protonum)
+{
+	unsigned int l4len = skb->len - protoff;
+
+	switch (protonum) {
+	case IPPROTO_TCP: {
+		const struct tcphdr *th;
+		struct tcphdr _tcph;
+
+		th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph);
+		if (!th)
+			return false;
+
+		return th->doff * 4 >= sizeof(*th) && l4len >= th->doff * 4;
+	}
+	case IPPROTO_UDP: {
+		const struct udphdr *uh;
+		unsigned int udplen;
+		struct udphdr _uh;
+
+		/* Mirrors udp_error(): helpers compute the payload length
+		 * as uh->len - sizeof(struct udphdr).
+		 *
+		 * uh->len is 0 for UDP packets larger than 64KiB (ipv6 jumbogram,
+		 * big GSO skb).  Helpers do not support those: they handle small
+		 * signalling messages only, and some of them (snmp, nat payload
+		 * mangling) cannot cope with uh->len == 0.  Rejecting them here is
+		 * intentional: the helper is skipped, the packet is still tracked.
+		 */
+		uh = skb_header_pointer(skb, protoff, sizeof(_uh), &_uh);
+		if (!uh)
+			return false;
+
+		udplen = ntohs(uh->len);
+		return udplen >= sizeof(*uh) && udplen <= l4len;
+	}
+	}
+
+	return true;
+}
+
+/**
+ * nf_confirm_get_protoff() - Validate skb and get L4 header offset for helpers
+ * @skb: The socket buffer; must have a valid network header, pulled to L3.
+ * @net: The network namespace of the connection tracking entry.
+ * @ct:  The connection tracking entry associated with the packet.
+ * @ctinfo: The current connection track information (state) of the packet.
+ * @protoffp: Offset of the L4 header, written only on success.
+ * @pnum: L4 protocol number, written only on success.
+ *
+ * The caller must hold rcu_read_lock().
+ *
+ * Re-extracts the tuple from the packet and verifies that it matches the
+ * connection tracking entry, either as-is (packet not NAT-translated yet,
+ * e.g. tc/OVS before a later ct action with nat) or inverted against the
+ * other direction (NAT already applied, as on the netfilter hook path).
+ * This prevents helpers and seqadj from running on packets that were
+ * modified after the connection lookup, e.g. via act_ct -> pedit, and on
+ * ICMP(v6) error packets related to the connection.
+ *
+ * For TCP and UDP, also verifies that a full and sane L4 header is present
+ * at the L4 offset (tcp data offset, udp length field).
+ *
+ * A false return covers both packets that cannot be processed (fragment,
+ * truncated or malformed header) and packets whose tuple does not match
+ * the connection tracking entry.
+ *
+ * Return: true on success, false if the packet must not be passed to
+ * helpers or seqadj.
+ */
 bool nf_confirm_get_protoff(struct sk_buff *skb, struct net *net,
 			    struct nf_conn *ct,
 			    enum ip_conntrack_info ctinfo,
 			    unsigned int *protoffp, u8 *pnum)
 {
+	unsigned int nhoff = skb_network_offset(skb);
+	struct nf_conntrack_tuple tuple, invert;
+	enum ip_conntrack_dir dir;
 	unsigned int protoff;
 	__be16 frag_off;
 	int start;
@@ -144,12 +221,13 @@ bool nf_confirm_get_protoff(struct sk_buff *skb, struct net *net,
 	case NFPROTO_IPV4:
 		if (ip_is_fragment(ip_hdr(skb)))
 			return false;
-		protoff = skb_network_offset(skb) + ip_hdrlen(skb);
+		protoff = nhoff + ip_hdrlen(skb);
 		*pnum = ip_hdr(skb)->protocol;
 		break;
 	case NFPROTO_IPV6:
 		*pnum = ipv6_hdr(skb)->nexthdr;
-		start = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), pnum, &frag_off);
+		start = ipv6_skip_exthdr(skb, nhoff + sizeof(struct ipv6hdr),
+					 pnum, &frag_off);
 		if (start < 0 || frag_off)
 			return false;
 
@@ -160,6 +238,37 @@ bool nf_confirm_get_protoff(struct sk_buff *skb, struct net *net,
 		return false;
 	}
 
+	if (protoff > skb->len)
+		return false;
+
+	if (!nf_ct_get_tuplepr(skb, nhoff, nf_ct_l3num(ct), net, &tuple))
+		return false;
+
+	dir = CTINFO2DIR(ctinfo);
+
+	/* Either the packet has not been NAT-translated yet.  This is the case
+	 * for tc and OVS: a ct action without nat may look up the connection
+	 * and the helper may run before a later ct action with nat translates
+	 * the packet.  The packet tuple then matches the conntrack tuple in
+	 * this direction.
+	 */
+	if (!nf_ct_tuple_equal(&tuple, nf_ct_tuple(ct, dir))) {
+		/* Or NAT has been applied already (netfilter hooks, or a
+		 * previous tc/OVS ct action with nat): packet in original
+		 * direction has been subject to SNAT, i.e. inverted reply dir.
+		 * Packet in reply direction has been subject to DNAT, i.e.
+		 * inverted original direction.
+		 */
+		if (!nf_ct_invert_tuple(&invert, &tuple))
+			return false;
+
+		if (!nf_ct_tuple_equal(&invert, nf_ct_tuple(ct, !dir)))
+			return false;
+	}
+
+	if (!nf_confirm_l4_hdr_ok(skb, protoff, tuple.dst.protonum))
+		return false;
+
 	*protoffp = protoff;
 	return true;
 }
@@ -203,7 +312,7 @@ int nf_ct_call_helper(struct sk_buff *skb, struct nf_conn *ct,
 	 * adjusted in the netfilter hooks on the output path.  Callers outside
 	 * of the netfilter hooks (act_ct, OVS) have no such earlier pass.
 	 */
-	if (from_hook && nf_is_loopback_packet(skb))
+	if (seqadj_needed && from_hook && nf_is_loopback_packet(skb))
 		seqadj_needed = false;
 	if (!help && !seqadj_needed)
 		return NF_ACCEPT;
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH nf-next v4 7/9] netfilter: conntrack: confirm ct when helper validation fails
       [not found] <20261203155812.8873-1-fw@strlen.de>
                   ` (4 preceding siblings ...)
  2026-12-03 15:58 ` [PATCH nf-next v4 6/9] netfilter: conntrack: harden helper invocation with tuple revalidation Florian Westphal
@ 2026-12-03 15:58 ` Florian Westphal
  5 siblings, 0 replies; 6+ messages in thread
From: Florian Westphal @ 2026-12-03 15:58 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal, stable

nf_confirm_cthelper() is called via nf_conntrack_update() when a packet
that was queued to a userspace conntrack helper is reinjected with an
ACCEPT verdict.

When the l4 header can't be located -- the packet is a fragment, or the
header chain is malformed, or userspace rewrote the packet such that it
no longer matches the conntrack tuple -- the function returns NF_ACCEPT
without confirming the conntrack entry.

This is wrong for packets that were queued from the confirm hook itself,
which is the expected case: the userspace helper queues the packet from
within nf_confirm(), i.e. before the conntrack entry was added to the
hash table.  On reinject there is no later hook that could confirm the
entry, so the skb leaves the host with an unconfirmed conntrack entry
attached.

The entry is never inserted into the conntrack hash table, so later
packets of the same flow create new (unconfirmed) entries and nat,
helper and expectation state is lost.

Skip helper and seqadj processing as before, but fall through to
nf_conntrack_confirm().

Problem located during an LLM-assisted review of the helper hardening
series; verified by inspection.  No reproducer: it needs a userspace
conntrack helper whose verdict rewrites the reinjected packet into a
state that fails header validation.  As this isn't supposed to be
possible anymore, this patch should not have an observable effect.

Fixes: ee04805ff54a ("netfilter: conntrack: make conntrack userspace helpers work again")
Cc: stable@vger.kernel.org
Signed-off-by: Florian Westphal <fw@strlen.de>
---
 net/netfilter/nf_conntrack_core.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index 2ceb198c70ac..03c800f29ad5 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -2234,8 +2234,13 @@ static int nf_confirm_cthelper(struct sk_buff *skb, struct nf_conn *ct,
 		return NF_ACCEPT;
 
 	if (!nf_confirm_get_protoff(skb, nf_ct_net(ct), ct, ctinfo, &protoff,
-				   &pnum))
-		return NF_ACCEPT;
+				   &pnum)) {
+		/* Helper and seqadj are skipped, but the ct must still be
+		 * committed: the packet was queued from nf_confirm(), no
+		 * later hook will confirm it.
+		 */
+		return nf_conntrack_confirm(skb);
+	}
 
 	if (test_bit(IPS_SEQ_ADJUST_BIT, &ct->status) &&
 	    !nf_is_loopback_packet(skb)) {
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-03 15:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20261203155812.8873-1-fw@strlen.de>
2026-12-03 15:58 ` [PATCH nf-next v4 2/9] netfilter: nf_conntrack_h323: register H.245 helper as TCP Florian Westphal
2026-12-03 15:58 ` [PATCH nf-next v4 3/9] netfilter: conntrack: refactor helper call logic in nf_confirm() Florian Westphal
2026-12-03 15:58 ` [PATCH nf-next v4 4/9] netfilter: conntrack: verify L4 protocol before calling helper Florian Westphal
2026-12-03 15:58 ` [PATCH nf-next v4 5/9] netfilter: conntrack: replace open-coded helper invocation Florian Westphal
2026-12-03 15:58 ` [PATCH nf-next v4 6/9] netfilter: conntrack: harden helper invocation with tuple revalidation Florian Westphal
2026-12-03 15:58 ` [PATCH nf-next v4 7/9] netfilter: conntrack: confirm ct when helper validation fails Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox