From: Benjamin Tissoires <bentiss@kernel.org>
To: syzbot <syzbot+b63d677d63bcac06cf90@syzkaller.appspotmail.com>,
Alan Stern <stern@rowland.harvard.edu>
Cc: jikos@kernel.org, linux-input@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
syzkaller-bugs@googlegroups.com
Subject: Re: (subset) [syzbot] [input?] [usb?] UBSAN: shift-out-of-bounds in s32ton (2)
Date: Fri, 18 Jul 2025 18:08:40 +0200 [thread overview]
Message-ID: <175285492024.272050.11219945704830043047.b4-ty@kernel.org> (raw)
In-Reply-To: <8bec1698-5008-428f-8e71-ec002def0c54@rowland.harvard.edu>
On Tue, 15 Jul 2025 15:29:25 -0400, Alan Stern wrote:
> On Mon, Jul 14, 2025 at 10:10:32AM -0700, syzbot wrote:
> > Hello,
> >
> > syzbot found the following issue on:
> >
> > HEAD commit: b4b4dbfa96de media: stk1160: use usb_alloc_noncoherent/usb..
> > git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
> > console output: https://syzkaller.appspot.com/x/log.txt?x=15a830f0580000
> > kernel config: https://syzkaller.appspot.com/x/.config?x=28729dff5d03ad1
> > dashboard link: https://syzkaller.appspot.com/bug?extid=b63d677d63bcac06cf90
> > compiler: gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
> > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1614418c580000
> > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1257dd82580000
> >
> > Downloadable assets:
> > disk image: https://storage.googleapis.com/syzbot-assets/7301552ad828/disk-b4b4dbfa.raw.xz
> > vmlinux: https://storage.googleapis.com/syzbot-assets/c559b38fa1b6/vmlinux-b4b4dbfa.xz
> > kernel image: https://storage.googleapis.com/syzbot-assets/9c1da8b2a83f/bzImage-b4b4dbfa.xz
> >
> > IMPORTANT: if you fix the issue, please add the following tag to the commit:
> > Reported-by: syzbot+b63d677d63bcac06cf90@syzkaller.appspotmail.com
> >
> > usb 4-1: config 0 interface 0 altsetting 0 has 1 endpoint descriptor, different from the interface descriptor's value: 9
> > usb 4-1: New USB device found, idVendor=045e, idProduct=07da, bcdDevice= 0.00
> > usb 4-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
> > usb 4-1: config 0 descriptor??
> > microsoft 0003:045E:07DA.0001: ignoring exceeding usage max
> > microsoft 0003:045E:07DA.0001: unsupported Resolution Multiplier 0
> > ------------[ cut here ]------------
> > UBSAN: shift-out-of-bounds in drivers/hid/hid-core.c:69:16
> > shift exponent 4294967295 is too large for 32-bit type 'int'
> > CPU: 0 UID: 0 PID: 10 Comm: kworker/0:1 Not tainted 6.16.0-rc4-syzkaller-00314-gb4b4dbfa96de #0 PREEMPT(voluntary)
> > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
> > Workqueue: usb_hub_wq hub_event
> > Call Trace:
> > <TASK>
> > __dump_stack lib/dump_stack.c:94 [inline]
> > dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120
> > ubsan_epilogue lib/ubsan.c:233 [inline]
> > __ubsan_handle_shift_out_of_bounds+0x27f/0x420 lib/ubsan.c:494
> > s32ton.cold+0x37/0x9c drivers/hid/hid-core.c:69
> > hid_output_field drivers/hid/hid-core.c:1841 [inline]
> > hid_output_report+0x36f/0x4a0 drivers/hid/hid-core.c:1874
> > __hid_request+0x1e0/0x3c0 drivers/hid/hid-core.c:1987
> > hidinput_change_resolution_multipliers drivers/hid/hid-input.c:1950 [inline]
> > hidinput_connect+0x1ada/0x2bd0 drivers/hid/hid-input.c:2327
>
> [...]
Applied to hid/hid.git (for-6.17/core), thanks!
[1/1] HID: core: Reject report fields with a size or count of 0
https://git.kernel.org/hid/hid/c/bcf266ca2779
Cheers,
--
Benjamin Tissoires <bentiss@kernel.org>
next prev parent reply other threads:[~2025-07-18 16:08 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-14 17:10 syzbot
2025-07-14 18:38 ` Alan Stern
2025-07-14 18:50 ` syzbot
2025-07-14 19:48 ` Alan Stern
2025-07-14 20:28 ` syzbot
2025-07-15 19:29 ` Alan Stern
2025-07-15 19:50 ` syzbot
2025-07-16 14:29 ` Alan Stern
2025-07-16 14:50 ` syzbot
2025-07-16 15:58 ` Alan Stern
2025-07-17 11:48 ` Benjamin Tissoires
2025-07-17 15:10 ` Alan Stern
2025-07-17 15:49 ` syzbot
2025-07-18 2:33 ` [PATCH] HID: core: Reject report fields with a size or count of 0 Alan Stern
2025-07-19 8:36 ` Benjamin Tissoires
2025-07-19 8:40 ` Benjamin Tissoires
2025-07-19 14:48 ` Alan Stern
2025-07-21 13:05 ` Benjamin Tissoires
2025-07-21 13:56 ` Alan Stern
2025-07-23 9:32 ` Benjamin Tissoires
2025-07-23 14:34 ` Alan Stern
2025-07-23 14:37 ` [PATCH] HID: core: Harden s32ton() against conversion to 0 bits Alan Stern
2025-07-21 14:37 ` [syzbot] [input?] [usb?] UBSAN: shift-out-of-bounds in s32ton (2) Alan Stern
2025-07-21 15:23 ` syzbot
2025-07-18 16:08 ` Benjamin Tissoires [this message]
2025-07-23 9:36 ` (subset) " Benjamin Tissoires
2025-07-25 11:46 ` Benjamin Tissoires
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=175285492024.272050.11219945704830043047.b4-ty@kernel.org \
--to=bentiss@kernel.org \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=syzbot+b63d677d63bcac06cf90@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
all inboxes | Powered by JetHome®