================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31 index 255 is out of range for type 'const int[34]' CPU: 0 PID: 5657 Comm: udevd Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __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 aiptek_irq+0x2045/0x29b0 drivers/input/tablet/aiptek.c:741 __usb_hcd_giveback_urb+0x360/0x520 drivers/usb/core/hcd.c:1675 usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1758 dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x398/0x890 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1766 handle_softirqs+0x1d7/0x600 kernel/softirq.c:642 __do_softirq kernel/softirq.c:680 [inline] invoke_softirq kernel/softirq.c:497 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729 irq_exit_rcu+0x9/0x10 kernel/softirq.c:741 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:__d_lookup+0x8/0x5b0 fs/dcache.c:2463 Code: 48 89 c3 e8 ca 80 ab ff 48 89 d8 5b 41 5e 41 5f 5d c3 90 90 90 90 90 90 90 90 90 90 90 b8 42 04 3e 0e 55 48 89 e5 41 57 41 56 <41> 55 41 54 53 48 83 ec 70 49 89 f4 49 89 ff 49 bd 00 00 00 00 00 RSP: 0018:ffffc900007677c0 EFLAGS: 00000246 RAX: ffffffff81c401b7 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88811bf63cc0 RSI: ffffc90000767bf0 RDI: ffff8881114d7220 RBP: ffffc900007677d0 R08: ffff88811bf63cc0 R09: 0000000000000002 R10: 000000000000002f R11: 0000000000000000 R12: ffff8881114d7220 R13: dffffc0000000000 R14: 1ffff920000ecf83 R15: ffffc90000767be0 lookup_fast+0x78/0x520 fs/namei.c:1655 walk_component fs/namei.c:2001 [inline] link_path_walk+0x608/0xeb0 fs/namei.c:2332 path_openat+0x27f/0x2f30 fs/namei.c:3786 do_filp_open+0x1ee/0x420 fs/namei.c:3817 do_sys_openat2+0x15e/0x820 fs/open.c:1343 do_sys_open fs/open.c:1359 [inline] __do_sys_openat fs/open.c:1375 [inline] __se_sys_openat fs/open.c:1370 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1370 x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 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:0x7f36a1ea7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffe51004660 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f36a253e880 RCX: 00007f36a1ea7407 RDX: 0000000000080000 RSI: 00007ffe510047e0 RDI: ffffffffffffff9c RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000055bc319547f5 R13: 000055bc319547f5 R14: 0000000000000001 R15: 000055bc3196f140 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30 index 256 is out of range for type 'const int[34]' CPU: 0 PID: 5657 Comm: udevd Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __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 aiptek_irq+0x1f14/0x29b0 drivers/input/tablet/aiptek.c:763 __usb_hcd_giveback_urb+0x360/0x520 drivers/usb/core/hcd.c:1675 usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1758 dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x398/0x890 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1766 handle_softirqs+0x1d7/0x600 kernel/softirq.c:642 __do_softirq kernel/softirq.c:680 [inline] invoke_softirq kernel/softirq.c:497 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729 irq_exit_rcu+0x9/0x10 kernel/softirq.c:741 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:__d_lookup+0x8/0x5b0 fs/dcache.c:2463 Code: 48 89 c3 e8 ca 80 ab ff 48 89 d8 5b 41 5e 41 5f 5d c3 90 90 90 90 90 90 90 90 90 90 90 b8 42 04 3e 0e 55 48 89 e5 41 57 41 56 <41> 55 41 54 53 48 83 ec 70 49 89 f4 49 89 ff 49 bd 00 00 00 00 00 RSP: 0018:ffffc900007677c0 EFLAGS: 00000246 RAX: ffffffff81c401b7 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88811bf63cc0 RSI: ffffc90000767bf0 RDI: ffff8881114d7220 RBP: ffffc900007677d0 R08: ffff88811bf63cc0 R09: 0000000000000002 R10: 000000000000002f R11: 0000000000000000 R12: ffff8881114d7220 R13: dffffc0000000000 R14: 1ffff920000ecf83 R15: ffffc90000767be0 lookup_fast+0x78/0x520 fs/namei.c:1655 walk_component fs/namei.c:2001 [inline] link_path_walk+0x608/0xeb0 fs/namei.c:2332 path_openat+0x27f/0x2f30 fs/namei.c:3786 do_filp_open+0x1ee/0x420 fs/namei.c:3817 do_sys_openat2+0x15e/0x820 fs/open.c:1343 do_sys_open fs/open.c:1359 [inline] __do_sys_openat fs/open.c:1375 [inline] __se_sys_openat fs/open.c:1370 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1370 x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 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:0x7f36a1ea7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffe51004660 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f36a253e880 RCX: 00007f36a1ea7407 RDX: 0000000000080000 RSI: 00007ffe510047e0 RDI: ffffffffffffff9c RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000055bc319547f5 R13: 000055bc319547f5 R14: 0000000000000001 R15: 000055bc3196f140 ================================================================================ ================================================================== BUG: KASAN: global-out-of-bounds in aiptek_irq+0x1f32/0x29b0 drivers/input/tablet/aiptek.c:763 Read of size 4 at addr ffffffff85e65900 by task udevd/5657 CPU: 0 PID: 5657 Comm: udevd Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:350 aiptek_irq+0x1f32/0x29b0 drivers/input/tablet/aiptek.c:763 __usb_hcd_giveback_urb+0x360/0x520 drivers/usb/core/hcd.c:1675 usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1758 dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x398/0x890 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1766 handle_softirqs+0x1d7/0x600 kernel/softirq.c:642 __do_softirq kernel/softirq.c:680 [inline] invoke_softirq kernel/softirq.c:497 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729 irq_exit_rcu+0x9/0x10 kernel/softirq.c:741 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:__d_lookup+0x8/0x5b0 fs/dcache.c:2463 Code: 48 89 c3 e8 ca 80 ab ff 48 89 d8 5b 41 5e 41 5f 5d c3 90 90 90 90 90 90 90 90 90 90 90 b8 42 04 3e 0e 55 48 89 e5 41 57 41 56 <41> 55 41 54 53 48 83 ec 70 49 89 f4 49 89 ff 49 bd 00 00 00 00 00 RSP: 0018:ffffc900007677c0 EFLAGS: 00000246 RAX: ffffffff81c401b7 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88811bf63cc0 RSI: ffffc90000767bf0 RDI: ffff8881114d7220 RBP: ffffc900007677d0 R08: ffff88811bf63cc0 R09: 0000000000000002 R10: 000000000000002f R11: 0000000000000000 R12: ffff8881114d7220 R13: dffffc0000000000 R14: 1ffff920000ecf83 R15: ffffc90000767be0 lookup_fast+0x78/0x520 fs/namei.c:1655 walk_component fs/namei.c:2001 [inline] link_path_walk+0x608/0xeb0 fs/namei.c:2332 path_openat+0x27f/0x2f30 fs/namei.c:3786 do_filp_open+0x1ee/0x420 fs/namei.c:3817 do_sys_openat2+0x15e/0x820 fs/open.c:1343 do_sys_open fs/open.c:1359 [inline] __do_sys_openat fs/open.c:1375 [inline] __se_sys_openat fs/open.c:1370 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1370 x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258 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:0x7f36a1ea7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffe51004660 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f36a253e880 RCX: 00007f36a1ea7407 RDX: 0000000000080000 RSI: 00007ffe510047e0 RDI: ffffffffffffff9c RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000055bc319547f5 R13: 000055bc319547f5 R14: 0000000000000001 R15: 000055bc3196f140 The buggy address belongs to the variable: aiptek_ids+0x120/0x160 The buggy address belongs to the physical page: page:ffffea0000179940 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e65 flags: 0x1000(reserved|zone=0) raw: 0000000000001000 ffffea0000179948 ffffea0000179948 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffffffff85e65800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff85e65880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffff85e65900: f9 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 f9 f9 f9 ^ ffffffff85e65980: f9 f9 f9 f9 05 f9 f9 f9 07 f9 f9 f9 00 05 f9 f9 ffffffff85e65a00: 04 f9 f9 f9 00 f9 f9 f9 07 f9 f9 f9 06 f9 f9 f9 ================================================================== aiptek 4-1:0.0: aiptek_irq - usb_submit_urb failed with result -19 ---------------- Code disassembly (best guess): 0: 48 89 c3 mov %rax,%rbx 3: e8 ca 80 ab ff call 0xffab80d2 8: 48 89 d8 mov %rbx,%rax b: 5b pop %rbx c: 41 5e pop %r14 e: 41 5f pop %r15 10: 5d pop %rbp 11: c3 ret 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: b8 42 04 3e 0e mov $0xe3e0442,%eax 22: 55 push %rbp 23: 48 89 e5 mov %rsp,%rbp 26: 41 57 push %r15 28: 41 56 push %r14 * 2a: 41 55 push %r13 <-- trapping instruction 2c: 41 54 push %r12 2e: 53 push %rbx 2f: 48 83 ec 70 sub $0x70,%rsp 33: 49 89 f4 mov %rsi,%r12 36: 49 89 ff mov %rdi,%r15 39: 49 rex.WB 3a: bd 00 00 00 00 mov $0x0,%ebp