syzbot
KASAN: use-after-free Read in usbhid_power
Status:
upstream: reported C repro on 2026/10/05 17:04
Bug presence:
origin:lts
[Documentation on labels]
Reported-by: syzbot+3662c8a363ba96f802a7@syzkaller.appspotmail.com
First crash: 50d, last: 39d
▶
▼
Bug presence (2)
| Date |
Name |
Commit |
Repro |
Result |
| 2026/10/13 |
lts (merge base) |
090666d3cc90 |
C
|
[report] KASAN: use-after-free Read in usbhid_power
|
| 2026/10/13 |
upstream (ToT) |
24a19b953e2a |
C
|
Didn't crash |
▶
▼
Last patch testing requests (4)
Sample crash report:
==================================================================
BUG: KASAN: use-after-free in usbhid_power+0x78/0xc0 drivers/hid/usbhid/hid-core.c:1281
Read of size 8 at addr ffff8881106fc008 by task syz.1.18/414
CPU: 1 PID: 414 Comm: syz.1.18 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
<TASK>
__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_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:351
usbhid_power+0x78/0xc0 drivers/hid/usbhid/hid-core.c:1281
hid_hw_power include/linux/hid.h:1139 [inline]
hidraw_open+0x272/0x920 drivers/hid/hidraw.c:288
chrdev_open+0x593/0x600 fs/char_dev.c:414
do_dentry_open+0x885/0x11f0 fs/open.c:884
vfs_open+0x73/0x80 fs/open.c:1017
do_open fs/namei.c:3633 [inline]
path_openat+0x2699/0x2f30 fs/namei.c:3790
do_filp_open+0x1ee/0x420 fs/namei.c:3817
do_sys_openat2+0x15e/0x820 fs/open.c:1343
do_sys_open fs/open.c:1359 [inline]
__do_sys_openat fs/open.c:1375 [inline]
__se_sys_openat fs/open.c:1370 [inline]
__x64_sys_openat+0x136/0x160 fs/open.c:1370
x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258
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:0x7fd0deb5ed8e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd0dfad0b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd0dfad16c0 RCX: 00007fd0deb5ed8e
RDX: 0000000000000000 RSI: 00007fd0dfad0c00 RDI: ffffffffffffff9c
RBP: 00007fd0dfad0c00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd
R13: 00007fd0dee26038 R14: 00007fd0dee25fa0 R15: 00007ffdf19d3488
</TASK>
The buggy address belongs to the physical page:
page:ffffea000441bf00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1106fc
flags: 0x4000000000000000(zone=1)
raw: 4000000000000000 ffffea0004b96508 ffffea0004b96808 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 2, migratetype Unmovable, gfp_mask 0x102800(GFP_NOWAIT|__GFP_NOWARN|__GFP_HARDWALL), pid 404, tgid 404 (kworker/0:3), ts 34474367549, free_ts 34474370044
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2673
prep_new_page+0x1c/0x110 mm/page_alloc.c:2680
get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4587
__alloc_pages+0x1fa/0x610 mm/page_alloc.c:5931
__alloc_pages_node include/linux/gfp.h:236 [inline]
alloc_pages_node include/linux/gfp.h:259 [inline]
alloc_pages include/linux/gfp.h:270 [inline]
__stack_depot_save+0x388/0x490 lib/stackdepot.c:474
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_set_track+0x60/0x70 mm/kasan/common.c:53
kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516
____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:250
kasan_slab_free include/linux/kasan.h:178 [inline]
slab_free_hook mm/slub.c:1750 [inline]
slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776
slab_free mm/slub.c:3712 [inline]
__kmem_cache_free+0xb7/0x1b0 mm/slub.c:3728
kfree+0x6f/0xf0 mm/slab_common.c:990
skb_free_head net/core/skbuff.c:765 [inline]
skb_release_data+0x63d/0x8a0 net/core/skbuff.c:794
skb_release_all net/core/skbuff.c:859 [inline]
__kfree_skb net/core/skbuff.c:873 [inline]
consume_skb+0xab/0x1f0 net/core/skbuff.c:1038
uevent_net_broadcast_untagged lib/kobject_uevent.c:337 [inline]
kobject_uevent_net_broadcast+0x47e/0x5b0 lib/kobject_uevent.c:409
kobject_uevent_env+0x541/0x720 lib/kobject_uevent.c:608
page last free stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
free_pages_prepare mm/page_alloc.c:1581 [inline]
free_pcp_prepare mm/page_alloc.c:1655 [inline]
free_unref_page_prepare+0x81b/0x820 mm/page_alloc.c:3622
free_unref_page+0x93/0x530 mm/page_alloc.c:3720
free_the_page mm/page_alloc.c:863 [inline]
__free_pages+0x67/0x100 mm/page_alloc.c:6021
free_pages+0x82/0x90 mm/page_alloc.c:6032
__stack_depot_save+0x45f/0x490 lib/stackdepot.c:506
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_set_track+0x60/0x70 mm/kasan/common.c:53
kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516
____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:250
kasan_slab_free include/linux/kasan.h:178 [inline]
slab_free_hook mm/slub.c:1750 [inline]
slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776
slab_free mm/slub.c:3712 [inline]
__kmem_cache_free+0xb7/0x1b0 mm/slub.c:3728
kfree+0x6f/0xf0 mm/slab_common.c:990
skb_free_head net/core/skbuff.c:765 [inline]
skb_release_data+0x63d/0x8a0 net/core/skbuff.c:794
skb_release_all net/core/skbuff.c:859 [inline]
__kfree_skb net/core/skbuff.c:873 [inline]
consume_skb+0xab/0x1f0 net/core/skbuff.c:1038
uevent_net_broadcast_untagged lib/kobject_uevent.c:337 [inline]
kobject_uevent_net_broadcast+0x47e/0x5b0 lib/kobject_uevent.c:409
kobject_uevent_env+0x541/0x720 lib/kobject_uevent.c:608
Memory state around the buggy address:
ffff8881106fbf00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
ffff8881106fbf80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
>ffff8881106fc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff8881106fc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff8881106fc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
BUG: kernel NULL pointer dereference, address: 0000000000000228
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 1125de067 P4D 1125de067 PUD 0
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 414 Comm: syz.1.18 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:arch_atomic_inc include/linux/instrumented.h:102 [inline]
RIP: 0010:atomic_inc include/linux/atomic/atomic-instrumented.h:191 [inline]
RIP: 0010:__pm_runtime_resume+0x45/0x90 drivers/base/power/runtime.c:1168
Code: ff e8 ff e6 88 fe 89 d8 83 e0 04 75 07 e8 d3 e2 88 fe eb 1e e8 cc e2 88 fe 49 8d be f8 01 00 00 be 04 00 00 00 e8 2b 7f ce fe <f0> 41 ff 86 f8 01 00 00 4d 8d be 14 01 00 00 4c 89 ff e8 74 63 19
RSP: 0018:ffffc90000bb7718 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000004 RCX: ffffffff82e88b85
RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000228
RBP: ffffc90000bb7738 R08: 0000000000000000 R09: 1ffffffff0f6eefc
R10: dffffc0000000000 R11: fffffbfff0f6eefd R12: ffffffff876ee4e0
R13: 0000000000000000 R14: 0000000000000030 R15: dffffc0000000000
FS: 00007fd0dfad16c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000228 CR3: 0000000120ce4000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
pm_runtime_get_sync include/linux/pm_runtime.h:435 [inline]
usb_autopm_get_interface+0x20/0x60 drivers/usb/core/driver.c:1827
usbhid_power+0x80/0xc0 drivers/hid/usbhid/hid-core.c:1281
hid_hw_power include/linux/hid.h:1139 [inline]
hidraw_open+0x272/0x920 drivers/hid/hidraw.c:288
chrdev_open+0x593/0x600 fs/char_dev.c:414
do_dentry_open+0x885/0x11f0 fs/open.c:884
vfs_open+0x73/0x80 fs/open.c:1017
do_open fs/namei.c:3633 [inline]
path_openat+0x2699/0x2f30 fs/namei.c:3790
do_filp_open+0x1ee/0x420 fs/namei.c:3817
do_sys_openat2+0x15e/0x820 fs/open.c:1343
do_sys_open fs/open.c:1359 [inline]
__do_sys_openat fs/open.c:1375 [inline]
__se_sys_openat fs/open.c:1370 [inline]
__x64_sys_openat+0x136/0x160 fs/open.c:1370
x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258
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:0x7fd0deb5ed8e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd0dfad0b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd0dfad16c0 RCX: 00007fd0deb5ed8e
RDX: 0000000000000000 RSI: 00007fd0dfad0c00 RDI: ffffffffffffff9c
RBP: 00007fd0dfad0c00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd
R13: 00007fd0dee26038 R14: 00007fd0dee25fa0 R15: 00007ffdf19d3488
</TASK>
Modules linked in:
CR2: 0000000000000228
---[ end trace 0000000000000000 ]---
RIP: 0010:arch_atomic_inc include/linux/instrumented.h:102 [inline]
RIP: 0010:atomic_inc include/linux/atomic/atomic-instrumented.h:191 [inline]
RIP: 0010:__pm_runtime_resume+0x45/0x90 drivers/base/power/runtime.c:1168
Code: ff e8 ff e6 88 fe 89 d8 83 e0 04 75 07 e8 d3 e2 88 fe eb 1e e8 cc e2 88 fe 49 8d be f8 01 00 00 be 04 00 00 00 e8 2b 7f ce fe <f0> 41 ff 86 f8 01 00 00 4d 8d be 14 01 00 00 4c 89 ff e8 74 63 19
RSP: 0018:ffffc90000bb7718 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000004 RCX: ffffffff82e88b85
RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000228
RBP: ffffc90000bb7738 R08: 0000000000000000 R09: 1ffffffff0f6eefc
R10: dffffc0000000000 R11: fffffbfff0f6eefd R12: ffffffff876ee4e0
R13: 0000000000000000 R14: 0000000000000030 R15: dffffc0000000000
FS: 00007fd0dfad16c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000228 CR3: 0000000120ce4000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: ff ljmp (bad)
1: e8 ff e6 88 fe call 0xfe88e705
6: 89 d8 mov %ebx,%eax
8: 83 e0 04 and $0x4,%eax
b: 75 07 jne 0x14
d: e8 d3 e2 88 fe call 0xfe88e2e5
12: eb 1e jmp 0x32
14: e8 cc e2 88 fe call 0xfe88e2e5
19: 49 8d be f8 01 00 00 lea 0x1f8(%r14),%rdi
20: be 04 00 00 00 mov $0x4,%esi
25: e8 2b 7f ce fe call 0xfece7f55
* 2a: f0 41 ff 86 f8 01 00 lock incl 0x1f8(%r14) <-- trapping instruction
31: 00
32: 4d 8d be 14 01 00 00 lea 0x114(%r14),%r15
39: 4c 89 ff mov %r15,%rdi
3c: e8 .byte 0xe8
3d: 74 63 je 0xa2
3f: 19 .byte 0x19
* Struck through repros no longer work on HEAD.