Re: [PATCH] Fix Null Pointer Dereference in uvcg_video_init()

Greg KH <[email protected]>
Newsgroups org.kernel.vger.linux-usb,org.kernel.vger.linux-kernel
Message-ID <2026073040-popular-provoke-8d7e@gregkh>
On Thu, Jul 30, 2026 at 11:27:05AM +0530, Jeffin Philip wrote:
> uvcg_video_init references video->uvc before assigning it
> leading to a null pointer dereference. Fix this by assigning
> video->uvc first and then dereferencing it later.

Please say _when_ this dereference happens (i.e. in an error path only,
right?)

> Reported-by: [email protected]
> Fixes: https://syzkaller.appspot.com/bug?extid=8dcac923582c28505fd7
> Signed-off-by: Jeffin Philip <[email protected]>

No cc: stable or Fixes: tag?

thanks,

greg k-h
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.