syzbot


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

Status: upstream: reported on 2026/06/10 20:15
Reported-by: syzbot+6313f2d45d446029fbad@syzkaller.appspotmail.com
First crash: 21h51m, last: 5h52m
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 7 7h15m 22h40m 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 9 11h45m 1d02h 0/2 upstream: reported C repro on 2026/06/10 15:23
android-6-12 UBSAN: array-index-out-of-bounds in aiptek_irq 15 C 38 2h34m 1d05h 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 2 2h39m 1d00h 0/3 upstream: reported C repro on 2026/06/10 17:51
android-5-15 UBSAN: array-index-out-of-bounds in aiptek_irq 15 C 4 10h33m 11h17m 0/2 upstream: reported C repro on 2026/06/11 06:49
android-5-10 UBSAN: array-index-out-of-bounds in aiptek_irq 15 C 15 10h28m 1d04h 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: 5768 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
 <IRQ>
 dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
 ubsan_epilogue+0xa/0x30 lib/ubsan.c:217
 __ubsan_handle_out_of_bounds+0xe3/0xf0 lib/ubsan.c:348
 aiptek_irq+0x1ea9/0x28f0 drivers/input/tablet/aiptek.c:741
 __usb_hcd_giveback_urb+0x35f/0x520 drivers/usb/core/hcd.c:1650
 dummy_timer+0x8de/0x3320 drivers/usb/gadget/udc/dummy_hcd.c:2003
 __run_hrtimer kernel/time/hrtimer.c:1754 [inline]
 __hrtimer_run_queues+0x520/0xc40 kernel/time/hrtimer.c:1818
 hrtimer_run_softirq+0x187/0x2b0 kernel/time/hrtimer.c:1835
 handle_softirqs+0x280/0x820 kernel/softirq.c:578
 __do_softirq kernel/softirq.c:612 [inline]
 invoke_softirq kernel/softirq.c:452 [inline]
 __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661
 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
 sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:strlen+0x39/0x70 lib/string.c:425
Code: ff ff ff 49 be 00 00 00 00 00 fc ff df 48 89 fb 49 89 c7 48 89 d8 48 c1 e8 03 42 0f b6 04 30 84 c0 75 11 48 ff c3 49 8d 47 01 <42> 80 7c 3f 01 00 75 de eb 19 89 d9 80 e1 07 38 c1 7c e6 49 89 fc
RSP: 0018:ffffc9000471f580 EFLAGS: 00000282
RAX: 000000000000003d RBX: ffff88807a39cff4 RCX: ffff888028508000
RDX: 0000000000000000 RSI: 0000000000008000 RDI: ffff88807a39cfb6
RBP: ffff88807a39c000 R08: ffff88807a39cfb6 R09: 0000000000000fb6
R10: ffff88807a39cfb6 R11: 0000000000000fb6 R12: dffffc0000000000
R13: ffff88807a39cfb6 R14: dffffc0000000000 R15: 000000000000003c
 __fortify_strlen include/linux/fortify-string.h:228 [inline]
 tomoyo_encode+0x31/0x540 security/tomoyo/realpath.c:80
 tomoyo_realpath_from_path+0x592/0x5d0 security/tomoyo/realpath.c:283
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_check_open_permission+0x224/0x460 security/tomoyo/file.c:771
 security_file_open+0x62/0xa0 security/security.c:2855
 do_dentry_open+0x380/0x1500 fs/open.c:916
 do_open fs/namei.c:3640 [inline]
 path_openat+0x27f1/0x3230 fs/namei.c:3797
 do_filp_open+0x1f5/0x430 fs/namei.c:3824
 do_sys_openat2+0x134/0x1d0 fs/open.c:1421
 do_sys_open fs/open.c:1436 [inline]
 __do_sys_openat fs/open.c:1452 [inline]
 __se_sys_openat fs/open.c:1447 [inline]
 __x64_sys_openat+0x139/0x160 fs/open.c:1447
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f2c68ea7407
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:00007ffc6b987f00 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f2c69551880 RCX: 00007f2c68ea7407
RDX: 0000000000080000 RSI: 00007ffc6b988080 RDI: ffffffffffffff9c
RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000055ea391387f5
R13: 000055ea391387f5 R14: 0000000000000001 R15: 000055ea39153140
 </TASK>
================================================================================
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	ff 49 be             	decl   -0x42(%rcx)
   3:	00 00                	add    %al,(%rax)
   5:	00 00                	add    %al,(%rax)
   7:	00 fc                	add    %bh,%ah
   9:	ff                   	lcall  (bad)
   a:	df 48 89             	fisttps -0x77(%rax)
   d:	fb                   	sti
   e:	49 89 c7             	mov    %rax,%r15
  11:	48 89 d8             	mov    %rbx,%rax
  14:	48 c1 e8 03          	shr    $0x3,%rax
  18:	42 0f b6 04 30       	movzbl (%rax,%r14,1),%eax
  1d:	84 c0                	test   %al,%al
  1f:	75 11                	jne    0x32
  21:	48 ff c3             	inc    %rbx
  24:	49 8d 47 01          	lea    0x1(%r15),%rax
* 28:	42 80 7c 3f 01 00    	cmpb   $0x0,0x1(%rdi,%r15,1) <-- trapping instruction
  2e:	75 de                	jne    0xe
  30:	eb 19                	jmp    0x4b
  32:	89 d9                	mov    %ebx,%ecx
  34:	80 e1 07             	and    $0x7,%cl
  37:	38 c1                	cmp    %al,%cl
  39:	7c e6                	jl     0x21
  3b:	49 89 fc             	mov    %rdi,%r12

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/06/11 12:14 linux-6.6.y 924b4a879cbb b754d2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in aiptek_irq
2026/06/10 20:15 linux-6.6.y 924b4a879cbb f79bac11 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in aiptek_irq
2026/06/10 20:15 linux-6.6.y 924b4a879cbb f79bac11 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in aiptek_irq
2026/06/10 20:14 linux-6.6.y 924b4a879cbb f79bac11 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in aiptek_irq
* Struck through repros no longer work on HEAD.