From: Ren Wei <weir@nebusec.ai>
To: netfilter-devel@vger.kernel.org, fw@strlen.de
Cc: pablo@netfilter.org, phil@nwl.cc, vega@nebusec.ai,
rakukuip@gmail.com, weir@nebusec.ai
Subject: [PATCH nf v2 0/1] netfilter: ip6t_rt: fix zero-address non-strict match out-of-bounds read
Date: Sun, 6 Sep 2026 21:29:54 +0800 [thread overview]
Message-ID: <cover.1788582542.git.rakukuip@gmail.com> (raw)
From: Luxiao Xu <rakukuip@gmail.com>
Hi Florian, netfilter maintainers,
This patch fixes an out-of-bounds read in net/ipv6/netfilter/ip6t_rt.c
reachable by unprivileged users with CAP_NET_ADMIN in user/net namespaces
when configuring non-strict routing match rules with addrnr == 0.
v1 -> v2:
- Move the loop termination check (i < rtinfo->addrnr) into the for-loop
header condition in rt_mt6() and remove the backwards break check at
the bottom of the loop body (suggested by Florian Westphal).
- v1 Link: https://lore.kernel.org/all/cover.1788337633.git.rakukuip@gmail.com/
Thanks,
Ren Wei
Luxiao Xu
Luxiao Xu (1):
netfilter: ip6t_rt: fix zero-address non-strict match out-of-bounds
read
net/ipv6/netfilter/ip6t_rt.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
--
2.43.0
next reply other threads:[~2026-09-06 13:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-06 13:29 Ren Wei [this message]
2026-09-06 13:29 ` [PATCH nf v2 1/1] netfilter: ip6t_rt: fix zero-address non-strict match out-of-bounds read Ren Wei
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=cover.1788582542.git.rakukuip@gmail.com \
--to=weir@nebusec.ai \
--cc=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
--cc=phil@nwl.cc \
--cc=rakukuip@gmail.com \
--cc=vega@nebusec.ai \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.