syzbot
KASAN: slab-out-of-bounds Read in aqc_raw_event
Status:
upstream: reported C repro on 2026/08/17 17:56
Reported-by: syzbot+84deb4ef39918f8de895@syzkaller.appspotmail.com
First crash: 10d, last: 9d07h
Sample crash report:
==================================================================
BUG: KASAN: slab-out-of-bounds in get_unaligned_be16 include/asm-generic/unaligned.h:57 [inline]
BUG: KASAN: slab-out-of-bounds in aqc_raw_event+0x35c/0x1830 drivers/hwmon/aquacomputer_d5next.c:721
Read of size 2 at addr ffff88807a334bd7 by task swapper/1/0
CPU: 1 PID: 0 Comm: swapper/1 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
<IRQ>
dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106
print_address_description mm/kasan/report.c:316 [inline]
print_report+0xa8/0x210 mm/kasan/report.c:420
kasan_report+0x10b/0x140 mm/kasan/report.c:524
get_unaligned_be16 include/asm-generic/unaligned.h:57 [inline]
aqc_raw_event+0x35c/0x1830 drivers/hwmon/aquacomputer_d5next.c:721
hid_input_report+0x3fe/0x4f0 drivers/hid/hid-core.c:2122
hid_irq_in+0x434/0x690 drivers/hid/usbhid/hid-core.c:284
__usb_hcd_giveback_urb+0x35d/0x520 drivers/usb/core/hcd.c:1673
dummy_timer+0xa21/0x3420 drivers/usb/gadget/udc/dummy_hcd.c:2004
__run_hrtimer kernel/time/hrtimer.c:1751 [inline]
__hrtimer_run_queues+0x522/0xc90 kernel/time/hrtimer.c:1815
hrtimer_run_softirq+0x173/0x290 kernel/time/hrtimer.c:1832
handle_softirqs+0x291/0x910 kernel/softirq.c:596
__do_softirq kernel/softirq.c:630 [inline]
invoke_softirq kernel/softirq.c:470 [inline]
__irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679
irq_exit_rcu+0x5/0x20 kernel/softirq.c:691
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:default_idle+0xb/0x10 arch/x86/kernel/process.c:742
Code: 48 89 df e8 17 47 99 f7 e9 44 ff ff ff e8 fd 03 f6 ff 00 00 cc cc 00 00 cc cc 00 00 cc cc 00 66 90 0f 00 2d 57 93 4c 00 fb f4 <c3> 0f 1f 40 00 41 57 41 56 53 49 be 00 00 00 00 00 fc ff df 65 48
RSP: 0018:ffffc90000177de8 EFLAGS: 000002c6
RAX: 81a0d4b9de267500 RBX: ffffffff8a3a18b7 RCX: 81a0d4b9de267500
RDX: 0000000000000001 RSI: ffffffff8a8c17a0 RDI: ffffffff8adf5de0
RBP: ffffc90000177f20 R08: ffff8880b8f3580b R09: 1ffff110171e6b01
R10: dffffc0000000000 R11: ffffed10171e6b02 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff888017741e00 R15: 1ffff9200002efc8
default_idle_call+0x84/0xc0 kernel/sched/idle.c:109
cpuidle_idle_call kernel/sched/idle.c:199 [inline]
do_idle+0x3a2/0x680 kernel/sched/idle.c:323
cpu_startup_entry+0x3f/0x60 kernel/sched/idle.c:422
start_secondary+0xe4/0xf0 arch/x86/kernel/smpboot.c:281
secondary_startup_64_no_verify+0xcf/0xdb
</TASK>
Allocated by task 4323:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:53
____kasan_kmalloc mm/kasan/common.c:375 [inline]
__kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384
kasan_kmalloc include/linux/kasan.h:211 [inline]
__do_kmalloc_node mm/slab_common.c:936 [inline]
__kmalloc+0xb3/0x240 mm/slab_common.c:949
hid_alloc_buffers drivers/hid/usbhid/hid-core.c:855 [inline]
usbhid_start+0x7a3/0x2090 drivers/hid/usbhid/hid-core.c:1104
hid_hw_start+0x5b/0x100 drivers/hid/hid-core.c:2335
aqc_probe+0x101/0x13a0 drivers/hwmon/aquacomputer_d5next.c:866
hid_device_probe+0x253/0x350 drivers/hid/hid-core.c:2671
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x24a/0xb40 drivers/base/dd.c:638
__driver_probe_device+0x1f5/0x390 drivers/base/dd.c:804
driver_probe_device+0x4f/0x420 drivers/base/dd.c:834
__device_attach_driver+0x2c6/0x510 drivers/base/dd.c:962
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2a7/0x480 drivers/base/dd.c:1034
bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489
device_add+0xbcf/0x1050 drivers/base/core.c:3712
hid_add_device+0x361/0x500 drivers/hid/hid-core.c:2823
usbhid_probe+0xc3f/0x1010 drivers/hid/usbhid/hid-core.c:1442
usb_probe_interface+0x5be/0xae0 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x24a/0xb40 drivers/base/dd.c:638
__driver_probe_device+0x1f5/0x390 drivers/base/dd.c:804
driver_probe_device+0x4f/0x420 drivers/base/dd.c:834
__device_attach_driver+0x2c6/0x510 drivers/base/dd.c:962
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2a7/0x480 drivers/base/dd.c:1034
bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489
device_add+0xbcf/0x1050 drivers/base/core.c:3712
usb_set_configuration+0x19d5/0x2030 drivers/usb/core/message.c:2223
usb_generic_driver_probe+0x89/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x126/0x250 drivers/usb/core/driver.c:293
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x24a/0xb40 drivers/base/dd.c:638
__driver_probe_device+0x1f5/0x390 drivers/base/dd.c:804
driver_probe_device+0x4f/0x420 drivers/base/dd.c:834
__device_attach_driver+0x2c6/0x510 drivers/base/dd.c:962
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2a7/0x480 drivers/base/dd.c:1034
bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489
device_add+0xbcf/0x1050 drivers/base/core.c:3712
usb_new_device+0xa01/0x15e0 drivers/usb/core/hub.c:2659
hub_port_connect drivers/usb/core/hub.c:5517 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5657 [inline]
port_event drivers/usb/core/hub.c:5817 [inline]
hub_event+0x2b2f/0x5200 drivers/usb/core/hub.c:5899
process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292
worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439
kthread+0x29d/0x330 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
The buggy address belongs to the object at ffff88807a334b80
which belongs to the cache kmalloc-96 of size 96
The buggy address is located 87 bytes inside of
96-byte region [ffff88807a334b80, ffff88807a334be0)
The buggy address belongs to the physical page:
page:ffffea0001e8cd00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7a334
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 0000000000000000 dead000000000122 ffff888017441780
raw: 0000000000000000 0000000000200020 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 22, tgid 22 (kworker/1:0), ts 91914629607, free_ts 91401942892
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560
prep_new_page mm/page_alloc.c:2567 [inline]
get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358
__alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658
__alloc_pages_node include/linux/gfp.h:237 [inline]
alloc_slab_page+0x4f/0x180 mm/slub.c:1801
allocate_slab mm/slub.c:1944 [inline]
new_slab+0x87/0x2d0 mm/slub.c:1997
___slab_alloc+0xbc5/0x1240 mm/slub.c:3154
__slab_alloc mm/slub.c:3240 [inline]
slab_alloc_node mm/slub.c:3325 [inline]
__kmem_cache_alloc_node+0x126/0x270 mm/slub.c:3398
__do_kmalloc_node mm/slab_common.c:935 [inline]
__kmalloc_node+0xa2/0x240 mm/slab_common.c:943
kmalloc_array_node include/linux/slab.h:676 [inline]
kcalloc_node include/linux/slab.h:681 [inline]
memcg_alloc_slab_cgroups+0x81/0x120 mm/memcontrol.c:2889
account_slab mm/slab.h:635 [inline]
allocate_slab mm/slub.c:1962 [inline]
new_slab+0xc3/0x2d0 mm/slub.c:1997
___slab_alloc+0xbc5/0x1240 mm/slub.c:3154
__slab_alloc mm/slub.c:3240 [inline]
slab_alloc_node mm/slub.c:3325 [inline]
slab_alloc mm/slub.c:3367 [inline]
__kmem_cache_alloc_lru mm/slub.c:3374 [inline]
kmem_cache_alloc+0x111/0x2f0 mm/slub.c:3383
dst_alloc+0x101/0x160 net/core/dst.c:88
ip6_dst_alloc net/ipv6/route.c:345 [inline]
icmp6_dst_alloc+0x7c/0x490 net/ipv6/route.c:3312
mld_sendpack+0x71c/0xe10 net/ipv6/mcast.c:1842
mld_dad_work+0x39/0x1d0 net/ipv6/mcast.c:2294
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1487 [inline]
free_pcp_prepare mm/page_alloc.c:1537 [inline]
free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414
free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3509
qlink_free mm/kasan/quarantine.c:168 [inline]
qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187
kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294
__kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:306
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook+0x4b/0x490 mm/slab.h:737
slab_alloc_node mm/slub.c:3359 [inline]
__kmem_cache_alloc_node+0x19d/0x270 mm/slub.c:3398
kmalloc_trace+0x26/0xe0 mm/slab_common.c:1026
kmalloc include/linux/slab.h:563 [inline]
kzalloc include/linux/slab.h:699 [inline]
kobject_uevent_env+0x278/0x890 lib/kobject_uevent.c:539
nfs_netns_sysfs_destroy+0x50/0x90 fs/nfs/sysfs.c:187
nfs_clients_exit+0x4a/0x130 fs/nfs/client.c:1214
ops_exit_list net/core/net_namespace.c:172 [inline]
cleanup_net+0x703/0xba0 net/core/net_namespace.c:640
process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292
worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439
kthread+0x29d/0x330 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Memory state around the buggy address:
ffff88807a334a80: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
ffff88807a334b00: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
>ffff88807a334b80: 00 00 00 00 00 00 00 00 01 fc fc fc fc fc fc fc
^
ffff88807a334c00: 00 00 00 00 00 00 00 00 01 fc fc fc fc fc fc fc
ffff88807a334c80: 00 00 00 00 00 00 00 00 01 fc fc fc fc fc fc fc
==================================================================
----------------
Code disassembly (best guess):
0: 48 89 df mov %rbx,%rdi
3: e8 17 47 99 f7 call 0xf799471f
8: e9 44 ff ff ff jmp 0xffffff51
d: e8 fd 03 f6 ff call 0xfff6040f
12: 00 00 add %al,(%rax)
14: cc int3
15: cc int3
16: 00 00 add %al,(%rax)
18: cc int3
19: cc int3
1a: 00 00 add %al,(%rax)
1c: cc int3
1d: cc int3
1e: 00 66 90 add %ah,-0x70(%rsi)
21: 0f 00 2d 57 93 4c 00 verw 0x4c9357(%rip) # 0x4c937f
28: fb sti
29: f4 hlt
* 2a: c3 ret <-- trapping instruction
2b: 0f 1f 40 00 nopl 0x0(%rax)
2f: 41 57 push %r15
31: 41 56 push %r14
33: 53 push %rbx
34: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14
3b: fc ff df
3e: 65 gs
3f: 48 rex.W
* Struck through repros no longer work on HEAD.