All of lore.kernel.org
 help / color / mirror / Atom feed
* Raw Payload Expressions - out of bounds write?
@ 2025-01-23  3:31 Sunny73Cr
  2025-01-26 13:50 ` Florian Westphal
  0 siblings, 1 reply; 15+ messages in thread
From: Sunny73Cr @ 2025-01-23  3:31 UTC (permalink / raw)
  To: netfilter@vger.kernel.org

Hi,

Raw Payload Expressions - does this cause an out of bounds write?

1. Input configuration file (modification to /etc/nftables.conf):

chain output {
  type filter hook output priority filter;

  @ih,58,6 set 0 \
  @ih,86,6 set 0 \
  @ih,170,22 set 0 \
  accept;
}

2. run /etc/nftables.conf

3. Output ruleset (/usr/sbin/nft list rulset):

chain output {
 type filter hook output priority filter; policy accept;
 @ih,48,16 set @ih,48,16 & 0x3f \
 @ih,80,16 set @ih,80,16 & 0x3f0 \
 @ih,160,32 set @ih,160,32 @0x3fffff \
 accept;
}

The mask appears correct for the first re-write, but subsequent re-writes appear to be too large.

Please advise.

sunny

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-12-02  5:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-23  3:31 Raw Payload Expressions - out of bounds write? Sunny73Cr
2025-01-26 13:50 ` Florian Westphal
2025-01-26 18:08   ` Sunny73Cr
2025-01-28  0:37     ` Florian Westphal
2025-01-28  4:19       ` Sunny73Cr
2025-01-28 12:02         ` Jeremy Sowden
2025-01-28 12:12           ` Sunny73Cr
2025-01-28 12:41       ` Pablo Neira Ayuso
2025-01-30 11:27         ` Sunny73Cr
2025-02-08 20:26           ` Sunny73Cr
2025-02-09  1:47             ` Florian Westphal
2025-02-09  3:12               ` Sunny73Cr
2025-02-09 22:23                 ` Pablo Neira Ayuso
2025-02-09 22:45                   ` Sunny73Cr
2025-12-02  5:22                     ` Sunny73Cr

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.