==================================================================
BUG: KASAN: use-after-free in mcp2221_raw_event+0x101c/0x1090 drivers/hid/hid-mcp2221.c:964
Read of size 1 at addr ffff88806448bfff by task dhcpcd/5291
CPU: 0 UID: 0 PID: 5291 Comm: dhcpcd Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
kasan_report+0xdf/0x1d0 mm/kasan/report.c:595
mcp2221_raw_event+0x101c/0x1090 drivers/hid/hid-mcp2221.c:964
__hid_input_report.constprop.0+0x319/0x470 drivers/hid/hid-core.c:2161
hid_irq_in+0x55d/0x710 drivers/hid/usbhid/hid-core.c:286
__usb_hcd_giveback_urb+0x38d/0x610 drivers/usb/core/hcd.c:1655
usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1739
dummy_timer+0xda1/0x36c0 drivers/usb/gadget/udc/dummy_hcd.c:2005
__run_hrtimer kernel/time/hrtimer.c:1930 [inline]
__hrtimer_run_queues+0x470/0xa00 kernel/time/hrtimer.c:1994
hrtimer_run_softirq+0x17d/0x2c0 kernel/time/hrtimer.c:2011
handle_softirqs+0x1ea/0xa00 kernel/softirq.c:622
__do_softirq kernel/softirq.c:656 [inline]
invoke_softirq kernel/softirq.c:496 [inline]
__irq_exit_rcu+0x162/0x210 kernel/softirq.c:735
irq_exit_rcu+0x9/0x30 kernel/softirq.c:752
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline]
sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1061
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697
RIP: 0010:srso_alias_safe_ret+0x5/0x7 arch/x86/lib/retpoline.S:213
Code: cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 48 8d 64 24 08 cc e8 f4 ff ff ff 0f 0b cc cc cc cc cc cc cc cc cc cc cc cc cc
RSP: 0018:ffffc900034571b8 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffff88802fe0c000 RCX: ffffffff8967292a
RDX: ffff888029d21f00 RSI: ffffffff89672a5a RDI: ffff888029d21f00
RBP: ffffc900034572e8 R08: 0000000000000005 R09: 00000000ffffffa1
R10: 00000000ffffffa1 R11: 0000000000000000 R12: 00000000ffffffa1
R13: 0000000000000000 R14: ffff888026098640 R15: ffffc90003457278
rtnl_phys_port_id_fill net/core/rtnetlink.c:1452 [inline]
rtnl_fill_ifinfo.isra.0+0x167a/0x4d60 net/core/rtnetlink.c:2146
rtnl_dump_ifinfo+0xbc8/0x10b0 net/core/rtnetlink.c:2537
rtnl_dumpit+0x19b/0x1f0 net/core/rtnetlink.c:6866
netlink_dump+0x532/0xd00 net/netlink/af_netlink.c:2330
netlink_recvmsg+0x7dc/0xa90 net/netlink/af_netlink.c:1981
sock_recvmsg_nosec net/socket.c:1137 [inline]
sock_recvmsg+0x1a4/0x1f0 net/socket.c:1159
____sys_recvmsg+0x218/0x640 net/socket.c:2918
___sys_recvmsg+0x16a/0x1a0 net/socket.c:2960
__sys_recvmsg+0x16d/0x220 net/socket.c:2993
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f27d9b14407
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:00007ffe6fdcfc10 EFLAGS: 00000202 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00007f27d9a8a780 RCX: 00007f27d9b14407
RDX: 0000000000000000 RSI: 00007ffe6fdcfca0 RDI: 0000000000000028
RBP: 00007ffe6fdcfc84 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000001f4c
R13: 00007ffe6fdcfc90 R14: 00007ffe6fdcfd80 R15: 0000000000000000
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffffffffffffffff pfn:0x6448b
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 0000000000000000 00000000ffffffff 0000000000000000
raw: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 17084, tgid 17083 (syz.7.3084), ts 1125235353709, free_ts 1138764792580
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1853
prep_new_page mm/page_alloc.c:1861 [inline]
get_page_from_freelist+0x11a6/0x3410 mm/page_alloc.c:3941
__alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5221
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab mm/slub.c:3467 [inline]
new_slab+0xa6/0x6c0 mm/slub.c:3525
refill_objects+0x277/0x420 mm/slub.c:7272
refill_sheaf mm/slub.c:2816 [inline]
__pcs_replace_empty_main+0x375/0x650 mm/slub.c:4652
alloc_from_pcs mm/slub.c:4750 [inline]
slab_alloc_node mm/slub.c:4884 [inline]
__kmalloc_cache_noprof+0x493/0x6f0 mm/slub.c:5415
kmalloc_noprof include/linux/slab.h:950 [inline]
kzalloc_noprof include/linux/slab.h:1188 [inline]
fuse_io_alloc+0x47/0x150 fs/fuse/file.c:693
fuse_direct_io+0x1823/0x24b0 fs/fuse/file.c:1736
fuse_direct_IO+0x7fe/0xf10 fs/fuse/file.c:2888
fuse_direct_write_iter+0x4bb/0x810 fs/fuse/file.c:1801
fuse_file_write_iter+0x5c5/0x990 fs/fuse/file.c:1850
aio_write+0x3ba/0x920 fs/aio.c:1688
__io_submit_one fs/aio.c:2060 [inline]
io_submit_one+0x1142/0x1fb0 fs/aio.c:2107
__do_sys_io_submit fs/aio.c:2166 [inline]
__se_sys_io_submit fs/aio.c:2136 [inline]
__x64_sys_io_submit+0x1b1/0x3a0 fs/aio.c:2136
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94
page last free pid 4996 tgid 4996 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1397 [inline]
__free_frozen_pages+0x794/0x10a0 mm/page_alloc.c:2938
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x47/0xf0 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350
kasan_slab_alloc include/linux/kasan.h:253 [inline]
slab_post_alloc_hook mm/slub.c:4570 [inline]
slab_alloc_node mm/slub.c:4899 [inline]
kmem_cache_alloc_noprof+0x241/0x6e0 mm/slub.c:4906
alloc_filename fs/namei.c:142 [inline]
do_getname+0x35/0x390 fs/namei.c:182
getname include/linux/fs.h:2526 [inline]
class_filename_constructor include/linux/fs.h:2553 [inline]
do_sys_openat2+0xc5/0x1e0 fs/open.c:1363
do_sys_open fs/open.c:1370 [inline]
__do_sys_openat fs/open.c:1386 [inline]
__se_sys_openat fs/open.c:1381 [inline]
__x64_sys_openat+0x12d/0x210 fs/open.c:1381
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffff88806448be80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff88806448bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88806448bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff88806448c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88806448c080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
usb 2-1: qt2_read_bulk_callback - non-zero urb status: -71
----------------
Code disassembly (best guess):
0: cc int3
1: cc int3
2: cc int3
3: cc int3
4: cc int3
5: cc int3
6: cc int3
7: cc int3
8: cc int3
9: cc int3
a: cc int3
b: cc int3
c: cc int3
d: cc int3
e: cc int3
f: cc int3
10: cc int3
11: cc int3
12: cc int3
13: cc int3
14: cc int3
15: cc int3
16: cc int3
17: cc int3
18: cc int3
19: cc int3
1a: cc int3
1b: cc int3
1c: cc int3
1d: cc int3
1e: cc int3
1f: cc int3
20: cc int3
21: cc int3
22: cc int3
23: cc int3
24: cc int3
25: 48 8d 64 24 08 lea 0x8(%rsp),%rsp
* 2a: c3 ret <-- trapping instruction
2b: cc int3
2c: e8 f4 ff ff ff call 0x25
31: 0f 0b ud2
33: cc int3
34: cc int3
35: cc int3
36: cc int3
37: cc int3
38: cc int3
39: cc int3
3a: cc int3
3b: cc int3
3c: cc int3
3d: cc int3
3e: cc int3
3f: cc int3