Re: [syzbot] [usb?] KASAN: slab-use-after-free Read in ep_open

From: Greg KH

Date: Wed Aug 19 2026 - 08:27:14 EST


On Tue, Aug 18, 2026 at 11:37:16AM -0400, Alan Stern wrote:
> On Tue, Aug 18, 2026 at 09:42:34AM +0200, Greg KH wrote:
> > On Mon, Aug 17, 2026 at 02:14:17PM -0400, Alan Stern wrote:
> > > Greg:
> > >
> > > Has this patch ever been queued?
> > >
> > > https://lore.kernel.org/linux-usb/ee41fbfd-f368-4a06-95d6-ae9b4267fd82@xxxxxxxxxxxxxxx/
> >
> > No because it looks like there are competing patches here as you point
> > out.
> >
> > > Looks like you can add syzbot's Tested-by: tag, as well as my Acked-by:.
> > >
> > > Note that a different patch to fix the same problem was submitted here:
> > >
> > > https://lore.kernel.org/linux-usb/20260731230603.4637-1-kartikey406@xxxxxxxxx/
> > >
> > > IMO the first patch above is superior.
> >
> > So Aleksandr's patch should be applied and not Deepanshu's?
>
> That's my recommendation. You can take a quick look at the two patches
> and see what you think.
>
> We haven't heard back from Deepanshu. Aleksandr doesn't seem to have
> strong feelings either way.

Aleksandr's patch is much more simple, and relies on the reference
counting logic in the inode itself, instead of "hand rolling" it like
Deepanshu's does.

I'll take it after -rc1 is out. As this is a syzbot-only type of thing,
there's no rush here.

thanks,

greg k-h