syzbot


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

Status: upstream: reported C repro on 2026/06/10 20:15
Reported-by: syzbot+6313f2d45d446029fbad@syzkaller.appspotmail.com
First crash: 4d02h, last: 7h29m
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 7h32m 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 10m 4d07h 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 95 4h17m 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-15 UBSAN: array-index-out-of-bounds in aiptek_irq 15 C 6 1d12h 3d16h 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 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 1319 is out of range for type 'const int[34]'
CPU: 0 PID: 5898 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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xc0/0x120 kernel/locking/spinlock.c:194
Code: c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f7 44 24 20 00 02 00 00 41 c6 04 07 f8 75 4b f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 2b 88 ca f6 65 8b 05 bc b0 71 75 85 c0 74 3c 48 c7 04 24 0e 36
RSP: 0018:ffffc90003c47780 EFLAGS: 00000206
RAX: dffffc0000000004 RBX: 0000000000000a06 RCX: 05925e5e22647900
RDX: dffffc0000000000 RSI: ffffffff8acacbe0 RDI: 0000000000000001
RBP: ffffc90003c47800 R08: ffffffff911cd53f R09: 1ffffffff2239aa7
R10: dffffc0000000000 R11: fffffbfff2239aa8 R12: dffffc0000000000
R13: ffff88802ef6e000 R14: ffffffff9759c230 R15: 1ffff92000788ef0
 __debug_check_no_obj_freed lib/debugobjects.c:999 [inline]
 debug_check_no_obj_freed+0x51f/0x540 lib/debugobjects.c:1020
 slab_free_hook mm/slub.c:1786 [inline]
 slab_free_freelist_hook+0xd2/0x1a0 mm/slub.c:1837
 slab_free mm/slub.c:3830 [inline]
 __kmem_cache_free+0xba/0x1e0 mm/slub.c:3843
 tomoyo_realpath_from_path+0x59d/0x5d0 security/tomoyo/realpath.c:286
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x282/0x560 security/tomoyo/file.c:822
 security_inode_getattr+0xd3/0x120 security/security.c:2154
 vfs_getattr fs/stat.c:173 [inline]
 vfs_statx+0x172/0x680 fs/stat.c:248
 vfs_fstatat+0x12a/0x1b0 fs/stat.c:299
 __do_sys_newfstatat fs/stat.c:463 [inline]
 __se_sys_newfstatat fs/stat.c:457 [inline]
 __x64_sys_newfstatat+0x149/0x1f0 fs/stat.c:457
 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:0x7f5df6f11b0a
Code: 48 8b 15 f1 f2 0d 00 f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 89 ca b8 06 01 00 00 0f 05 <3d> 00 f0 ff ff 77 07 31 c0 c3 0f 1f 40 00 48 8b 15 b9 f2 0d 00 f7
RSP: 002b:00007ffc33cdedc8 EFLAGS: 00000206 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 00005633434636b2 RCX: 00007f5df6f11b0a
RDX: 00007ffc33cdedd0 RSI: 00007ffc33cdee60 RDI: 00000000ffffff9c
RBP: 0000563372367290 R08: 00005633434636b2 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000206 R12: 0000563372367380
R13: 00007ffc33cdee60 R14: 000056334346300c R15: 0000563343469bcc
 </TASK>
================================================================================
----------------
Code disassembly (best guess):
   0:	c7 44 24 20 00 00 00 	movl   $0x0,0x20(%rsp)
   7:	00
   8:	9c                   	pushf
   9:	8f 44 24 20          	pop    0x20(%rsp)
   d:	f7 44 24 20 00 02 00 	testl  $0x200,0x20(%rsp)
  14:	00
  15:	41 c6 04 07 f8       	movb   $0xf8,(%r15,%rax,1)
  1a:	75 4b                	jne    0x67
  1c:	f7 c3 00 02 00 00    	test   $0x200,%ebx
  22:	74 01                	je     0x25
  24:	fb                   	sti
  25:	bf 01 00 00 00       	mov    $0x1,%edi
* 2a:	e8 2b 88 ca f6       	call   0xf6ca885a <-- trapping instruction
  2f:	65 8b 05 bc b0 71 75 	mov    %gs:0x7571b0bc(%rip),%eax        # 0x7571b0f2
  36:	85 c0                	test   %eax,%eax
  38:	74 3c                	je     0x76
  3a:	48                   	rex.W
  3b:	c7                   	.byte 0xc7
  3c:	04 24                	add    $0x24,%al
  3e:	0e                   	(bad)
  3f:	36                   	ss

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/06/13 20:43 linux-6.6.y 924b4a879cbb 1d2f3589 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in aiptek_irq
2026/06/14 15:41 linux-6.6.y 924b4a879cbb 1d2f3589 .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/14 02:21 linux-6.6.y 924b4a879cbb 1d2f3589 .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/13 22:35 linux-6.6.y 924b4a879cbb 1d2f3589 .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/13 22:34 linux-6.6.y 924b4a879cbb 1d2f3589 .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/13 16:25 linux-6.6.y 924b4a879cbb 1d2f3589 .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/12 09:10 linux-6.6.y 924b4a879cbb e93da63e .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/12 09:10 linux-6.6.y 924b4a879cbb e93da63e .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/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.