Netdev List
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: dickson.wu@certik.com
Cc: netfilter-devel@vger.kernel.org, Florian Westphal <fw@strlen.de>,
	Phil Sutter <phil@nwl.cc>,
	coreteam@netfilter.org, netdev@vger.kernel.org
Subject: Re: [PATCH nf 1/2] netfilter: conntrack: reject helper protocol mismatch
Date: Sat, 28 Nov 2026 23:02:42 +0100	[thread overview]
Message-ID: <awtPgpFi5A8RUCjt@chamomile> (raw)
In-Reply-To: <20261127-nf-ctproto2-v1-1-b5383cef8da2@certik.com>

On Fri, Nov 27, 2026 at 06:12:10PM +0000, Dickson Wu via B4 Relay wrote:
> From: Dickson Wu <dickson.wu@certik.com>
> 
> Conntrack templates can carry helpers selected from rule metadata instead
> of the packet protocol. nft_compat does not enforce its compatibility
> protocol when evaluating packets, so xt_CT can attach a UDP helper to a
> TCP conntrack. act_ct can likewise attach a helper configured for another
> protocol.
> 
> Helpers parse transport headers according to helper->l4proto. With the
> H.323 RAS helper attached to TCP traffic, NAT mangling in
> mangle_contents() crashes. Refuse to copy a template helper unless it
> matches the new conntrack protocol. This covers all template users in
> the common assignment path.
> 
> Fixes: 84f3bb9ae9db ("netfilter: xtables: add CT target")
> Signed-off-by: Dickson Wu <dickson.wu@certik.com>
> ---
> This was found and the fix prepared with AI coding tools (OpenAI Codex
> agents, with review by Claude). I went over the analysis and the patch
> before signing off.

There is ongoing work in the mailing list.

Your LLM is just reporting you something for which there are already
patches on the mailing list?

Could you please check the mailing list before posting duplicate
patches?

  reply	other threads:[~2026-11-28 22:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 21:09 [PATCH nf 0/2] netfilter: reject mismatched conntrack template protocols Dickson Wu via B4 Relay
2026-11-27 18:12 ` [PATCH nf 1/2] netfilter: conntrack: reject helper protocol mismatch Dickson Wu via B4 Relay
2026-11-28 22:02   ` Pablo Neira Ayuso [this message]
2026-11-28 22:34     ` Dickson Wu
2026-11-27 18:12 ` [PATCH nf 2/2] netfilter: conntrack: reject timeout " Dickson Wu via B4 Relay

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=awtPgpFi5A8RUCjt@chamomile \
    --to=pablo@netfilter.org \
    --cc=coreteam@netfilter.org \
    --cc=dickson.wu@certik.com \
    --cc=fw@strlen.de \
    --cc=netdev@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=phil@nwl.cc \
    /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