UBSAN: array-index-out-of-bounds in f_uac2_opts_c_srate_store

Status: upstream: reported C repro on 2026/08/17 08:20
Reported-by: syzbot+f4e68b26bd8749a83655@syzkaller.appspotmail.com
First crash: 6d01h, last: 5d23h

Sample crash report:
================================================================================
UBSAN: array-index-out-of-bounds in drivers/usb/gadget/function/f_uac2.c:2082:1
index 10 is out of range for type 'int[10]'
CPU: 1 PID: 305 Comm: syz-executor266 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 __dump_stack+0x21/0x24 lib/dump_stack.c:88
 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
 dump_stack+0x15/0x24 lib/dump_stack.c:113
 ubsan_epilogue+0xe/0x40 lib/ubsan.c:151
 __ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:282
 f_uac2_opts_c_srate_store+0x1d7/0x2a0 drivers/usb/gadget/function/f_uac2.c:2082
 flush_write_buffer fs/configfs/file.c:207 [inline]
 configfs_write_iter+0x323/0x410 fs/configfs/file.c:229
 call_write_iter include/linux/fs.h:2282 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x5ef/0xd00 fs/read_write.c:584
 ksys_write+0x14a/0x260 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:646
 x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fb2ce0c1d39
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcb8fe9c48 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 6e6f635f796d2f2e RCX: 00007fb2ce0c1d39
RDX: 0000000000000053 RSI: 0000200000000440 RDI: 0000000000000003
RBP: 0000000000000001 R08: 0000000000000000 R09: 00007ffcb8fe9d78
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcb

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/17 09:32 android14-6.1 92668decd5e0 746171ee .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 UBSAN: array-index-out-of-bounds in f_uac2_opts_c_srate_store
2026/08/17 08:57 android14-6.1 92668decd5e0 746171ee .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 UBSAN: array-index-out-of-bounds in f_uac2_opts_c_srate_store
2026/08/17 08:15 android14-6.1 92668decd5e0 746171ee .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 UBSAN: array-index-out-of-bounds in f_uac2_opts_c_srate_store
2026/08/17 07:48 android14-6.1 92668decd5e0 746171ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 UBSAN: array-index-out-of-bounds in f_uac2_opts_c_srate_store
2026/08/17 07:47 android14-6.1 92668decd5e0 746171ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 UBSAN: array-index-out-of-bounds in f_uac2_opts_c_srate_store
* Struck through repros no longer work on HEAD.