================================================================== BUG: KASAN: slab-out-of-bounds in mon_copy_to_buff drivers/usb/mon/mon_bin.c:249 [inline] BUG: KASAN: slab-out-of-bounds in mon_bin_get_data drivers/usb/mon/mon_bin.c:417 [inline] BUG: KASAN: slab-out-of-bounds in mon_bin_event+0x1320/0x24f0 drivers/usb/mon/mon_bin.c:603 Read of size 3520 at addr ffff888120fe45c9 by task kworker/1:2/59 CPU: 1 PID: 59 Comm: kworker/1:2 Not tainted 6.1.145-syzkaller-1169987-gc750dc582629 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106 print_address_description+0x71/0x210 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:427 kasan_report+0x122/0x150 mm/kasan/report.c:531 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x280/0x290 mm/kasan/generic.c:189 memcpy+0x2d/0x70 mm/kasan/shadow.c:65 mon_copy_to_buff drivers/usb/mon/mon_bin.c:249 [inline] mon_bin_get_data drivers/usb/mon/mon_bin.c:417 [inline] mon_bin_event+0x1320/0x24f0 drivers/usb/mon/mon_bin.c:603 mon_bin_submit+0x27/0x30 drivers/usb/mon/mon_bin.c:623 mon_bus_submit drivers/usb/mon/mon_main.c:91 [inline] mon_submit+0x1a1/0x210 drivers/usb/mon/mon_main.c:103 usbmon_urb_submit include/linux/usb/hcd.h:721 [inline] usb_hcd_submit_urb+0x129/0x1830 drivers/usb/core/hcd.c:1545 usb_submit_urb+0x122d/0x1900 drivers/usb/core/urb.c:596 usb_start_wait_urb+0x117/0x2f0 drivers/usb/core/message.c:58 usb_internal_control_msg drivers/usb/core/message.c:102 [inline] usb_control_msg+0x241/0x3f0 drivers/usb/core/message.c:153 usbhid_set_raw_report drivers/hid/usbhid/hid-core.c:926 [inline] usbhid_raw_request+0x453/0x580 drivers/hid/usbhid/hid-core.c:1297 __hid_request+0x1e0/0x3a0 drivers/hid/hid-core.c:1951 hidinput_change_resolution_multipliers drivers/hid/hid-input.c:1955 [inline] hidinput_connect+0x22c4/0x31b0 drivers/hid/hid-input.c:2332 hid_connect+0x496/0x1960 drivers/hid/hid-core.c:2182 hid_hw_start+0xbf/0x150 drivers/hid/hid-core.c:2295 ms_probe+0x190/0x460 drivers/hid/hid-microsoft.c:391 hid_device_probe+0x268/0x390 drivers/hid/hid-core.c:2626 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cb/0x960 drivers/base/dd.c:639 __driver_probe_device+0x198/0x280 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+0x183/0x210 drivers/base/bus.c:429 __device_attach+0x2a2/0x400 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+0xb4d/0xef0 drivers/base/core.c:3698 hid_add_device+0x38f/0x540 drivers/hid/hid-core.c:2778 usbhid_probe+0xbb6/0xfa0 drivers/hid/usbhid/hid-core.c:1427 usb_probe_interface+0x610/0xaf0 drivers/usb/core/driver.c:397 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cb/0x960 drivers/base/dd.c:639 __driver_probe_device+0x198/0x280 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+0x183/0x210 drivers/base/bus.c:429 __device_attach+0x2a2/0x400 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+0xb4d/0xef0 drivers/base/core.c:3698 usb_set_configuration+0x19c2/0x1f10 drivers/usb/core/message.c:2165 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x159/0x270 drivers/usb/core/driver.c:294 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cb/0x960 drivers/base/dd.c:639 __driver_probe_device+0x198/0x280 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+0x183/0x210 drivers/base/bus.c:429 __device_attach+0x2a2/0x400 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+0xb4d/0xef0 drivers/base/core.c:3698 usb_new_device+0xa70/0x1520 drivers/usb/core/hub.c:2656 hub_port_connect drivers/usb/core/hub.c:5566 [inline] hub_port_connect_change drivers/usb/core/hub.c:5706 [inline] port_event drivers/usb/core/hub.c:5866 [inline] hub_event+0x2a5d/0x4680 drivers/usb/core/hub.c:5948 process_one_work+0x71f/0xc40 kernel/workqueue.c:2302 worker_thread+0xa29/0x11f0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:397 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Allocated by task 59: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_alloc_info+0x25/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:379 [inline] __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:388 kasan_kmalloc include/linux/kasan.h:212 [inline] __do_kmalloc_node mm/slab_common.c:938 [inline] __kmalloc+0xb1/0x1e0 mm/slab_common.c:951 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] hid_alloc_report_buf drivers/hid/hid-core.c:1877 [inline] __hid_request+0x9a/0x3a0 drivers/hid/hid-core.c:1942 hidinput_change_resolution_multipliers drivers/hid/hid-input.c:1955 [inline] hidinput_connect+0x22c4/0x31b0 drivers/hid/hid-input.c:2332 hid_connect+0x496/0x1960 drivers/hid/hid-core.c:2182 hid_hw_start+0xbf/0x150 drivers/hid/hid-core.c:2295 ms_probe+0x190/0x460 drivers/hid/hid-microsoft.c:391 hid_device_probe+0x268/0x390 drivers/hid/hid-core.c:2626 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cb/0x960 drivers/base/dd.c:639 __driver_probe_device+0x198/0x280 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+0x183/0x210 drivers/base/bus.c:429 __device_attach+0x2a2/0x400 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+0xb4d/0xef0 drivers/base/core.c:3698 hid_add_device+0x38f/0x540 drivers/hid/hid-core.c:2778 usbhid_probe+0xbb6/0xfa0 drivers/hid/usbhid/hid-core.c:1427 usb_probe_interface+0x610/0xaf0 drivers/usb/core/driver.c:397 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cb/0x960 drivers/base/dd.c:639 __driver_probe_device+0x198/0x280 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+0x183/0x210 drivers/base/bus.c:429 __device_attach+0x2a2/0x400 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+0xb4d/0xef0 drivers/base/core.c:3698 usb_set_configuration+0x19c2/0x1f10 drivers/usb/core/message.c:2165 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x159/0x270 drivers/usb/core/driver.c:294 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2cb/0x960 drivers/base/dd.c:639 __driver_probe_device+0x198/0x280 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+0x183/0x210 drivers/base/bus.c:429 __device_attach+0x2a2/0x400 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+0xb4d/0xef0 drivers/base/core.c:3698 usb_new_device+0xa70/0x1520 drivers/usb/core/hub.c:2656 hub_port_connect drivers/usb/core/hub.c:5566 [inline] hub_port_connect_change drivers/usb/core/hub.c:5706 [inline] port_event drivers/usb/core/hub.c:5866 [inline] hub_event+0x2a5d/0x4680 drivers/usb/core/hub.c:5948 process_one_work+0x71f/0xc40 kernel/workqueue.c:2302 worker_thread+0xa29/0x11f0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:397 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff888120fe45c8 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 1 bytes inside of 8-byte region [ffff888120fe45c8, ffff888120fe45d0) The buggy address belongs to the physical page: page:ffffea000483f900 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x120fe4 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff888100042300 raw: 0000000000000000 0000000080660066 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 0x112c00(GFP_NOIO|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 39, tgid 39 (kworker/1:1), ts 55459214451, free_ts 55454653596 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2637 prep_new_page+0x1c/0x110 mm/page_alloc.c:2644 get_page_from_freelist+0x2c7b/0x2cf0 mm/page_alloc.c:4544 __alloc_pages+0x1c3/0x450 mm/page_alloc.c:5858 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1962 [inline] new_slab+0x98/0x3d0 mm/slub.c:2015 ___slab_alloc+0x6f6/0xb50 mm/slub.c:3203 __slab_alloc+0x5e/0xa0 mm/slub.c:3302 slab_alloc_node mm/slub.c:3387 [inline] __kmem_cache_alloc_node+0x203/0x2c0 mm/slub.c:3462 kmalloc_trace+0x29/0xb0 mm/slab_common.c:1028 kmalloc include/linux/slab.h:563 [inline] usb_control_msg+0x74/0x3f0 drivers/usb/core/message.c:143 get_port_status drivers/usb/core/hub.c:603 [inline] hub_ext_port_status+0x100/0x6b0 drivers/usb/core/hub.c:620 usb_hub_port_status drivers/usb/core/hub.c:642 [inline] hub_activate+0x887/0x19d0 drivers/usb/core/hub.c:1152 hub_resume+0x97/0x390 drivers/usb/core/hub.c:4038 usb_resume_interface drivers/usb/core/driver.c:1360 [inline] usb_resume_both+0x74d/0xd70 drivers/usb/core/driver.c:1531 usb_runtime_resume+0x21/0x30 drivers/usb/core/driver.c:1989 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1545 [inline] free_pcp_prepare mm/page_alloc.c:1619 [inline] free_unref_page_prepare+0x742/0x750 mm/page_alloc.c:3581 free_unref_page+0x8f/0x530 mm/page_alloc.c:3677 free_the_page mm/page_alloc.c:830 [inline] __free_pages+0x67/0x100 mm/page_alloc.c:5947 __free_slab+0xca/0x1a0 mm/slub.c:2039 free_slab mm/slub.c:2054 [inline] discard_slab+0x29/0x40 mm/slub.c:2060 __slab_free+0x201/0x280 mm/slub.c:3599 do_slab_free mm/slub.c:3640 [inline] ___cache_free+0xbf/0xd0 mm/slub.c:3696 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0xc6/0x140 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x24/0x80 mm/kasan/common.c:310 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3421 [inline] slab_alloc mm/slub.c:3431 [inline] __kmem_cache_alloc_lru mm/slub.c:3438 [inline] kmem_cache_alloc+0x16e/0x330 mm/slub.c:3447 getname_flags+0xb9/0x500 fs/namei.c:139 getname+0x19/0x20 fs/namei.c:218 do_sys_openat2+0xcb/0x7e0 fs/open.c:1335 do_sys_open fs/open.c:1357 [inline] __do_sys_openat fs/open.c:1373 [inline] __se_sys_openat fs/open.c:1368 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1368 Memory state around the buggy address: ffff888120fe4480: fc fc fc fc fc fc 00 fc fc fc fc fa fc fc fc fc ffff888120fe4500: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fa >ffff888120fe4580: fc fc fc fc fc fc fc fc fc 07 fc fc fc fc fc fc ^ ffff888120fe4600: fc fc fc 06 fc fc fc fc fa fc fc fc fc fa fc fc ffff888120fe4680: fc fc fc fc fc fc fc 00 fc fc fc fc 04 fc fc fc ================================================================== microsoft 0003:045E:07DA.0002: No inputs registered, leaving microsoft 0003:045E:07DA.0002: hidraw4: USB HID v0.00 Device [HID 045e:07da] on usb-dummy_hcd.0-1/input0 microsoft 0003:045E:07DA.0002: no inputs found microsoft 0003:045E:07DA.0002: could not initialize ff, continuing anyway usb 1-1: USB disconnect, device number 2 usb 1-1: new high-speed USB device number 3 using dummy_hcd usb 1-1: Using ep0 maxpacket: 16 usb 1-1: config 0 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing to 7 usb 1-1: config 0 interface 0 altsetting 0 endpoint 0x81 has invalid wMaxPacketSize 0 usb 1-1: config 0 interface 0 altsetting 0 has 1 endpoint descriptor, different from the interface descriptor's value: 9 usb 1-1: New USB device found, idVendor=045e, idProduct=07da, bcdDevice= 0.00 usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 1-1: config 0 descriptor?? microsoft 0003:045E:07DA.000A: unknown main item tag 0x0 microsoft 0003:045E:07DA.000A: ignoring exceeding usage max microsoft 0003:045E:07DA.000A: unknown main item tag 0x0 microsoft 0003:045E:07DA.000A: unknown main item tag 0x0 microsoft 0003:045E:07DA.000A: unknown main item tag 0x0 microsoft 0003:045E:07DA.000A: unknown main item tag 0x0 microsoft 0003:045E:07DA.000A: unknown main item tag 0x0 microsoft 0003:045E:07DA.000A: unknown main item tag 0x0 microsoft 0003:045E:07DA.000A: unknown main item tag 0x0 microsoft 0003:045E:07DA.000A: unknown main item tag 0x0 microsoft 0003:045E:07DA.000A: unknown main item tag 0x0 microsoft 0003:045E:07DA.000A: unknown main item tag 0x0