[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201227105305.GA3870@salvia>
Date: Sun, 27 Dec 2020 11:53:05 +0100
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Florian Westphal <fw@...len.de>
Cc: netfilter-devel@...r.kernel.org, netdev@...r.kernel.org,
torvalds@...ux-foundation.org, syzkaller-bugs@...glegroups.com,
syzbot+e86f7c428c8c50db65b4@...kaller.appspotmail.com
Subject: Re: [PATCH nf] netfilter: xt_RATEEST: reject non-null terminated
string from userspace
On Tue, Dec 22, 2020 at 11:23:56PM +0100, Florian Westphal wrote:
> syzbot reports:
> detected buffer overflow in strlen
> [..]
> Call Trace:
> strlen include/linux/string.h:325 [inline]
> strlcpy include/linux/string.h:348 [inline]
> xt_rateest_tg_checkentry+0x2a5/0x6b0 net/netfilter/xt_RATEEST.c:143
>
> strlcpy assumes src is a c-string. Check info->name before its used.
Applied, thanks Florian.
Powered by blists - more mailing lists