Re: [PATCH v2] usb: gadget: uvc: Fix Null Pointer Dereference in uvcg_video_init()
Greg KH <[email protected]> Thu, 30 Jul 2026 09:08:02 +0200
| Newsgroups | org.kernel.vger.linux-usb,org.kernel.vger.linux-kernel,org.kernel.vger.stable |
|---|---|
| Message-ID | <2026073054-shaky-radar-da75@gregkh> |
On Thu, Jul 30, 2026 at 12:32:07PM +0530, Jeffin Philip wrote: > In uvcg_video_init(), if kthread_run_worker() fails, > the error logged uses uvcg_err(), however, the pointer it uses: > video->uvc is not assigned at this point, triggering a null > pointer dereference. Fix this by directly using uvc->func which > is assigned already. > > Reported-by: [email protected] > Closes: https://syzkaller.appspot.com/bug?extid=8dcac923582c28505fd7 > Fixes: 7ea95b110811fa8e41f5960c278bcfc80b8b21c1 (usb: gadget: uvc: rename functions to avoid conflicts with host uvc) Can you please shorten the sha1, like the documentation should have mentioned? And did checkpatch.pl catch this? thanks, greg k-h