==================================================================
BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:948
Read of size 1 at addr ffff88811b913fff by task modprobe/16585
CPU: 0 UID: 0 PID: 16585 Comm: modprobe Not tainted syzkaller #0 PREEMPT(voluntary)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/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+0x156/0x4c9 mm/kasan/report.c:482
kasan_report+0xdf/0x1a0 mm/kasan/report.c:595
mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:948
__hid_input_report.constprop.0+0x314/0x460 drivers/hid/hid-core.c:2139
hid_irq_in+0x52e/0x6b0 drivers/hid/usbhid/hid-core.c:286
__usb_hcd_giveback_urb+0x38d/0x610 drivers/usb/core/hcd.c:1657
usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1741
dummy_timer+0xd85/0x3670 drivers/usb/gadget/udc/dummy_hcd.c:1995
__run_hrtimer kernel/time/hrtimer.c:1777 [inline]
__hrtimer_run_queues+0x516/0x990 kernel/time/hrtimer.c:1841
hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1858
handle_softirqs+0x1dd/0x8f0 kernel/softirq.c:622
__do_softirq kernel/softirq.c:656 [inline]
invoke_softirq kernel/softirq.c:496 [inline]
__irq_exit_rcu+0xed/0x150 kernel/softirq.c:723
irq_exit_rcu+0x9/0x30 kernel/softirq.c:739
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline]
sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1056
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697
RIP: 0010:mas_validate_gaps lib/maple_tree.c:6899 [inline]
RIP: 0010:mt_validate+0x1be1/0x30b0 lib/maple_tree.c:7176
Code: b9 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 08 00 0f 85 3e 0f 00 00 48 8b 44 24 50 48 8b 28 e8 a5 0e 64 fa 48 83 7c 24 38 00 <0f> 85 e8 fc ff ff e8 94 0e 64 fa 48 8b 3c 24 48 c7 c6 20 dd 65 88
RSP: 0018:ffffc900152cf260 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: ffff888139bc1d40 RSI: ffffffff874d2d5b RDI: ffff888139bc1d40
RBP: 0000564dc583dfff R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000000f R11: 0000000000000000 R12: 0000000000000000
R13: 000000000000000f R14: dffffc0000000000 R15: 0000000000000000
validate_mm+0xa8/0x4e0 mm/vma.c:647
__split_vma+0xa63/0xdf0 mm/vma.c:565
vms_gather_munmap_vmas+0x3aa/0x12a0 mm/vma.c:1421
__mmap_setup mm/vma.c:2403 [inline]
__mmap_region+0x46e/0x2430 mm/vma.c:2727
mmap_region+0x180/0x3e0 mm/vma.c:2823
do_mmap+0xc53/0x12d0 mm/mmap.c:558
vm_mmap_pgoff+0x201/0x390 mm/util.c:581
ksys_mmap_pgoff+0x328/0x5b0 mm/mmap.c:604
__do_sys_mmap arch/x86/kernel/sys_x86_64.c:89 [inline]
__se_sys_mmap arch/x86/kernel/sys_x86_64.c:82 [inline]
__x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:82
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xc9/0x570 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f33e5351242
Code: 08 00 04 00 00 eb e2 90 41 f7 c1 ff 0f 00 00 75 27 55 89 cd 53 48 89 fb 48 85 ff 74 33 41 89 ea 48 89 df b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 5e 5b 5d c3 0f 1f 00 c7 05 46 40 01 00 16 00
RSP: 002b:00007ffd3b5e59d8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f33e506f000 RCX: 00007f33e5351242
RDX: 0000000000000001 RSI: 0000000000001000 RDI: 00007f33e506f000
RBP: 0000000000000812 R08: 0000000000000000 R09: 0000000000004000
R10: 0000000000000812 R11: 0000000000000206 R12: 00007ffd3b5e5a60
R13: 00007f33e5326050 R14: 00007ffd3b5e5e10 R15: 00000fffa76bcb3e
Allocated by task 2851:
kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:398 [inline]
__kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:415
kasan_kmalloc include/linux/kasan.h:263 [inline]
__do_kmalloc_node mm/slub.c:5657 [inline]
__kmalloc_node_track_caller_noprof+0x34e/0x9a0 mm/slub.c:5764
kmalloc_reserve+0xef/0x2c0 net/core/skbuff.c:608
__alloc_skb+0x186/0x410 net/core/skbuff.c:690
alloc_skb include/linux/skbuff.h:1383 [inline]
alloc_skb_with_frags+0xe0/0x810 net/core/skbuff.c:6714
sock_alloc_send_pskb+0x801/0x980 net/core/sock.c:2995
unix_dgram_sendmsg+0x3c7/0x1820 net/unix/af_unix.c:2130
sock_sendmsg_nosec net/socket.c:727 [inline]
__sock_sendmsg net/socket.c:742 [inline]
__sys_sendto+0x4aa/0x520 net/socket.c:2206
__do_sys_sendto net/socket.c:2213 [inline]
__se_sys_sendto net/socket.c:2209 [inline]
__x64_sys_sendto+0xe0/0x1c0 net/socket.c:2209
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xc9/0x570 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 2844:
kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:253 [inline]
__kasan_slab_free+0x43/0x70 mm/kasan/common.c:285
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2540 [inline]
slab_free mm/slub.c:6670 [inline]
kfree+0x1ad/0x630 mm/slub.c:6878
skb_kfree_head net/core/skbuff.c:1068 [inline]
skb_free_head+0x119/0x220 net/core/skbuff.c:1080
skb_release_data+0x540/0x700 net/core/skbuff.c:1107
skb_release_all net/core/skbuff.c:1182 [inline]
__kfree_skb net/core/skbuff.c:1196 [inline]
consume_skb net/core/skbuff.c:1428 [inline]
consume_skb+0xc4/0x110 net/core/skbuff.c:1422
__unix_dgram_recvmsg+0x754/0xc30 net/unix/af_unix.c:2658
unix_dgram_recvmsg+0xd0/0x110 net/unix/af_unix.c:2675
sock_recvmsg_nosec net/socket.c:1078 [inline]
sock_recvmsg+0x1f9/0x250 net/socket.c:1100
sock_read_iter+0x2c6/0x3c0 net/socket.c:1170
new_sync_read fs/read_write.c:491 [inline]
vfs_read+0x957/0xb30 fs/read_write.c:572
ksys_read+0x1f8/0x250 fs/read_write.c:715
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xc9/0x570 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88811b913c00
which belongs to the cache kmalloc-cg-512 of size 512
The buggy address is located 511 bytes to the right of
allocated 512-byte region [ffff88811b913c00, ffff88811b913e00)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11b910
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888112046701
flags: 0x200000000000040(head|node=0|zone=2)
page_type: f5(slab)
raw: 0200000000000040 ffff88810004b140 ffffea0004780e00 dead000000000002
raw: 0000000000000000 0000000000100010 00000000f5000000 ffff888112046701
head: 0200000000000040 ffff88810004b140 ffffea0004780e00 dead000000000002
head: 0000000000000000 0000000000100010 00000000f5000000 ffff888112046701
head: 0200000000000002 ffffea00046e4401 00000000ffffffff 00000000ffffffff
head: ffff88811b911000 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 2851, tgid 2851 (klogd), ts 309327879379, free_ts 302181781539
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884
prep_new_page mm/page_alloc.c:1892 [inline]
get_page_from_freelist+0xd57/0x3b20 mm/page_alloc.c:3945
__alloc_frozen_pages_noprof+0x269/0x2230 mm/page_alloc.c:5240
alloc_pages_mpol+0xe8/0x410 mm/mempolicy.c:2486
alloc_slab_page mm/slub.c:3075 [inline]
allocate_slab mm/slub.c:3248 [inline]
new_slab+0x2c4/0x440 mm/slub.c:3302
___slab_alloc+0xda3/0x1ca0 mm/slub.c:4656
__slab_alloc.isra.0+0x63/0x110 mm/slub.c:4779
__slab_alloc_node mm/slub.c:4855 [inline]
slab_alloc_node mm/slub.c:5251 [inline]
__do_kmalloc_node mm/slub.c:5656 [inline]
__kmalloc_node_track_caller_noprof+0x5d4/0x9a0 mm/slub.c:5764
kmalloc_reserve+0xef/0x2c0 net/core/skbuff.c:608
__alloc_skb+0x186/0x410 net/core/skbuff.c:690
alloc_skb include/linux/skbuff.h:1383 [inline]
alloc_skb_with_frags+0xe0/0x810 net/core/skbuff.c:6714
sock_alloc_send_pskb+0x801/0x980 net/core/sock.c:2995
unix_dgram_sendmsg+0x3c7/0x1820 net/unix/af_unix.c:2130
sock_sendmsg_nosec net/socket.c:727 [inline]
__sock_sendmsg net/socket.c:742 [inline]
__sys_sendto+0x4aa/0x520 net/socket.c:2206
__do_sys_sendto net/socket.c:2213 [inline]
__se_sys_sendto net/socket.c:2209 [inline]
__x64_sys_sendto+0xe0/0x1c0 net/socket.c:2209
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xc9/0x570 arch/x86/entry/syscall_64.c:94
page last free pid 2613 tgid 2613 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1433 [inline]
__free_frozen_pages+0x7d1/0x1010 mm/page_alloc.c:2973
kasan_depopulate_vmalloc_pte+0x5d/0x80 mm/kasan/shadow.c:484
apply_to_pte_range mm/memory.c:3182 [inline]
apply_to_pmd_range mm/memory.c:3226 [inline]
apply_to_pud_range mm/memory.c:3262 [inline]
apply_to_p4d_range mm/memory.c:3298 [inline]
__apply_to_page_range+0xb1d/0x1520 mm/memory.c:3334
__kasan_release_vmalloc+0xd7/0xe0 mm/kasan/shadow.c:602
kasan_release_vmalloc include/linux/kasan.h:593 [inline]
kasan_release_vmalloc_node mm/vmalloc.c:2282 [inline]
purge_vmap_node+0x1c6/0xaa0 mm/vmalloc.c:2299
__purge_vmap_area_lazy+0x8e5/0xbc0 mm/vmalloc.c:2389
drain_vmap_area_work+0x27/0x40 mm/vmalloc.c:2423
process_one_work+0x9c2/0x1840 kernel/workqueue.c:3257
process_scheduled_works kernel/workqueue.c:3340 [inline]
worker_thread+0x5da/0xe40 kernel/workqueue.c:3421
kthread+0x3b3/0x730 kernel/kthread.c:463
ret_from_fork+0x6c3/0xa20 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246
Memory state around the buggy address:
ffff88811b913e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88811b913f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88811b913f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88811b914000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88811b914080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
----------------
Code disassembly (best guess):
0: b9 00 00 00 00 mov $0x0,%ecx
5: 00 fc add %bh,%ah
7: ff lcall (bad)
8: df 48 c1 fisttps -0x3f(%rax)
b: e8 03 80 3c 08 call 0x83c8013
10: 00 0f add %cl,(%rdi)
12: 85 3e test %edi,(%rsi)
14: 0f 00 00 sldt (%rax)
17: 48 8b 44 24 50 mov 0x50(%rsp),%rax
1c: 48 8b 28 mov (%rax),%rbp
1f: e8 a5 0e 64 fa call 0xfa640ec9
24: 48 83 7c 24 38 00 cmpq $0x0,0x38(%rsp)
* 2a: 0f 85 e8 fc ff ff jne 0xfffffd18 <-- trapping instruction
30: e8 94 0e 64 fa call 0xfa640ec9
35: 48 8b 3c 24 mov (%rsp),%rdi
39: 48 c7 c6 20 dd 65 88 mov $0xffffffff8865dd20,%rsi