The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+3d45d763d18796f97412@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [usb?] KASAN: slab-use-after-free Read in uea_upload_pre_firmware
Date: Sun, 12 Jul 2026 08:09:12 +0800	[thread overview]
Message-ID: <20260712000913.519-1-hdanton@sina.com> (raw)
In-Reply-To: <6a42df07.854d4ab9.360e1d.000d.GAE@google.com>

> Date: Mon, 29 Jun 2026 14:09:27 -0700
> Hello,
> 
> syzbot found the following issue on:
> 
> HEAD commit:    3d5670d672ae Add linux-next specific files for 20260626
> git tree:       linux-next
> console output: https://syzkaller.appspot.com/x/log.txt?x=10b76dfe580000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=2bb8183b2d472f18
> dashboard link: https://syzkaller.appspot.com/bug?extid=3d45d763d18796f97412
> compiler:       Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=15fa0e1c580000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=13519391580000

#syz test

--- x/drivers/usb/atm/ueagle-atm.c
+++ y/drivers/usb/atm/ueagle-atm.c
@@ -2605,9 +2605,11 @@ static void uea_disconnect(struct usb_in
 		usbatm_usb_disconnect(intf);
 		mutex_unlock(&uea_mutex);
 		uea_info(usb, "ADSL device removed\n");
-	} else if (usb->config->desc.bNumInterfaces == 1) {
+	} else {
 		struct completion *fw_done = usb_get_intfdata(intf);
 
+		if (!fw_done)
+			return;
 		uea_dbg(usb, "pre-firmware device, waiting firmware upload\n");
 		wait_for_completion(fw_done);
 		uea_dbg(usb, "pre-firmware device, finished waiting\n");
--

  parent reply	other threads:[~2026-07-12  0:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-29 21:09 [syzbot] [usb?] KASAN: slab-use-after-free Read in uea_upload_pre_firmware syzbot
2026-06-30  0:31 ` Forwarded: [PATCH] usb: atm: ueagle: fix use-after-free in uea_upload_pre_firmware() syzbot
2026-07-11 14:49 ` [PATCH] usb: atm: ueagle-atm: fix use-after-free in uea_upload_pre_firmware Yuhong Cheng
2026-07-12  0:09 ` Hillf Danton [this message]
2026-07-12  2:07   ` [syzbot] [usb?] KASAN: slab-use-after-free Read " syzbot
     [not found] <20260630003054.93672-1-kartikey406@gmail.com>
2026-06-30  2:48 ` syzbot

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=20260712000913.519-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+3d45d763d18796f97412@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox