summaryrefslogtreecommitdiffstats
path: root/Kconfig
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-12-28 09:48:54 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-01-07 00:17:23 +0100
commit889c604fd0b5f6d3b8694ade229ee44124de1127 (patch)
treed7e8dc5118203cf51daeb5316569d2a3f381cad0 /Kconfig
parentd1616f07e8f1a4a490d1791316d4a68906b284aa (diff)
downloadlinux-889c604fd0b5f6d3b8694ade229ee44124de1127.tar.gz
linux-889c604fd0b5f6d3b8694ade229ee44124de1127.tar.bz2
linux-889c604fd0b5f6d3b8694ade229ee44124de1127.zip
netfilter: x_tables: fix int overflow in xt_alloc_table_info()
syzkaller triggered OOM kills by passing ipt_replace.size = -1 to IPT_SO_SET_REPLACE. The root cause is that SMP_ALIGN() in xt_alloc_table_info() causes int overflow and the size check passes when it should not. SMP_ALIGN() is no longer needed leftover. Remove SMP_ALIGN() call in xt_alloc_table_info(). Reported-by: syzbot+4396883fa8c4f64e0175@syzkaller.appspotmail.com Signed-off-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions