From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751908AbdIUIhp (ORCPT ); Thu, 21 Sep 2017 04:37:45 -0400 Received: from mail-lf0-f52.google.com ([209.85.215.52]:44370 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751521AbdIUIhn (ORCPT ); Thu, 21 Sep 2017 04:37:43 -0400 X-Google-Smtp-Source: AOwi7QDBrFNd9b6OJVXs9T3tvApqvltNwKMlAVzVAsMsZlhtUjyfeSW39PyublEUgRQjQk5v3OfKBA== Date: Thu, 21 Sep 2017 10:37:39 +0200 From: Johan Hovold To: Andrey Konovalov Cc: Mauro Carvalho Chehab , Oleh Kravchenko , Hans Verkuil , Johan Hovold , linux-media@vger.kernel.org, LKML , Dmitry Vyukov , Kostya Serebryany , syzkaller Subject: Re: usb/media/cx231xx: null-ptr-deref in cx231xx_usb_probe Message-ID: <20170921083739.GI3198@localhost> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 20, 2017 at 08:54:08PM +0200, Andrey Konovalov wrote: > Hi! > > I've got the following report while fuzzing the kernel with syzkaller. > > On commit ebb2c2437d8008d46796902ff390653822af6cc4 (Sep 18). > > The null-ptr-deref happens on assoc_desc->bFirstInterface, where > assoc_desc = udev->actconfig->intf_assoc[0]. There seems to be no > check that the device actually contains an Interface Association > Descriptor. That is indeed a bug; I'll respond to this mail with a fix. Thanks, Johan