================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 4734 is out of range for type 'const int[34]'
CPU: 0 PID: 545 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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:cond_compute_av+0x23/0x400 security/selinux/ss/conditional.c:579
Code: 90 90 b8 73 b8 e0 34 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 48 48 89 4d b0 48 89 d3 49 89 f5 49 89 fe e8 2d d1 2f ff <4d> 85 f6 0f 95 c0 4d 85 ed 0f 95 c1 20 c1 48 89 5d d0 48 85 db 0f
RSP: 0018:ffffc90000a07160 EFLAGS: 00000293
RAX: ffffffff824183f3 RBX: ffffc90000a07780 RCX: ffff88811e995100
RDX: 0000000000000000 RSI: ffffc90000a07420 RDI: ffff88810918f190
RBP: ffffc90000a071d0 R08: ffffc90000a07663 R09: ffffc90000a07644
R10: dffffc0000000000 R11: fffff52000140ecd R12: 0000000000000100
R13: ffffc90000a07420 R14: ffff88810918f190 R15: 00000000000002a1
context_struct_compute_av+0x827/0x16f0 security/selinux/ss/services.c:678
security_compute_av+0x341/0xd80 security/selinux/ss/services.c:1163
avc_compute_av+0x9b/0x820 security/selinux/avc.c:1016
avc_has_perm_noaudit+0x2cb/0x490 security/selinux/avc.c:1162
cred_has_capability security/selinux/hooks.c:1608 [inline]
selinux_capable+0x1b0/0x3b0 security/selinux/hooks.c:2127
security_capable+0x89/0xc0 security/security.c:810
ns_capable_common kernel/capability.c:376 [inline]
ns_capable+0x6f/0xf0 kernel/capability.c:397
netlink_allowed+0xf0/0x140 net/netlink/af_netlink.c:911
netlink_sendmsg+0x7a3/0xbd0 net/netlink/af_netlink.c:1825
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
____sys_sendmsg+0x5fb/0x9c0 net/socket.c:2508
___sys_sendmsg+0x2a2/0x360 net/socket.c:2562
__sys_sendmsg net/socket.c:2591 [inline]
__do_sys_sendmsg net/socket.c:2600 [inline]
__se_sys_sendmsg net/socket.c:2598 [inline]
__x64_sys_sendmsg+0x20d/0x2e0 net/socket.c:2598
x64_sys_call+0x171/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
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:0x7f16166a7407
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:00007ffcd7911ae0 EFLAGS: 00000202 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f1616d7f880 RCX: 00007f16166a7407
RDX: 0000000000000000 RSI: 00007ffcd7911b40 RDI: 000000000000000c
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000006f
R13: 0000564fdc534330 R14: 0000000000000000 R15: 0000000000000000
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff85e69538 by task udevd/545
CPU: 0 PID: 545 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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: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:cond_compute_av+0x23/0x400 security/selinux/ss/conditional.c:579
Code: 90 90 b8 73 b8 e0 34 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 48 48 89 4d b0 48 89 d3 49 89 f5 49 89 fe e8 2d d1 2f ff <4d> 85 f6 0f 95 c0 4d 85 ed 0f 95 c1 20 c1 48 89 5d d0 48 85 db 0f
RSP: 0018:ffffc90000a07160 EFLAGS: 00000293
RAX: ffffffff824183f3 RBX: ffffc90000a07780 RCX: ffff88811e995100
RDX: 0000000000000000 RSI: ffffc90000a07420 RDI: ffff88810918f190
RBP: ffffc90000a071d0 R08: ffffc90000a07663 R09: ffffc90000a07644
R10: dffffc0000000000 R11: fffff52000140ecd R12: 0000000000000100
R13: ffffc90000a07420 R14: ffff88810918f190 R15: 00000000000002a1
context_struct_compute_av+0x827/0x16f0 security/selinux/ss/services.c:678
security_compute_av+0x341/0xd80 security/selinux/ss/services.c:1163
avc_compute_av+0x9b/0x820 security/selinux/avc.c:1016
avc_has_perm_noaudit+0x2cb/0x490 security/selinux/avc.c:1162
cred_has_capability security/selinux/hooks.c:1608 [inline]
selinux_capable+0x1b0/0x3b0 security/selinux/hooks.c:2127
security_capable+0x89/0xc0 security/security.c:810
ns_capable_common kernel/capability.c:376 [inline]
ns_capable+0x6f/0xf0 kernel/capability.c:397
netlink_allowed+0xf0/0x140 net/netlink/af_netlink.c:911
netlink_sendmsg+0x7a3/0xbd0 net/netlink/af_netlink.c:1825
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
____sys_sendmsg+0x5fb/0x9c0 net/socket.c:2508
___sys_sendmsg+0x2a2/0x360 net/socket.c:2562
__sys_sendmsg net/socket.c:2591 [inline]
__do_sys_sendmsg net/socket.c:2600 [inline]
__se_sys_sendmsg net/socket.c:2598 [inline]
__x64_sys_sendmsg+0x20d/0x2e0 net/socket.c:2598
x64_sys_call+0x171/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
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:0x7f16166a7407
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:00007ffcd7911ae0 EFLAGS: 00000202 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f1616d7f880 RCX: 00007f16166a7407
RDX: 0000000000000000 RSI: 00007ffcd7911b40 RDI: 000000000000000c
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000006f
R13: 0000564fdc534330 R14: 0000000000000000 R15: 0000000000000000
The buggy address belongs to the variable:
.str.1+0x18/0x20
The buggy address belongs to the physical page:
page:ffffea0000179a40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e69
flags: 0x1000(reserved|zone=0)
raw: 0000000000001000 ffffea0000179a48 ffffea0000179a48 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:
ffffffff85e69400: 03 f9 f9 f9 f9 f9 f9 f9 00 05 f9 f9 00 00 00 00
ffffffff85e69480: 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00
>ffffffff85e69500: 00 01 f9 f9 04 f9 f9 f9 00 00 00 00 00 02 f9 f9
^
ffffffff85e69580: f9 f9 f9 f9 00 00 00 00 00 00 00 04 f9 f9 f9 f9
ffffffff85e69600: 00 00 00 00 00 00 02 f9 f9 f9 f9 f9 00 00 00 00
==================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 4735 is out of range for type 'const int[34]'
CPU: 0 PID: 545 Comm: udevd Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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:cond_compute_av+0x23/0x400 security/selinux/ss/conditional.c:579
Code: 90 90 b8 73 b8 e0 34 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 48 48 89 4d b0 48 89 d3 49 89 f5 49 89 fe e8 2d d1 2f ff <4d> 85 f6 0f 95 c0 4d 85 ed 0f 95 c1 20 c1 48 89 5d d0 48 85 db 0f
RSP: 0018:ffffc90000a07160 EFLAGS: 00000293
RAX: ffffffff824183f3 RBX: ffffc90000a07780 RCX: ffff88811e995100
RDX: 0000000000000000 RSI: ffffc90000a07420 RDI: ffff88810918f190
RBP: ffffc90000a071d0 R08: ffffc90000a07663 R09: ffffc90000a07644
R10: dffffc0000000000 R11: fffff52000140ecd R12: 0000000000000100
R13: ffffc90000a07420 R14: ffff88810918f190 R15: 00000000000002a1
context_struct_compute_av+0x827/0x16f0 security/selinux/ss/services.c:678
security_compute_av+0x341/0xd80 security/selinux/ss/services.c:1163
avc_compute_av+0x9b/0x820 security/selinux/avc.c:1016
avc_has_perm_noaudit+0x2cb/0x490 security/selinux/avc.c:1162
cred_has_capability security/selinux/hooks.c:1608 [inline]
selinux_capable+0x1b0/0x3b0 security/selinux/hooks.c:2127
security_capable+0x89/0xc0 security/security.c:810
ns_capable_common kernel/capability.c:376 [inline]
ns_capable+0x6f/0xf0 kernel/capability.c:397
netlink_allowed+0xf0/0x140 net/netlink/af_netlink.c:911
netlink_sendmsg+0x7a3/0xbd0 net/netlink/af_netlink.c:1825
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
____sys_sendmsg+0x5fb/0x9c0 net/socket.c:2508
___sys_sendmsg+0x2a2/0x360 net/socket.c:2562
__sys_sendmsg net/socket.c:2591 [inline]
__do_sys_sendmsg net/socket.c:2600 [inline]
__se_sys_sendmsg net/socket.c:2598 [inline]
__x64_sys_sendmsg+0x20d/0x2e0 net/socket.c:2598
x64_sys_call+0x171/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
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:0x7f16166a7407
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:00007ffcd7911ae0 EFLAGS: 00000202 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f1616d7f880 RCX: 00007f16166a7407
RDX: 0000000000000000 RSI: 00007ffcd7911b40 RDI: 000000000000000c
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000006f
R13: 0000564fdc534330 R14: 0000000000000000 R15: 0000000000000000
================================================================================
aiptek 7-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: 90 nop
1: 90 nop
2: b8 73 b8 e0 34 mov $0x34e0b873,%eax
7: 55 push %rbp
8: 48 89 e5 mov %rsp,%rbp
b: 41 57 push %r15
d: 41 56 push %r14
f: 41 55 push %r13
11: 41 54 push %r12
13: 53 push %rbx
14: 48 83 ec 48 sub $0x48,%rsp
18: 48 89 4d b0 mov %rcx,-0x50(%rbp)
1c: 48 89 d3 mov %rdx,%rbx
1f: 49 89 f5 mov %rsi,%r13
22: 49 89 fe mov %rdi,%r14
25: e8 2d d1 2f ff call 0xff2fd157
* 2a: 4d 85 f6 test %r14,%r14 <-- trapping instruction
2d: 0f 95 c0 setne %al
30: 4d 85 ed test %r13,%r13
33: 0f 95 c1 setne %cl
36: 20 c1 and %al,%cl
38: 48 89 5d d0 mov %rbx,-0x30(%rbp)
3c: 48 85 db test %rbx,%rbx
3f: 0f .byte 0xf