]> git.ipfire.org Git - thirdparty/linux.git/commit
netfilter: nf_tables: add netlink policy based cap on registers
authorFlorian Westphal <fw@strlen.de>
Fri, 13 Mar 2026 12:12:30 +0000 (13:12 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 8 Apr 2026 05:51:31 +0000 (07:51 +0200)
commit8e57338c3601d0cde806bd7e70c377109106c983
tree5c91aca637a394052dcaf3ff6031b50a360b1fed
parent66b75e6bbeeb489156a74534561bbbd360843a73
netfilter: nf_tables: add netlink policy based cap on registers

Should have no effect in practice; all of these use the
nft_parse_register_load/store apis which is mandatory anyway due
to the need to further validate the register load/store, e.g.
that the size argument doesn't result in out-of-bounds load/store.

OTOH this is a simple method to reject obviously wrong input
at earlier stage.

Signed-off-by: Florian Westphal <fw@strlen.de>
20 files changed:
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_bitwise.c
net/netfilter/nft_byteorder.c
net/netfilter/nft_cmp.c
net/netfilter/nft_ct.c
net/netfilter/nft_exthdr.c
net/netfilter/nft_fib.c
net/netfilter/nft_hash.c
net/netfilter/nft_immediate.c
net/netfilter/nft_lookup.c
net/netfilter/nft_meta.c
net/netfilter/nft_numgen.c
net/netfilter/nft_objref.c
net/netfilter/nft_osf.c
net/netfilter/nft_payload.c
net/netfilter/nft_range.c
net/netfilter/nft_rt.c
net/netfilter/nft_socket.c
net/netfilter/nft_tunnel.c
net/netfilter/nft_xfrm.c