]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: underflow in nft_parse_u32_check()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Oct 2016 09:14:29 +0000 (12:14 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 17 Oct 2016 15:43:53 +0000 (17:43 +0200)
commitd5177e223469cc16c375eaf89cd0d035c4490e6f
treedc43e492d23803c86071082981d33ef7094fc5f7
parent847ee5f3f4b0d3ac9a3c1630d55eed75626afffb
netfilter: nf_tables: underflow in nft_parse_u32_check()

We don't want to allow negatives here.

Fixes: 0ac0eef6b02c ('netfilter: nf_tables: validate maximum value of u32 netlink attributes')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c