]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: validate NFTA_SET_TABLE parameter
authorPhil Turnbull <phil.turnbull@oracle.com>
Fri, 27 May 2016 17:34:04 +0000 (13:34 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 May 2016 10:21:23 +0000 (12:21 +0200)
commite71ca85b59908f11638cb293f87693def3f3ee77
treebfe420585bb687c2f58e916438aa4c8bee0a30c8
parentf45830deb4eeeda2dcccf05d9f37d00cc3c7bc14
netfilter: nf_tables: validate NFTA_SET_TABLE parameter

If the NFTA_SET_TABLE parameter is missing and the NLM_F_DUMP flag is
not set, then a NULL pointer dereference is triggered in
nf_tables_set_lookup because ctx.table is NULL.

Signed-off-by: Phil Turnbull <phil.turnbull@oracle.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c