[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.1905240951470.1435-100000@iolanthe.rowland.org>
Date: Fri, 24 May 2019 09:54:02 -0400 (EDT)
From: Alan Stern <stern@...land.harvard.edu>
To: Mauro Carvalho Chehab <mchehab@...nel.org>,
Greg KH <greg@...ah.com>
cc: andreyknvl@...gle.com,
Kernel development list <linux-kernel@...r.kernel.org>,
<linux-media@...r.kernel.org>,
USB list <linux-usb@...r.kernel.org>,
<syzkaller-bugs@...glegroups.com>, <wen.yang99@....com.cn>
Subject: Re: [PATCH] media: usb: siano: Fix general protection fault in smsusb
On Fri, 24 May 2019, Mauro Carvalho Chehab wrote:
> Em Tue, 7 May 2019 12:39:47 -0400 (EDT)
> Alan Stern <stern@...land.harvard.edu> escreveu:
>
> > The syzkaller USB fuzzer found a general-protection-fault bug in the
> > smsusb part of the Siano DVB driver. The fault occurs during probe
> > because the driver assumes without checking that the device has both
> > IN and OUT endpoints and the IN endpoint is ep1.
> >
> > By slightly rearranging the driver's initialization code, we can make
> > the appropriate checks early on and thus avoid the problem. If the
> > expected endpoints aren't present, the new code safely returns -ENODEV
> > from the probe routine.
> >
> > Signed-off-by: Alan Stern <stern@...land.harvard.edu>
> > Reported-and-tested-by: syzbot+53f029db71c19a47325a@...kaller.appspotmail.com
> > CC: <stable@...r.kernel.org>
> Patch looks correct, and I'm applying it. It exposes another potential
> problem though: what happens if sizeof(desc.wMaxPacketSize) < sizeof(struct sms_msg_hdr)?
>
> I'm enclosing a followup patch that should solve this situation
> (and clean up a sparse warning).
>
> Thanks,
> Mauro
Your points are well taken.
However, Greg KH has already taken the original patch and a fix for the
sparse warning into his tree. I guess the two of you should figure out
how best to straighten this out.
Alan Stern
Powered by blists - more mailing lists