]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commiteaa2bcd6d1d410a52df8c7b05e76d86c0319b7b0
treebfe420585bb687c2f58e916438aa4c8bee0a30c8
parent83170f3beccccd7ceb4f9a0ac0c4dc736afde90c
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