From: Guanglei Zhu <zhugl3@xiaopeng.com>
To: Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org, linux-kernel@vger.kernel.org,
pablo@netfilter.org, phil@nwl.cc, liuwb@xiaopeng.com
Subject: Re: [PATCH] netfilter: nf_conntrack_h323: fix NULL deref in decode_seqof()
Date: Mon, 12 Oct 2026 17:20:44 +0800 [thread overview]
Message-ID: <20261012092044.925598-1-zhugl3@xiaopeng.com> (raw)
In-Reply-To: <20261012090835.920932-1-zhugl3@xiaopeng.com>
You are right, I could not find a reachable path either.
I re-checked all call sites that would invoke decode_seqof() without
a DECODE guard:
- decode_seq() root loop: every SEQOF entry with a NULL fields
pointer sits outside the root window (index >= f->lb); the ones
inside the root window carry STOP or OPEN.
- decode_seq() extension loop: entries without DECODE are skipped
with bs->cur += len, decode_seqof() is never called for them.
- decode_choice() and the decode_seqof() item loop: no NULL-fields
SEQOF entries among the options/items without STOP or OPEN either.
So f->fields can only be NULL when decode_seqof() is called from
outside the decoder, which is what my test module did. The KASAN
report only demonstrates the in-function deref, not reachability
from a packet.
Please drop this patch.
prev parent reply other threads:[~2026-10-12 9:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-12 9:08 Guanglei Zhu
2026-10-12 9:12 ` Florian Westphal
2026-10-12 9:20 ` Guanglei Zhu [this message]
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=20261012092044.925598-1-zhugl3@xiaopeng.com \
--to=zhugl3@xiaopeng.com \
--cc=fw@strlen.de \
--cc=linux-kernel@vger.kernel.org \
--cc=liuwb@xiaopeng.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.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
all inboxes | Powered by JetHome®