From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH v2 net] netfilter: x_tables: avoid out-of-bounds reads in xt_request_find_{match|target} Date: Thu, 25 Jan 2018 12:33:10 +0100 Message-ID: <20180125113310.zkhizswlqtt2m5yd@salvia> References: <1516834188.3715.35.camel@gmail.com> <20180124231952.GC14192@breakpoint.cc> <20180124235056.ahubcyqostttvtbx@salvia> <20180125001336.ilboagwlcpck54ip@salvia> <1516842969.3715.41.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Florian Westphal , netdev , netfilter-devel@vger.kernel.org To: Eric Dumazet Return-path: Received: from mail.us.es ([193.147.175.20]:55822 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750769AbeAYLdQ (ORCPT ); Thu, 25 Jan 2018 06:33:16 -0500 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id 0FA00E1227 for ; Thu, 25 Jan 2018 12:33:15 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 00549DA80D for ; Thu, 25 Jan 2018 12:33:15 +0100 (CET) Content-Disposition: inline In-Reply-To: <1516842969.3715.41.camel@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Jan 24, 2018 at 05:16:09PM -0800, Eric Dumazet wrote: > From: Eric Dumazet > > It looks like syzbot found its way into netfilter territory. > > Issue here is that @name comes from user space and might > not be null terminated. > > Out-of-bound reads happen, KASAN is not happy. > > v2 added similar fix for xt_request_find_target(), > as Florian advised. Applied, thanks Eric.