From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: Al Viro <viro@zeniv.linux.org.uk>,
linux-usb@vger.kernel.org, lvc-project@linuxtesting.org,
syzbot+6aa97991da41499aa852@syzkaller.appspotmail.com,
stable@vger.kernel.org
Subject: Re: [PATCH] usb: gadget: fix device data management error in gadgetfs_bind()
Date: Mon, 3 Aug 2026 11:15:48 +0200 [thread overview]
Message-ID: <2026080336-roast-sudden-e02e@gregkh> (raw)
In-Reply-To: <20260803091258.85969-1-dmantipov@yandex.ru>
On Mon, Aug 03, 2026 at 12:12:58PM +0300, Dmitry Antipov wrote:
> In 'gadgetfs_bind()', 'get_dev()' on appropriate 'struct dev_data'
> instance should be performed immediately after the pointer is stored.
> Otherwise an attempt to handle -ENOMEM later will issue an unbalanced
> 'put_dev()' in 'gadgetfs_unbind()', thus leading to UAF errors.
>
> Reported-by: syzbot+6aa97991da41499aa852@syzkaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=6aa97991da41499aa852
> Cc: stable@vger.kernel.org
> Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
> ---
> drivers/usb/gadget/legacy/inode.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
What commit id does this fix?
thanks,
greg k-h
next prev parent reply other threads:[~2026-08-03 9:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 9:12 [PATCH] usb: gadget: fix device data management error in gadgetfs_bind() Dmitry Antipov
2026-08-03 9:15 ` Greg Kroah-Hartman [this message]
2026-08-03 10:33 ` Dmitry Antipov
2026-08-03 12:24 ` Greg Kroah-Hartman
2026-08-03 13:08 ` Dmitry Antipov
2026-08-03 12:25 ` Greg Kroah-Hartman
2026-08-03 13:13 ` Dmitry Antipov
2026-08-03 13:26 ` Greg Kroah-Hartman
2026-08-03 13:36 ` Greg Kroah-Hartman
2026-08-03 14:05 ` Alan Stern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2026080336-roast-sudden-e02e@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=dmantipov@yandex.ru \
--cc=linux-usb@vger.kernel.org \
--cc=lvc-project@linuxtesting.org \
--cc=stable@vger.kernel.org \
--cc=syzbot+6aa97991da41499aa852@syzkaller.appspotmail.com \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.