From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] net: validate attribute sizes in neigh_dump_table() Date: Thu, 12 Apr 2018 21:50:16 -0400 (EDT) Message-ID: <20180412.215016.1190154950435089625.davem@davemloft.net> References: <20180411214600.203361-1-edumazet@google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com, dsa@cumulusnetworks.com To: edumazet@google.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:60452 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753724AbeDMBuS (ORCPT ); Thu, 12 Apr 2018 21:50:18 -0400 In-Reply-To: <20180411214600.203361-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Wed, 11 Apr 2018 14:46:00 -0700 > Since neigh_dump_table() calls nlmsg_parse() without giving policy > constraints, attributes can have arbirary size that we must validate > > Reported by syzbot/KMSAN : ... > Fixes: 21fdd092acc7 ("net: Add support for filtering neigh dump by master device") > Signed-off-by: Eric Dumazet > Cc: David Ahern > Reported-by: syzbot Applied and queued up for -stable.