summaryrefslogtreecommitdiff
path: root/net/switchdev
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-01-30 15:21:34 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-01-31 15:00:33 +0100
commit1a38956cce5eabd7b74f94bab70265e4df83165e (patch)
treebc408aea9549988755c7b51bbe780c18b7e88be7 /net/switchdev
parent1e98ffea5a8935ec040ab72299e349cb44b8defd (diff)
netfilter: ipt_CLUSTERIP: fix out-of-bounds accesses in clusterip_tg_check()
Commit 136e92bbec0a switched local_nodes from an array to a bitmask but did not add proper bounds checks. As the result clusterip_config_init_nodelist() can both over-read ipt_clusterip_tgt_info.local_nodes and over-write clusterip_config.local_nodes. Add bounds checks for both. Fixes: 136e92bbec0a ("[NETFILTER] CLUSTERIP: use a bitmap to store node responsibility data") Signed-off-by: Dmitry Vyukov <dvyukov@google.com> Reported-by: syzbot <syzkaller@googlegroups.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/switchdev')
0 files changed, 0 insertions, 0 deletions