Re: [PATCH] netfilter: fix int overflow in xt_alloc_table_info()
From: Pablo Neira Ayuso
Date: Sat Jan 06 2018 - 17:52:38 EST
On Thu, Dec 28, 2017 at 09:48:54AM +0100, Dmitry Vyukov wrote:
> 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().
Applied, thanks.