syzbot


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

Status: upstream: reported C repro on 2026/06/11 06:49
Reported-by: syzbot+0370e3eb6ccb3375862e@syzkaller.appspotmail.com
First crash: 3d16h, last: 1d12h
Similar bugs (6)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 UBSAN: array-index-out-of-bounds in aiptek_irq 15 C 15 7h34m 4d03h 0/3 upstream: reported C repro on 2026/06/10 19:26
android-6-1 UBSAN: array-index-out-of-bounds in aiptek_irq origin:upstream 15 C 38 11m 4d07h 0/2 upstream: reported C repro on 2026/06/10 15:23
linux-6.6 UBSAN: array-index-out-of-bounds in aiptek_irq 15 C 12 7h31m 4d02h 0/2 upstream: reported C repro on 2026/06/10 20:15
android-6-12 UBSAN: array-index-out-of-bounds in aiptek_irq 15 C 95 4h19m 4d10h 0/1 premoderation: reported C repro on 2026/06/10 12:41
linux-5.15 UBSAN: array-index-out-of-bounds in aiptek_irq origin:lts-only 15 C 3 1d08h 4d05h 0/3 upstream: reported C repro on 2026/06/10 17:51
android-5-10 UBSAN: array-index-out-of-bounds in aiptek_irq 15 C 15 3d15h 4d09h 0/2 upstream: reported C repro on 2026/06/10 13:22

Sample crash report:
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 547 is out of range for type 'const int[34]'
CPU: 0 PID: 0 Comm: swapper/0 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
 <IRQ>
 __dump_stack+0x21/0x30 lib/dump_stack.c:88
 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
 dump_stack+0x15/0x20 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+0x208d/0x29b0 drivers/input/tablet/aiptek.c:741
 __usb_hcd_giveback_urb+0x333/0x4f0 drivers/usb/core/hcd.c:1674
 usb_hcd_giveback_urb+0x119/0x410 drivers/usb/core/hcd.c:1751
 dummy_timer+0x8be/0x30e0 drivers/usb/gadget/udc/dummy_hcd.c:1998
 call_timer_fn+0x38/0x290 kernel/time/timer.c:1459
 expire_timers kernel/time/timer.c:1504 [inline]
 __run_timers+0x650/0x9e0 kernel/time/timer.c:1775
 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788
 handle_softirqs+0x250/0x560 kernel/softirq.c:583
 __do_softirq kernel/softirq.c:621 [inline]
 invoke_softirq kernel/softirq.c:443 [inline]
 __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:default_idle+0xf/0x20 arch/x86/kernel/process.c:730
Code: ff 4c 89 f7 e8 a2 a1 f4 fc e9 3d ff ff ff 00 00 cc cc 00 00 cc cc 00 00 cc cc 00 55 48 89 e5 66 90 0f 00 2d e3 a1 50 00 fb f4 <5d> c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41
RSP: 0018:ffffffff86607d78 EFLAGS: 00000246
RAX: 0000000000003674 RBX: ffffffff8661c400 RCX: 0000000000003674
RDX: 0000000000000001 RSI: ffffffff8563ad60 RDI: ffffffff8563ad20
RBP: ffffffff86607d78 R08: ffff8881f7038c73 R09: 1ffff1103ee0718e
R10: dffffc0000000000 R11: ffffed103ee0718f R12: 0000000000000000
R13: 1ffffffff0cc3880 R14: dffffc0000000000 R15: dffffc0000000000
 arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:721
 default_idle_call+0x71/0x1d0 kernel/sched/idle.c:112
 cpuidle_idle_call kernel/sched/idle.c:202 [inline]
 do_idle+0x217/0x620 kernel/sched/idle.c:326
 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:424
 rest_init+0x10a/0x130 init/main.c:756
 arch_call_rest_init+0xe/0x10 init/main.c:908
 start_kernel+0x46d/0x4e0 init/main.c:1156
 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:527
 x86_64_start_kernel+0x5b/0x60 arch/x86/kernel/head64.c:508
 secondary_startup_64_no_verify+0xb1/0xbb
 </TASK>
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x20ab/0x29b0 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff857f35ec by task swapper/0/0

CPU: 0 PID: 0 Comm: swapper/0 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
 <IRQ>
 __dump_stack+0x21/0x30 lib/dump_stack.c:88
 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:427 [inline]
 kasan_report+0xf1/0x140 mm/kasan/report.c:444
 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308
 aiptek_irq+0x20ab/0x29b0 drivers/input/tablet/aiptek.c:741
 __usb_hcd_giveback_urb+0x333/0x4f0 drivers/usb/core/hcd.c:1674
 usb_hcd_giveback_urb+0x119/0x410 drivers/usb/core/hcd.c:1751
 dummy_timer+0x8be/0x30e0 drivers/usb/gadget/udc/dummy_hcd.c:1998
 call_timer_fn+0x38/0x290 kernel/time/timer.c:1459
 expire_timers kernel/time/timer.c:1504 [inline]
 __run_timers+0x650/0x9e0 kernel/time/timer.c:1775
 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788
 handle_softirqs+0x250/0x560 kernel/softirq.c:583
 __do_softirq kernel/softirq.c:621 [inline]
 invoke_softirq kernel/softirq.c:443 [inline]
 __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:default_idle+0xf/0x20 arch/x86/kernel/process.c:730
Code: ff 4c 89 f7 e8 a2 a1 f4 fc e9 3d ff ff ff 00 00 cc cc 00 00 cc cc 00 00 cc cc 00 55 48 89 e5 66 90 0f 00 2d e3 a1 50 00 fb f4 <5d> c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41
RSP: 0018:ffffffff86607d78 EFLAGS: 00000246
RAX: 0000000000003674 RBX: ffffffff8661c400 RCX: 0000000000003674
RDX: 0000000000000001 RSI: ffffffff8563ad60 RDI: ffffffff8563ad20
RBP: ffffffff86607d78 R08: ffff8881f7038c73 R09: 1ffff1103ee0718e
R10: dffffc0000000000 R11: ffffed103ee0718f R12: 0000000000000000
R13: 1ffffffff0cc3880 R14: dffffc0000000000 R15: dffffc0000000000
 arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:721
 default_idle_call+0x71/0x1d0 kernel/sched/idle.c:112
 cpuidle_idle_call kernel/sched/idle.c:202 [inline]
 do_idle+0x217/0x620 kernel/sched/idle.c:326
 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:424
 rest_init+0x10a/0x130 init/main.c:756
 arch_call_rest_init+0xe/0x10 init/main.c:908
 start_kernel+0x46d/0x4e0 init/main.c:1156
 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:527
 x86_64_start_kernel+0x5b/0x60 arch/x86/kernel/head64.c:508
 secondary_startup_64_no_verify+0xb1/0xbb
 </TASK>

The buggy address belongs to the variable:
 .str.60+0xc/0x20

Memory state around the buggy address:
 ffffffff857f3480: f9 f9 f9 f9 06 f9 f9 f9 00 01 f9 f9 04 f9 f9 f9
 ffffffff857f3500: 00 f9 f9 f9 06 f9 f9 f9 07 f9 f9 f9 06 f9 f9 f9
>ffffffff857f3580: 00 04 f9 f9 05 f9 f9 f9 00 03 f9 f9 00 03 f9 f9
                                                          ^
 ffffffff857f3600: 00 00 00 00 03 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
 ffffffff857f3680: 03 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 01 f9 f9 f9
==================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 548 is out of range for type 'const int[34]'
CPU: 0 PID: 0 Comm: swapper/0 Tainted: G    B             syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
 <IRQ>
 __dump_stack+0x21/0x30 lib/dump_stack.c:88
 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
 dump_stack+0x15/0x20 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+0x1f6d/0x29b0 drivers/input/tablet/aiptek.c:763
 __usb_hcd_giveback_urb+0x333/0x4f0 drivers/usb/core/hcd.c:1674
 usb_hcd_giveback_urb+0x119/0x410 drivers/usb/core/hcd.c:1751
 dummy_timer+0x8be/0x30e0 drivers/usb/gadget/udc/dummy_hcd.c:1998
 call_timer_fn+0x38/0x290 kernel/time/timer.c:1459
 expire_timers kernel/time/timer.c:1504 [inline]
 __run_timers+0x650/0x9e0 kernel/time/timer.c:1775
 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788
 handle_softirqs+0x250/0x560 kernel/softirq.c:583
 __do_softirq kernel/softirq.c:621 [inline]
 invoke_softirq kernel/softirq.c:443 [inline]
 __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:default_idle+0xf/0x20 arch/x86/kernel/process.c:730
Code: ff 4c 89 f7 e8 a2 a1 f4 fc e9 3d ff ff ff 00 00 cc cc 00 00 cc cc 00 00 cc cc 00 55 48 89 e5 66 90 0f 00 2d e3 a1 50 00 fb f4 <5d> c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41
RSP: 0018:ffffffff86607d78 EFLAGS: 00000246
RAX: 0000000000003674 RBX: ffffffff8661c400 RCX: 0000000000003674
RDX: 0000000000000001 RSI: ffffffff8563ad60 RDI: ffffffff8563ad20
RBP: ffffffff86607d78 R08: ffff8881f7038c73 R09: 1ffff1103ee0718e
R10: dffffc0000000000 R11: ffffed103ee0718f R12: 0000000000000000
R13: 1ffffffff0cc3880 R14: dffffc0000000000 R15: dffffc0000000000
 arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:721
 default_idle_call+0x71/0x1d0 kernel/sched/idle.c:112
 cpuidle_idle_call kernel/sched/idle.c:202 [inline]
 do_idle+0x217/0x620 kernel/sched/idle.c:326
 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:424
 rest_init+0x10a/0x130 init/main.c:756
 arch_call_rest_init+0xe/0x10 init/main.c:908
 start_kernel+0x46d/0x4e0 init/main.c:1156
 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:527
 x86_64_start_kernel+0x5b/0x60 arch/x86/kernel/head64.c:508
 secondary_startup_64_no_verify+0xb1/0xbb
 </TASK>
================================================================================
----------------
Code disassembly (best guess):
   0:	ff 4c 89 f7          	decl   -0x9(%rcx,%rcx,4)
   4:	e8 a2 a1 f4 fc       	call   0xfcf4a1ab
   9:	e9 3d ff ff ff       	jmp    0xffffff4b
   e:	00 00                	add    %al,(%rax)
  10:	cc                   	int3
  11:	cc                   	int3
  12:	00 00                	add    %al,(%rax)
  14:	cc                   	int3
  15:	cc                   	int3
  16:	00 00                	add    %al,(%rax)
  18:	cc                   	int3
  19:	cc                   	int3
  1a:	00 55 48             	add    %dl,0x48(%rbp)
  1d:	89 e5                	mov    %esp,%ebp
  1f:	66 90                	xchg   %ax,%ax
  21:	0f 00 2d e3 a1 50 00 	verw   0x50a1e3(%rip)        # 0x50a20b
  28:	fb                   	sti
  29:	f4                   	hlt
* 2a:	5d                   	pop    %rbp <-- trapping instruction
  2b:	c3                   	ret
  2c:	66 2e 0f 1f 84 00 00 	cs nopw 0x0(%rax,%rax,1)
  33:	00 00 00
  36:	0f 1f 44 00 00       	nopl   0x0(%rax,%rax,1)
  3b:	55                   	push   %rbp
  3c:	48 89 e5             	mov    %rsp,%rbp
  3f:	41                   	rex.B

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/06/11 07:33 android13-5.15-lts 30f5554a846e b754d2d8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: array-index-out-of-bounds in aiptek_irq
2026/06/11 06:39 android13-5.15-lts 30f5554a846e b754d2d8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: array-index-out-of-bounds in aiptek_irq
2026/06/13 10:32 android13-5.15-lts 30f5554a846e 1d2f3589 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: array-index-out-of-bounds in aiptek_irq
2026/06/13 10:32 android13-5.15-lts 30f5554a846e 1d2f3589 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: array-index-out-of-bounds in aiptek_irq
2026/06/11 06:14 android13-5.15-lts 30f5554a846e b754d2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: array-index-out-of-bounds in aiptek_irq
2026/06/11 06:14 android13-5.15-lts 30f5554a846e b754d2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: array-index-out-of-bounds in aiptek_irq
* Struck through repros no longer work on HEAD.