diff options
author | Florian Westphal <fw@strlen.de> | 2018-06-07 21:34:43 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-06-08 12:40:56 +0200 |
commit | c568503ef02030f169c9e19204def610a3510918 (patch) | |
tree | b0ba7bf264106a74e9efe06c39cf401a810ffad4 /drivers/s390 | |
parent | 64e6dd1fb2f1ed799f317dc34aa6e251c64f4981 (diff) | |
download | linux-stable-c568503ef02030f169c9e19204def610a3510918.tar.gz linux-stable-c568503ef02030f169c9e19204def610a3510918.tar.bz2 linux-stable-c568503ef02030f169c9e19204def610a3510918.zip |
netfilter: x_tables: initialise match/target check parameter struct
syzbot reports following splat:
BUG: KMSAN: uninit-value in ebt_stp_mt_check+0x24b/0x450
net/bridge/netfilter/ebt_stp.c:162
ebt_stp_mt_check+0x24b/0x450 net/bridge/netfilter/ebt_stp.c:162
xt_check_match+0x1438/0x1650 net/netfilter/x_tables.c:506
ebt_check_match net/bridge/netfilter/ebtables.c:372 [inline]
ebt_check_entry net/bridge/netfilter/ebtables.c:702 [inline]
The uninitialised access is
xt_mtchk_param->nft_compat
... which should be set to 0.
Fix it by zeroing the struct beforehand, same for tgchk.
ip(6)tables targetinfo uses c99-style initialiser, so no change
needed there.
Reported-by: syzbot+da4494182233c23a5fcf@syzkaller.appspotmail.com
Fixes: 55917a21d0cc0 ("netfilter: x_tables: add context to know if extension runs from nft_compat")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions