From: Subasri S <subasris1210@gmail.com>
To: Matthieu CASTET <castet.matthieu@free.fr>,
Stanislaw Gruszka <stf_xl@wp.pl>,
Chas Williams <3chas3@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Andrew Morton <akpm@osdl.org>
Cc: Greg Kroah-Hartman <gregkh@suse.de>,
linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
syzbot+92f5bf49bf4ac75223ca@syzkaller.appspotmail.com,
Subasri S <subasris1210@gmail.com>
Subject: [PATCH] usb: atm: ueagle-atm: fix array-index-out-of-bounds in uea_bind()
Date: Sun, 02 Aug 2026 11:59:24 +0530 [thread overview]
Message-ID: <20260802-usb-ueagble-atm-v1-1-340f085b04aa@gmail.com> (raw)
Add a bounds check on the global variable modem_index before
using it as an index in sync_wait[] array whose size is NB_MODEM.
Reported-by: syzbot+92f5bf49bf4ac75223ca@syzkaller.appspotmail.com
Tested-by: syzbot+92f5bf49bf4ac75223ca@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=92f5bf49bf4ac75223ca
Fixes: b72458a80c75 ("[PATCH] USB: Eagle and ADI 930 usb adsl modem driver")
Signed-off-by: Subasri S <subasris1210@gmail.com>
---
drivers/usb/atm/ueagle-atm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c
index 4266a0cb7e3b..61723e7ab351 100644
--- a/drivers/usb/atm/ueagle-atm.c
+++ b/drivers/usb/atm/ueagle-atm.c
@@ -2463,7 +2463,8 @@ static int uea_bind(struct usbatm_data *usbatm, struct usb_interface *intf,
if (ifnum != UEA_INTR_IFACE_NO)
return -ENODEV;
- usbatm->flags = (sync_wait[modem_index] ? 0 : UDSL_SKIP_HEAVY_INIT);
+ usbatm->flags = (modem_index < NB_MODEM && sync_wait[modem_index]) ?
+ 0 : UDSL_SKIP_HEAVY_INIT;
/* interface 1 is for outbound traffic */
ret = claim_interface(usb, usbatm, UEA_US_IFACE_NO);
---
base-commit: f5098b6bae761e346ebcd9da7f95622c04733cff
change-id: 20260802-usb-ueagble-atm-ca29d2bd4189
Best regards,
--
Subasri S <subasris1210@gmail.com>
next reply other threads:[~2026-08-02 6:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-02 6:29 Subasri S [this message]
2026-08-06 15:50 ` [PATCH] usb: atm: ueagle-atm: fix array-index-out-of-bounds in uea_bind() patchwork-bot+netdevbpf
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=20260802-usb-ueagble-atm-v1-1-340f085b04aa@gmail.com \
--to=subasris1210@gmail.com \
--cc=3chas3@gmail.com \
--cc=akpm@osdl.org \
--cc=castet.matthieu@free.fr \
--cc=gregkh@linuxfoundation.org \
--cc=gregkh@suse.de \
--cc=linux-atm-general@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=stf_xl@wp.pl \
--cc=syzbot+92f5bf49bf4ac75223ca@syzkaller.appspotmail.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