From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Julien Moutinho <julm+netfilter@sourcephile.fr>
Cc: netfilter@vger.kernel.org, Dominique Martinet <asmadeus@codewreck.org>
Subject: Re: Raw payload matching beyond 2040 bits
Date: Wed, 7 Sep 2022 16:55:38 +0200 [thread overview]
Message-ID: <Yxiw6g7/NpotoRqJ@salvia> (raw)
In-Reply-To: <20220819100738.63yvp7iggoilt2uc@sourcephile.fr>
On Fri, Aug 19, 2022 at 12:07:38PM +0200, Julien Moutinho wrote:
> Hi netfilter@,
>
> Apparently matching beyond 2040 bits (255 bytes) starts again at 0 or something like that.
> Not sure whether this is intended or not,
> but in this case a warning would be appreciated.
>
> Thanks for your work,
> Julien
>
> # nft add rule inet nat prerouting udp dport 4242 @th,2040,128 0x12345678912345678912345678912345 log
>
> # nft add rule inet nat prerouting udp dport 4242 @th,2048,128 0x12345678912345678912345678912345 log
>
> # nft list ruleset | grep 4242
> udp dport 4242 @th,2040,128 0x12345678912345678912345678912345 log
> udp dport 4242 udp sport 4660 udp dport 22136 udp length 37155 udp checksum 17767 @th,64,64 0x8912345678912345 log
Upstream kernel fix:
commit 94254f990c07e9ddf1634e0b727fab821c3b5bf9
Author: Pablo Neira Ayuso <pablo@netfilter.org>
Date: Sun Aug 21 11:47:04 2022 +0200
netfilter: nft_payload: report ERANGE for too long offset and length
prev parent reply other threads:[~2022-09-07 14:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-19 10:07 Raw payload matching beyond 2040 bits Julien Moutinho
2022-08-19 10:37 ` Florian Westphal
2022-09-07 14:55 ` Pablo Neira Ayuso [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=Yxiw6g7/NpotoRqJ@salvia \
--to=pablo@netfilter.org \
--cc=asmadeus@codewreck.org \
--cc=julm+netfilter@sourcephile.fr \
--cc=netfilter@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