================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:741:31
index 6955 is out of range for type 'const int[34]'
CPU: 0 PID: 19 Comm: kworker/0:1 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
Workqueue: usb_hub_wq hub_event
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:console_emit_next_record+0x87e/0xa80 kernel/printk/printk.c:2797
Code: de 48 81 e6 00 02 00 00 31 ff e8 fd 83 19 00 48 81 e3 00 02 00 00 75 07 e8 2f 7f 19 00 eb 06 e8 28 7f 19 00 fb 0f b6 5c 24 17 <66> 43 c7 44 2f 20 f8 f8 43 c6 44 2f 22 f8 4f 89 74 2f 10 66 43 c7
RSP: 0018:ffffc90000136380 EFLAGS: 00000287
RAX: ffffffff8157ef18 RBX: 0000000000000001 RCX: 0000000000100000
RDX: ffffc9000d2f2000 RSI: 00000000000a47b1 RDI: 00000000000a47b2
RBP: ffffc90000136570 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000026c60 R12: ffffc900001365bf
R13: dffffc0000000000 R14: f8f8f8f8f8f8f8f8 R15: 1ffff92000026c7c
console_flush_all kernel/printk/printk.c:-1 [inline]
console_unlock+0x246/0x560 kernel/printk/printk.c:2917
vprintk_emit+0x14d/0x420 kernel/printk/printk.c:2308
dev_vprintk_emit+0x32f/0x3e4 drivers/base/core.c:4934
dev_printk_emit+0xeb/0x13c drivers/base/core.c:4945
__netdev_printk+0x314/0x400 net/core/dev.c:11381
netdev_warn+0x11b/0x16c net/core/dev.c:11434
asix_write_cmd drivers/net/usb/asix_common.c:57 [inline]
asix_set_sw_mii drivers/net/usb/asix_common.c:75 [inline]
asix_check_host_enable drivers/net/usb/asix_common.c:98 [inline]
__asix_mdio_read drivers/net/usb/asix_common.c:511 [inline]
asix_mdio_bus_read+0x22d/0x510 drivers/net/usb/asix_common.c:575
__mdiobus_read+0x88/0x260 drivers/net/phy/mdio_bus.c:774
mdiobus_read+0x34/0x50 drivers/net/phy/mdio_bus.c:889
get_phy_c22_id drivers/net/phy/phy_device.c:887 [inline]
get_phy_device+0x99/0x290 drivers/net/phy/phy_device.c:964
mdiobus_scan+0xf6/0x420 drivers/net/phy/mdio_bus.c:-1
__mdiobus_register+0x604/0x8c0 drivers/net/phy/mdio_bus.c:597
ax88172a_init_mdio+0x205/0x310 drivers/net/usb/ax88172a.c:80
ax88172a_bind+0x4b6/0x560 drivers/net/usb/ax88172a.c:226
usbnet_probe+0xaae/0x2850 drivers/net/usb/usbnet.c:1778
usb_probe_interface+0x621/0xb30 drivers/usb/core/driver.c:397
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x2d7/0x9a0 drivers/base/dd.c:639
__driver_probe_device+0x193/0x270 drivers/base/dd.c:808
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838
__device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966
bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:1038
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087
bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489
device_add+0xb0b/0xec0 drivers/base/core.c:3698
usb_set_configuration+0x1a01/0x1f70 drivers/usb/core/message.c:2223
usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x154/0x260 drivers/usb/core/driver.c:294
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x2d7/0x9a0 drivers/base/dd.c:639
__driver_probe_device+0x193/0x270 drivers/base/dd.c:808
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838
__device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966
bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:1038
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087
bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489
device_add+0xb0b/0xec0 drivers/base/core.c:3698
usb_new_device+0x9f4/0x1500 drivers/usb/core/hub.c:2684
hub_port_connect drivers/usb/core/hub.c:5594 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5734 [inline]
port_event drivers/usb/core/hub.c:5898 [inline]
hub_event+0x27fb/0x4310 drivers/usb/core/hub.c:5980
process_one_work+0x717/0xc30 kernel/workqueue.c:2302
worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449
kthread+0x281/0x320 kernel/kthread.c:386
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
================================================================================
==================================================================
BUG: KASAN: global-out-of-bounds in aiptek_irq+0x2063/0x29b0 drivers/input/tablet/aiptek.c:741
Read of size 4 at addr ffffffff85e6cc6c by task kworker/0:1/19
CPU: 0 PID: 19 Comm: kworker/0:1 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
Workqueue: usb_hub_wq hub_event
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:console_emit_next_record+0x87e/0xa80 kernel/printk/printk.c:2797
Code: de 48 81 e6 00 02 00 00 31 ff e8 fd 83 19 00 48 81 e3 00 02 00 00 75 07 e8 2f 7f 19 00 eb 06 e8 28 7f 19 00 fb 0f b6 5c 24 17 <66> 43 c7 44 2f 20 f8 f8 43 c6 44 2f 22 f8 4f 89 74 2f 10 66 43 c7
RSP: 0018:ffffc90000136380 EFLAGS: 00000287
RAX: ffffffff8157ef18 RBX: 0000000000000001 RCX: 0000000000100000
RDX: ffffc9000d2f2000 RSI: 00000000000a47b1 RDI: 00000000000a47b2
RBP: ffffc90000136570 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000026c60 R12: ffffc900001365bf
R13: dffffc0000000000 R14: f8f8f8f8f8f8f8f8 R15: 1ffff92000026c7c
console_flush_all kernel/printk/printk.c:-1 [inline]
console_unlock+0x246/0x560 kernel/printk/printk.c:2917
vprintk_emit+0x14d/0x420 kernel/printk/printk.c:2308
dev_vprintk_emit+0x32f/0x3e4 drivers/base/core.c:4934
dev_printk_emit+0xeb/0x13c drivers/base/core.c:4945
__netdev_printk+0x314/0x400 net/core/dev.c:11381
netdev_warn+0x11b/0x16c net/core/dev.c:11434
asix_write_cmd drivers/net/usb/asix_common.c:57 [inline]
asix_set_sw_mii drivers/net/usb/asix_common.c:75 [inline]
asix_check_host_enable drivers/net/usb/asix_common.c:98 [inline]
__asix_mdio_read drivers/net/usb/asix_common.c:511 [inline]
asix_mdio_bus_read+0x22d/0x510 drivers/net/usb/asix_common.c:575
__mdiobus_read+0x88/0x260 drivers/net/phy/mdio_bus.c:774
mdiobus_read+0x34/0x50 drivers/net/phy/mdio_bus.c:889
get_phy_c22_id drivers/net/phy/phy_device.c:887 [inline]
get_phy_device+0x99/0x290 drivers/net/phy/phy_device.c:964
mdiobus_scan+0xf6/0x420 drivers/net/phy/mdio_bus.c:-1
__mdiobus_register+0x604/0x8c0 drivers/net/phy/mdio_bus.c:597
ax88172a_init_mdio+0x205/0x310 drivers/net/usb/ax88172a.c:80
ax88172a_bind+0x4b6/0x560 drivers/net/usb/ax88172a.c:226
usbnet_probe+0xaae/0x2850 drivers/net/usb/usbnet.c:1778
usb_probe_interface+0x621/0xb30 drivers/usb/core/driver.c:397
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x2d7/0x9a0 drivers/base/dd.c:639
__driver_probe_device+0x193/0x270 drivers/base/dd.c:808
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838
__device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966
bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:1038
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087
bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489
device_add+0xb0b/0xec0 drivers/base/core.c:3698
usb_set_configuration+0x1a01/0x1f70 drivers/usb/core/message.c:2223
usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x154/0x260 drivers/usb/core/driver.c:294
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x2d7/0x9a0 drivers/base/dd.c:639
__driver_probe_device+0x193/0x270 drivers/base/dd.c:808
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838
__device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966
bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:1038
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087
bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489
device_add+0xb0b/0xec0 drivers/base/core.c:3698
usb_new_device+0x9f4/0x1500 drivers/usb/core/hub.c:2684
hub_port_connect drivers/usb/core/hub.c:5594 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5734 [inline]
port_event drivers/usb/core/hub.c:5898 [inline]
hub_event+0x27fb/0x4310 drivers/usb/core/hub.c:5980
process_one_work+0x717/0xc30 kernel/workqueue.c:2302
worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449
kthread+0x281/0x320 kernel/kthread.c:386
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
The buggy address belongs to the variable:
.str.27+0xc/0x20
The buggy address belongs to the physical page:
page:ffffea0000179b00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e6c
flags: 0x1000(reserved|zone=0)
raw: 0000000000001000 ffffea0000179b08 ffffea0000179b08 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:
ffffffff85e6cb00: 05 f9 f9 f9 00 00 00 00 00 00 00 00 f9 f9 f9 f9
ffffffff85e6cb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffffff85e6cc00: 00 00 00 00 00 00 00 00 f9 f9 f9 f9 07 f9 f9 f9
^
ffffffff85e6cc80: 00 00 00 02 f9 f9 f9 f9 00 00 00 00 00 00 00 00
ffffffff85e6cd00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
================================================================================
UBSAN: array-index-out-of-bounds in drivers/input/tablet/aiptek.c:763:30
index 6956 is out of range for type 'const int[34]'
CPU: 0 PID: 19 Comm: kworker/0:1 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
Workqueue: usb_hub_wq hub_event
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:console_emit_next_record+0x87e/0xa80 kernel/printk/printk.c:2797
Code: de 48 81 e6 00 02 00 00 31 ff e8 fd 83 19 00 48 81 e3 00 02 00 00 75 07 e8 2f 7f 19 00 eb 06 e8 28 7f 19 00 fb 0f b6 5c 24 17 <66> 43 c7 44 2f 20 f8 f8 43 c6 44 2f 22 f8 4f 89 74 2f 10 66 43 c7
RSP: 0018:ffffc90000136380 EFLAGS: 00000287
RAX: ffffffff8157ef18 RBX: 0000000000000001 RCX: 0000000000100000
RDX: ffffc9000d2f2000 RSI: 00000000000a47b1 RDI: 00000000000a47b2
RBP: ffffc90000136570 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000026c60 R12: ffffc900001365bf
R13: dffffc0000000000 R14: f8f8f8f8f8f8f8f8 R15: 1ffff92000026c7c
console_flush_all kernel/printk/printk.c:-1 [inline]
console_unlock+0x246/0x560 kernel/printk/printk.c:2917
vprintk_emit+0x14d/0x420 kernel/printk/printk.c:2308
dev_vprintk_emit+0x32f/0x3e4 drivers/base/core.c:4934
dev_printk_emit+0xeb/0x13c drivers/base/core.c:4945
__netdev_printk+0x314/0x400 net/core/dev.c:11381
netdev_warn+0x11b/0x16c net/core/dev.c:11434
asix_write_cmd drivers/net/usb/asix_common.c:57 [inline]
asix_set_sw_mii drivers/net/usb/asix_common.c:75 [inline]
asix_check_host_enable drivers/net/usb/asix_common.c:98 [inline]
__asix_mdio_read drivers/net/usb/asix_common.c:511 [inline]
asix_mdio_bus_read+0x22d/0x510 drivers/net/usb/asix_common.c:575
__mdiobus_read+0x88/0x260 drivers/net/phy/mdio_bus.c:774
mdiobus_read+0x34/0x50 drivers/net/phy/mdio_bus.c:889
get_phy_c22_id drivers/net/phy/phy_device.c:887 [inline]
get_phy_device+0x99/0x290 drivers/net/phy/phy_device.c:964
mdiobus_scan+0xf6/0x420 drivers/net/phy/mdio_bus.c:-1
__mdiobus_register+0x604/0x8c0 drivers/net/phy/mdio_bus.c:597
ax88172a_init_mdio+0x205/0x310 drivers/net/usb/ax88172a.c:80
ax88172a_bind+0x4b6/0x560 drivers/net/usb/ax88172a.c:226
usbnet_probe+0xaae/0x2850 drivers/net/usb/usbnet.c:1778
usb_probe_interface+0x621/0xb30 drivers/usb/core/driver.c:397
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x2d7/0x9a0 drivers/base/dd.c:639
__driver_probe_device+0x193/0x270 drivers/base/dd.c:808
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838
__device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966
bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:1038
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087
bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489
device_add+0xb0b/0xec0 drivers/base/core.c:3698
usb_set_configuration+0x1a01/0x1f70 drivers/usb/core/message.c:2223
usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x154/0x260 drivers/usb/core/driver.c:294
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x2d7/0x9a0 drivers/base/dd.c:639
__driver_probe_device+0x193/0x270 drivers/base/dd.c:808
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:838
__device_attach_driver+0x2e9/0x4a0 drivers/base/dd.c:966
bus_for_each_drv+0x192/0x220 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:1038
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1087
bus_probe_device+0xc0/0x1f0 drivers/base/bus.c:489
device_add+0xb0b/0xec0 drivers/base/core.c:3698
usb_new_device+0x9f4/0x1500 drivers/usb/core/hub.c:2684
hub_port_connect drivers/usb/core/hub.c:5594 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5734 [inline]
port_event drivers/usb/core/hub.c:5898 [inline]
hub_event+0x27fb/0x4310 drivers/usb/core/hub.c:5980
process_one_work+0x717/0xc30 kernel/workqueue.c:2302
worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449
kthread+0x281/0x320 kernel/kthread.c:386
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
================================================================================
aiptek 7-1:0.0: aiptek_irq - usb_submit_urb failed with result -19
----------------
Code disassembly (best guess):
0: de 48 81 fimuls -0x7f(%rax)
3: e6 00 out %al,$0x0
5: 02 00 add (%rax),%al
7: 00 31 add %dh,(%rcx)
9: ff ljmp (bad)
a: e8 fd 83 19 00 call 0x19840c
f: 48 81 e3 00 02 00 00 and $0x200,%rbx
16: 75 07 jne 0x1f
18: e8 2f 7f 19 00 call 0x197f4c
1d: eb 06 jmp 0x25
1f: e8 28 7f 19 00 call 0x197f4c
24: fb sti
25: 0f b6 5c 24 17 movzbl 0x17(%rsp),%ebx
* 2a: 66 43 c7 44 2f 20 f8 movw $0xf8f8,0x20(%r15,%r13,1) <-- trapping instruction
31: f8
32: 43 c6 44 2f 22 f8 movb $0xf8,0x22(%r15,%r13,1)
38: 4f 89 74 2f 10 mov %r14,0x10(%r15,%r13,1)
3d: 66 data16
3e: 43 rex.XB
3f: c7 .byte 0xc7