]> git.karo-electronics.de Git - karo-tx-linux.git/commit
netfilter: nf_tables: validate maximum value of u32 netlink attributes
authorLaura Garcia Liebana <nevola@gmail.com>
Wed, 14 Sep 2016 13:00:02 +0000 (15:00 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 23 Sep 2016 07:29:02 +0000 (09:29 +0200)
commit36b701fae12ac763a568037e4e7c96b5727a8b3e
tree51cf6649e755c9ee786cfdbbd9d03a6d22baf37c
parent2b03bf732488a3c2e920afe22c03b82cb8477e28
netfilter: nf_tables: validate maximum value of u32 netlink attributes

Fetch value and validate u32 netlink attribute. This validation is
usually required when the u32 netlink attributes are being stored in a
field whose size is smaller.

This patch revisits 4da449ae1df9 ("netfilter: nft_exthdr: Add size check
on u8 nft_exthdr attributes").

Fixes: 96518518cc41 ("netfilter: add nftables")
Suggested-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_bitwise.c
net/netfilter/nft_byteorder.c
net/netfilter/nft_cmp.c
net/netfilter/nft_exthdr.c
net/netfilter/nft_immediate.c