================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 26863 is out of range for type 'const int[34]'
CPU: 0 PID: 382 Comm: syz.3.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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:1673
usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1756
dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1689 [inline]
__hrtimer_run_queues+0x398/0x8a0 kernel/time/hrtimer.c:1753
hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1770
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:_raw_spin_lock_bh+0x6/0xf0 kernel/locking/spinlock.c:177
Code: 89 df 89 c6 e8 4b 02 54 fc eb bd e8 14 46 f9 ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 b8 fa da 91 aa 55 48 89 e5 41 57 <41> 56 41 54 53 48 83 e4 e0 48 83 ec 60 48 89 fb 65 48 8b 04 25 28
RSP: 0018:ffffc9000dcef610 EFLAGS: 00000246
RAX: ffffffff8427b01b RBX: dffffc0000000000 RCX: 0000000000080000
RDX: ffffc9000262e000 RSI: 000000000007ffff RDI: ffffc9000f694048
RBP: ffffc9000dcef618 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52001b9deb4 R12: 000000000007d810
R13: 1ffff92001ed2801 R14: ffffc9000f69402c R15: ffffc9000f694048
spin_lock_bh include/linux/spinlock.h:356 [inline]
htable_selective_cleanup net/netfilter/xt_hashlimit.c:369 [inline]
htable_put+0x301/0x650 net/netfilter/xt_hashlimit.c:430
hashlimit_mt_destroy+0x5c/0x70 net/netfilter/xt_hashlimit.c:977
cleanup_match net/ipv6/netfilter/ip6_tables.c:479 [inline]
cleanup_entry+0x165/0x370 net/ipv6/netfilter/ip6_tables.c:663
translate_table+0x1e17/0x2030 net/ipv6/netfilter/ip6_tables.c:746
do_replace net/ipv6/netfilter/ip6_tables.c:1154 [inline]
do_ip6t_set_ctl+0x9e9/0xe00 net/ipv6/netfilter/ip6_tables.c:1643
nf_setsockopt+0x284/0x2b0 net/netfilter/nf_sockopt.c:101
ipv6_setsockopt+0x170/0x1a0 net/ipv6/ipv6_sockglue.c:1030
tcp_setsockopt+0xeb/0x100 net/ipv4/tcp.c:3860
sock_common_setsockopt+0xb1/0xc0 net/core/sock.c:3716
__sys_setsockopt+0x2ff/0x4e0 net/socket.c:2278
__do_sys_setsockopt net/socket.c:2289 [inline]
__se_sys_setsockopt net/socket.c:2286 [inline]
__x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2286
x64_sys_call+0x124/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:55
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:0x7efc7a79e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007efc7b65f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007efc7aa25fa0 RCX: 00007efc7a79e159
RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000004
RBP: 00007efc7a83506b R08: 0000000000000590 R09: 0000000000000000
R10: 0000200000000980 R11: 0000000000000246 R12: 0000000000000000
R13: 00007efc7aa26038 R14: 00007efc7aa25fa0 R15: 00007fff46167408
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff85e803fc by task syz.3.17/382
CPU: 0 PID: 382 Comm: syz.3.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741
__usb_hcd_giveback_urb+0x360/0x520 drivers/usb/core/hcd.c:1673
usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1756
dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1689 [inline]
__hrtimer_run_queues+0x398/0x8a0 kernel/time/hrtimer.c:1753
hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1770
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:_raw_spin_lock_bh+0x6/0xf0 kernel/locking/spinlock.c:177
Code: 89 df 89 c6 e8 4b 02 54 fc eb bd e8 14 46 f9 ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 b8 fa da 91 aa 55 48 89 e5 41 57 <41> 56 41 54 53 48 83 e4 e0 48 83 ec 60 48 89 fb 65 48 8b 04 25 28
RSP: 0018:ffffc9000dcef610 EFLAGS: 00000246
RAX: ffffffff8427b01b RBX: dffffc0000000000 RCX: 0000000000080000
RDX: ffffc9000262e000 RSI: 000000000007ffff RDI: ffffc9000f694048
RBP: ffffc9000dcef618 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52001b9deb4 R12: 000000000007d810
R13: 1ffff92001ed2801 R14: ffffc9000f69402c R15: ffffc9000f694048
spin_lock_bh include/linux/spinlock.h:356 [inline]
htable_selective_cleanup net/netfilter/xt_hashlimit.c:369 [inline]
htable_put+0x301/0x650 net/netfilter/xt_hashlimit.c:430
hashlimit_mt_destroy+0x5c/0x70 net/netfilter/xt_hashlimit.c:977
cleanup_match net/ipv6/netfilter/ip6_tables.c:479 [inline]
cleanup_entry+0x165/0x370 net/ipv6/netfilter/ip6_tables.c:663
translate_table+0x1e17/0x2030 net/ipv6/netfilter/ip6_tables.c:746
do_replace net/ipv6/netfilter/ip6_tables.c:1154 [inline]
do_ip6t_set_ctl+0x9e9/0xe00 net/ipv6/netfilter/ip6_tables.c:1643
nf_setsockopt+0x284/0x2b0 net/netfilter/nf_sockopt.c:101
ipv6_setsockopt+0x170/0x1a0 net/ipv6/ipv6_sockglue.c:1030
tcp_setsockopt+0xeb/0x100 net/ipv4/tcp.c:3860
sock_common_setsockopt+0xb1/0xc0 net/core/sock.c:3716
__sys_setsockopt+0x2ff/0x4e0 net/socket.c:2278
__do_sys_setsockopt net/socket.c:2289 [inline]
__se_sys_setsockopt net/socket.c:2286 [inline]
__x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2286
x64_sys_call+0x124/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:55
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:0x7efc7a79e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007efc7b65f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007efc7aa25fa0 RCX: 00007efc7a79e159
RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000004
RBP: 00007efc7a83506b R08: 0000000000000590 R09: 0000000000000000
R10: 0000200000000980 R11: 0000000000000246 R12: 0000000000000000
R13: 00007efc7aa26038 R14: 00007efc7aa25fa0 R15: 00007fff46167408
The buggy address belongs to the variable:
.str.176+0x3c/0x40
The buggy address belongs to the physical page:
page:ffffea000017a000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e80
flags: 0x1000(reserved|zone=0)
raw: 0000000000001000 ffffea000017a008 ffffea000017a008 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:
ffffffff85e80280: 00 00 04 f9 f9 f9 f9 f9 00 00 04 f9 f9 f9 f9 f9
ffffffff85e80300: 00 00 04 f9 f9 f9 f9 f9 00 00 04 f9 f9 f9 f9 f9
>ffffffff85e80380: 00 00 01 f9 f9 f9 f9 f9 00 00 00 01 f9 f9 f9 f9
^
ffffffff85e80400: 00 00 07 f9 f9 f9 f9 f9 00 00 07 f9 f9 f9 f9 f9
ffffffff85e80480: 00 00 04 f9 f9 f9 f9 f9 00 00 05 f9 f9 f9 f9 f9
==================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 26864 is out of range for type 'const int[34]'
CPU: 0 PID: 382 Comm: syz.3.17 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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:1673
usb_hcd_giveback_urb+0x11f/0x3e0 drivers/usb/core/hcd.c:1756
dummy_timer+0xa25/0x3270 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1689 [inline]
__hrtimer_run_queues+0x398/0x8a0 kernel/time/hrtimer.c:1753
hrtimer_run_softirq+0x19b/0x260 kernel/time/hrtimer.c:1770
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:_raw_spin_lock_bh+0x6/0xf0 kernel/locking/spinlock.c:177
Code: 89 df 89 c6 e8 4b 02 54 fc eb bd e8 14 46 f9 ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 b8 fa da 91 aa 55 48 89 e5 41 57 <41> 56 41 54 53 48 83 e4 e0 48 83 ec 60 48 89 fb 65 48 8b 04 25 28
RSP: 0018:ffffc9000dcef610 EFLAGS: 00000246
RAX: ffffffff8427b01b RBX: dffffc0000000000 RCX: 0000000000080000
RDX: ffffc9000262e000 RSI: 000000000007ffff RDI: ffffc9000f694048
RBP: ffffc9000dcef618 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52001b9deb4 R12: 000000000007d810
R13: 1ffff92001ed2801 R14: ffffc9000f69402c R15: ffffc9000f694048
spin_lock_bh include/linux/spinlock.h:356 [inline]
htable_selective_cleanup net/netfilter/xt_hashlimit.c:369 [inline]
htable_put+0x301/0x650 net/netfilter/xt_hashlimit.c:430
hashlimit_mt_destroy+0x5c/0x70 net/netfilter/xt_hashlimit.c:977
cleanup_match net/ipv6/netfilter/ip6_tables.c:479 [inline]
cleanup_entry+0x165/0x370 net/ipv6/netfilter/ip6_tables.c:663
translate_table+0x1e17/0x2030 net/ipv6/netfilter/ip6_tables.c:746
do_replace net/ipv6/netfilter/ip6_tables.c:1154 [inline]
do_ip6t_set_ctl+0x9e9/0xe00 net/ipv6/netfilter/ip6_tables.c:1643
nf_setsockopt+0x284/0x2b0 net/netfilter/nf_sockopt.c:101
ipv6_setsockopt+0x170/0x1a0 net/ipv6/ipv6_sockglue.c:1030
tcp_setsockopt+0xeb/0x100 net/ipv4/tcp.c:3860
sock_common_setsockopt+0xb1/0xc0 net/core/sock.c:3716
__sys_setsockopt+0x2ff/0x4e0 net/socket.c:2278
__do_sys_setsockopt net/socket.c:2289 [inline]
__se_sys_setsockopt net/socket.c:2286 [inline]
__x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2286
x64_sys_call+0x124/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:55
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:0x7efc7a79e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007efc7b65f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007efc7aa25fa0 RCX: 00007efc7a79e159
RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000004
RBP: 00007efc7a83506b R08: 0000000000000590 R09: 0000000000000000
R10: 0000200000000980 R11: 0000000000000246 R12: 0000000000000000
R13: 00007efc7aa26038 R14: 00007efc7aa25fa0 R15: 00007fff46167408
================================================================================
aiptek 2-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 89 df mov %ebx,%edi
2: 89 c6 mov %eax,%esi
4: e8 4b 02 54 fc call 0xfc540254
9: eb bd jmp 0xffffffc8
b: e8 14 46 f9 ff call 0xfff94624
10: 0f 1f 40 00 nopl 0x0(%rax)
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: 90 nop
1e: 90 nop
1f: b8 fa da 91 aa mov $0xaa91dafa,%eax
24: 55 push %rbp
25: 48 89 e5 mov %rsp,%rbp
28: 41 57 push %r15
* 2a: 41 56 push %r14 <-- trapping instruction
2c: 41 54 push %r12
2e: 53 push %rbx
2f: 48 83 e4 e0 and $0xffffffffffffffe0,%rsp
33: 48 83 ec 60 sub $0x60,%rsp
37: 48 89 fb mov %rdi,%rbx
3a: 65 gs
3b: 48 rex.W
3c: 8b .byte 0x8b
3d: 04 25 add $0x25,%al
3f: 28 .byte 0x28