diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-01-21 16:07:00 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-29 16:43:24 +0100 |
commit | 1f7a1bcd27c388b4cc286e943218c69db2d3ba71 (patch) | |
tree | 67cf7102f0d597e6f5cb06a6565321b462de5b92 /net/x25 | |
parent | 5b0d87620bbe943e12c802255b76f4356de1093b (diff) | |
download | linux-stable-1f7a1bcd27c388b4cc286e943218c69db2d3ba71.tar.gz linux-stable-1f7a1bcd27c388b4cc286e943218c69db2d3ba71.tar.bz2 linux-stable-1f7a1bcd27c388b4cc286e943218c69db2d3ba71.zip |
netfilter: nf_tables: add __nft_chain_type_get()
commit 826035498ec14b77b62a44f0cb6b94d45530db6f upstream.
This new helper function validates that unknown family and chain type
coming from userspace do not trigger an out-of-bound array access. Bail
out in case __nft_chain_type_get() returns NULL from
nft_chain_parse_hook().
Fixes: 9370761c56b6 ("netfilter: nf_tables: convert built-in tables/chains to chain types")
Reported-by: syzbot+156a04714799b1d480bc@syzkaller.appspotmail.com
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/x25')
0 files changed, 0 insertions, 0 deletions