================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 45567 is out of range for type 'const int[34]'
CPU: 1 PID: 319 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/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: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:string_to_context_struct+0x2f1/0x670 security/selinux/ss/services.c:1500
Code: 95 84 fc ff 48 85 c0 74 3c 49 89 c5 4c 89 f1 4c 8d 70 09 4c 89 f0 48 c1 e8 03 0f b6 04 08 84 c0 0f 85 28 03 00 00 41 0f b6 1e <31> ff 89 de e8 76 0b 30 ff 85 db 0f 84 1a 01 00 00 e8 89 08 30 ff
RSP: 0018:ffffc9000dcdf6e0 EFLAGS: 00000293
RAX: 0000000000000004 RBX: 0000000000000000 RCX: 000000000f249201
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000dcdf730 R08: ffff88810e9f2880 R09: 0000000000000002
R10: 000000000000003a R11: 0000000000000000 R12: 0000000000000000
R13: ffff88810f2492e0 R14: ffff88810f2492e9 R15: ffff8881333ed61b
security_context_to_sid_core+0x37d/0x600 security/selinux/ss/services.c:1569
security_context_to_sid+0x3a/0x50 security/selinux/ss/services.c:1613
selinux_inode_setxattr+0x703/0xb80 security/selinux/hooks.c:3222
security_inode_setxattr+0xdf/0x190 security/security.c:1377
__vfs_setxattr_locked+0x9a/0x230 fs/xattr.c:268
vfs_setxattr+0x167/0x2e0 fs/xattr.c:309
do_setxattr fs/xattr.c:594 [inline]
setxattr+0x2a3/0x330 fs/xattr.c:617
path_setxattr+0x147/0x290 fs/xattr.c:636
__do_sys_lsetxattr fs/xattr.c:659 [inline]
__se_sys_lsetxattr fs/xattr.c:655 [inline]
__x64_sys_lsetxattr+0xc2/0xe0 fs/xattr.c:655
x64_sys_call+0x8b7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:190
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:0x7f6e0951d57a
Code: 48 83 c4 08 48 89 d8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 0f 1f 44 00 00 31 db eb e4 0f 1f 40 00 49 89 ca b8 bd 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 4e 38 0d 00 f7 d8 64 89 01 48
RSP: 002b:00007fffe98f3508 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00005654f7da1e10 RCX: 00007f6e0951d57a
RDX: 00005654f7da1e10 RSI: 00007f6e09cc529c RDI: 00007fffe98f4050
RBP: 00005654f7b608d0 R08: 0000000000000000 R09: 00005654f7b65450
R10: 000000000000001b R11: 0000000000000246 R12: 00007fffe98f4050
R13: 0000000000000001 R14: 00005654bf71c6d7 R15: 00005654f7dace70
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff85e91cfc by task udevd/319
CPU: 1 PID: 319 Comm: udevd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/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: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:string_to_context_struct+0x2f1/0x670 security/selinux/ss/services.c:1500
Code: 95 84 fc ff 48 85 c0 74 3c 49 89 c5 4c 89 f1 4c 8d 70 09 4c 89 f0 48 c1 e8 03 0f b6 04 08 84 c0 0f 85 28 03 00 00 41 0f b6 1e <31> ff 89 de e8 76 0b 30 ff 85 db 0f 84 1a 01 00 00 e8 89 08 30 ff
RSP: 0018:ffffc9000dcdf6e0 EFLAGS: 00000293
RAX: 0000000000000004 RBX: 0000000000000000 RCX: 000000000f249201
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000dcdf730 R08: ffff88810e9f2880 R09: 0000000000000002
R10: 000000000000003a R11: 0000000000000000 R12: 0000000000000000
R13: ffff88810f2492e0 R14: ffff88810f2492e9 R15: ffff8881333ed61b
security_context_to_sid_core+0x37d/0x600 security/selinux/ss/services.c:1569
security_context_to_sid+0x3a/0x50 security/selinux/ss/services.c:1613
selinux_inode_setxattr+0x703/0xb80 security/selinux/hooks.c:3222
security_inode_setxattr+0xdf/0x190 security/security.c:1377
__vfs_setxattr_locked+0x9a/0x230 fs/xattr.c:268
vfs_setxattr+0x167/0x2e0 fs/xattr.c:309
do_setxattr fs/xattr.c:594 [inline]
setxattr+0x2a3/0x330 fs/xattr.c:617
path_setxattr+0x147/0x290 fs/xattr.c:636
__do_sys_lsetxattr fs/xattr.c:659 [inline]
__se_sys_lsetxattr fs/xattr.c:655 [inline]
__x64_sys_lsetxattr+0xc2/0xe0 fs/xattr.c:655
x64_sys_call+0x8b7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:190
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:0x7f6e0951d57a
Code: 48 83 c4 08 48 89 d8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 0f 1f 44 00 00 31 db eb e4 0f 1f 40 00 49 89 ca b8 bd 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 4e 38 0d 00 f7 d8 64 89 01 48
RSP: 002b:00007fffe98f3508 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00005654f7da1e10 RCX: 00007f6e0951d57a
RDX: 00005654f7da1e10 RSI: 00007f6e09cc529c RDI: 00007fffe98f4050
RBP: 00005654f7b608d0 R08: 0000000000000000 R09: 00005654f7b65450
R10: 000000000000001b R11: 0000000000000246 R12: 00007fffe98f4050
R13: 0000000000000001 R14: 00005654bf71c6d7 R15: 00005654f7dace70
The buggy address belongs to the variable:
.str.373+0x3c/0x40
The buggy address belongs to the physical page:
page:ffffea000017a440 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e91
flags: 0x1000(reserved|zone=0)
raw: 0000000000001000 ffffea000017a448 ffffea000017a448 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:
ffffffff85e91b80: 00 00 00 06 f9 f9 f9 f9 00 00 00 07 f9 f9 f9 f9
ffffffff85e91c00: 00 00 00 01 f9 f9 f9 f9 00 00 00 02 f9 f9 f9 f9
>ffffffff85e91c80: 00 00 06 f9 f9 f9 f9 f9 00 00 00 00 f9 f9 f9 f9
^
ffffffff85e91d00: 00 00 00 05 f9 f9 f9 f9 00 00 00 07 f9 f9 f9 f9
ffffffff85e91d80: 00 00 00 00 f9 f9 f9 f9 00 00 00 06 f9 f9 f9 f9
==================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 45568 is out of range for type 'const int[34]'
CPU: 1 PID: 319 Comm: udevd Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/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: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:string_to_context_struct+0x2f1/0x670 security/selinux/ss/services.c:1500
Code: 95 84 fc ff 48 85 c0 74 3c 49 89 c5 4c 89 f1 4c 8d 70 09 4c 89 f0 48 c1 e8 03 0f b6 04 08 84 c0 0f 85 28 03 00 00 41 0f b6 1e <31> ff 89 de e8 76 0b 30 ff 85 db 0f 84 1a 01 00 00 e8 89 08 30 ff
RSP: 0018:ffffc9000dcdf6e0 EFLAGS: 00000293
RAX: 0000000000000004 RBX: 0000000000000000 RCX: 000000000f249201
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000dcdf730 R08: ffff88810e9f2880 R09: 0000000000000002
R10: 000000000000003a R11: 0000000000000000 R12: 0000000000000000
R13: ffff88810f2492e0 R14: ffff88810f2492e9 R15: ffff8881333ed61b
security_context_to_sid_core+0x37d/0x600 security/selinux/ss/services.c:1569
security_context_to_sid+0x3a/0x50 security/selinux/ss/services.c:1613
selinux_inode_setxattr+0x703/0xb80 security/selinux/hooks.c:3222
security_inode_setxattr+0xdf/0x190 security/security.c:1377
__vfs_setxattr_locked+0x9a/0x230 fs/xattr.c:268
vfs_setxattr+0x167/0x2e0 fs/xattr.c:309
do_setxattr fs/xattr.c:594 [inline]
setxattr+0x2a3/0x330 fs/xattr.c:617
path_setxattr+0x147/0x290 fs/xattr.c:636
__do_sys_lsetxattr fs/xattr.c:659 [inline]
__se_sys_lsetxattr fs/xattr.c:655 [inline]
__x64_sys_lsetxattr+0xc2/0xe0 fs/xattr.c:655
x64_sys_call+0x8b7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:190
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:0x7f6e0951d57a
Code: 48 83 c4 08 48 89 d8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 0f 1f 44 00 00 31 db eb e4 0f 1f 40 00 49 89 ca b8 bd 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 4e 38 0d 00 f7 d8 64 89 01 48
RSP: 002b:00007fffe98f3508 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00005654f7da1e10 RCX: 00007f6e0951d57a
RDX: 00005654f7da1e10 RSI: 00007f6e09cc529c RDI: 00007fffe98f4050
RBP: 00005654f7b608d0 R08: 0000000000000000 R09: 00005654f7b65450
R10: 000000000000001b R11: 0000000000000246 R12: 00007fffe98f4050
R13: 0000000000000001 R14: 00005654bf71c6d7 R15: 00005654f7dace70
================================================================================
aiptek 1-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess), 4 bytes skipped:
0: 48 85 c0 test %rax,%rax
3: 74 3c je 0x41
5: 49 89 c5 mov %rax,%r13
8: 4c 89 f1 mov %r14,%rcx
b: 4c 8d 70 09 lea 0x9(%rax),%r14
f: 4c 89 f0 mov %r14,%rax
12: 48 c1 e8 03 shr $0x3,%rax
16: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax
1a: 84 c0 test %al,%al
1c: 0f 85 28 03 00 00 jne 0x34a
22: 41 0f b6 1e movzbl (%r14),%ebx
* 26: 31 ff xor %edi,%edi <-- trapping instruction
28: 89 de mov %ebx,%esi
2a: e8 76 0b 30 ff call 0xff300ba5
2f: 85 db test %ebx,%ebx
31: 0f 84 1a 01 00 00 je 0x151
37: e8 89 08 30 ff call 0xff3008c5