From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752884AbdJSLnp (ORCPT ); Thu, 19 Oct 2017 07:43:45 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57570 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752275AbdJSLno (ORCPT ); Thu, 19 Oct 2017 07:43:44 -0400 Date: Thu, 19 Oct 2017 13:43:51 +0200 From: Greg Kroah-Hartman To: Andrey Konovalov Cc: Johan Hovold , USB list , LKML , Dmitry Vyukov , Kostya Serebryany , syzkaller Subject: Re: usb/serial/visor: slab-out-of-bounds in palm_os_3_probe Message-ID: <20171019114351.GA23280@kroah.com> References: <20170929083755.GB17540@kroah.com> <20171003092940.GA3404@localhost> <20171004144015.GE13707@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 19, 2017 at 01:19:13PM +0200, Andrey Konovalov wrote: > On Wed, Oct 4, 2017 at 4:40 PM, Greg Kroah-Hartman > wrote: > > On Tue, Oct 03, 2017 at 11:29:40AM +0200, Johan Hovold wrote: > >> On Fri, Sep 29, 2017 at 10:37:55AM +0200, Greg Kroah-Hartman wrote: > >> > On Thu, Sep 28, 2017 at 07:57:46PM +0200, Andrey Konovalov wrote: > >> > > Hi! > >> > > > >> > > I've got the following report while fuzzing the kernel with syzkaller. > >> > > > >> > > On commit dc972a67cc54585bd83ad811c4e9b6ab3dcd427e (4.14-rc2+). > >> > > > >> > > There's no check on the connection_info->num_ports value when > >> > > iterating over ports. > >> > > > >> > > usb 1-1: Handspring Visor / Palm OS: port 162, is for unknown use > >> > > usb 1-1: Handspring Visor / Palm OS: port 81, is for unknown use > >> > > ================================================================== > >> > > BUG: KASAN: slab-out-of-bounds in palm_os_3_probe+0x4e4/0x570 > >> > > Read of size 1 at addr ffff8800686daa26 by task kworker/0:1/24 > >> > >> Thanks for the report, Andrey. > >> > >> > Ah, nice catch, this bug is _old_, sorry about that. > >> > > >> > The patch below should resolve this. It looks bigger than it really is, > >> > as I'm just moving the error checking higher up in the function, and > >> > loosing an indentation for when there is invalid data. > >> > > >> > Can you let me know if this solves the issue? > >> > >> And thanks for fixing this up, Greg. Will you send a proper patch that I > >> can apply? > > > > Yes, let me redo it based on your comments, and will send it out > > "correctly" in a few days. > > Hi Greg, > > I was going through the bugs I've reported, and it seems that you > didn't mail the patch for this one. Reminding in case you've > accidentally forgotten about it. It's not forgotten, it's on my TODO list, sorry, been swamped with other things these past few weeks. Hope to get to it soon... thanks, greg k-h