From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Cc: Florian Westphal <fw@strlen.de>, stable@vger.kernel.org
Subject: [PATCH nf-next v4 2/9] netfilter: nf_conntrack_h323: register H.245 helper as TCP
Date: Thu, 3 Dec 2026 16:58:05 +0100 [thread overview]
Message-ID: <20261203155812.8873-3-fw@strlen.de> (raw)
In-Reply-To: <20261203155812.8873-1-fw@strlen.de>
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
next parent reply other threads:[~2026-12-03 15:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261203155812.8873-1-fw@strlen.de>
2026-12-03 15:58 ` Florian Westphal [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203155812.8873-3-fw@strlen.de \
--to=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox