================================================================== 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+0x1307/0x24e0 drivers/usb/mon/mon_bin.c:603 Read of size 3776 at addr ffff88810c90d731 by task kworker/1:8/1734 CPU: 1 PID: 1734 Comm: kworker/1:8 Not tainted 5.10.238-syzkaller-00360-g09ea5912bc1f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0xe2/0x130 mm/kasan/report.c:452 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+0x1307/0x24e0 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+0x185/0x200 drivers/usb/mon/mon_main.c:103 usbmon_urb_submit include/linux/usb/hcd.h:723 [inline] usb_hcd_submit_urb+0x117/0x1780 drivers/usb/core/hcd.c:1543 usb_submit_urb+0x10eb/0x1620 drivers/usb/core/urb.c:585 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:928 [inline] usbhid_raw_request+0x453/0x580 drivers/hid/usbhid/hid-core.c:1299 __hid_request+0x1d2/0x390 drivers/hid/hid-core.c:1737 hidinput_change_resolution_multipliers drivers/hid/hid-input.c:1657 [inline] hidinput_connect+0x1d6d/0x2c30 drivers/hid/hid-input.c:1963 hid_connect+0x458/0xdf0 drivers/hid/hid-core.c:1968 hid_hw_start+0xaa/0x130 drivers/hid/hid-core.c:2075 ms_probe+0x190/0x460 drivers/hid/hid-microsoft.c:391 hid_device_probe+0x287/0x380 drivers/hid/hid-core.c:2303 really_probe+0x386/0xa90 drivers/base/dd.c:558 driver_probe_device+0xe7/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:433 __device_attach+0x29a/0x400 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8b4/0xbf0 drivers/base/core.c:3273 hid_add_device+0x356/0x4b0 drivers/hid/hid-core.c:2455 usbhid_probe+0xb2e/0xee0 drivers/hid/usbhid/hid-core.c:1421 usb_probe_interface+0x5ff/0xae0 drivers/usb/core/driver.c:397 really_probe+0x3d8/0xa90 drivers/base/dd.c:562 driver_probe_device+0xe7/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:433 __device_attach+0x29a/0x400 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8b4/0xbf0 drivers/base/core.c:3273 usb_set_configuration+0x1a47/0x1f80 drivers/usb/core/message.c:2160 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x148/0x260 drivers/usb/core/driver.c:294 really_probe+0x3d8/0xa90 drivers/base/dd.c:562 driver_probe_device+0xe7/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:433 __device_attach+0x29a/0x400 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8b4/0xbf0 drivers/base/core.c:3273 usb_new_device+0xcd1/0x1450 drivers/usb/core/hub.c:2626 hub_port_connect drivers/usb/core/hub.c:5469 [inline] hub_port_connect_change drivers/usb/core/hub.c:5609 [inline] port_event drivers/usb/core/hub.c:5759 [inline] hub_event+0x2679/0x4120 drivers/usb/core/hub.c:5841 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13b0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Allocated by task 1734: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] ____kasan_kmalloc mm/kasan/common.c:509 [inline] __kasan_kmalloc+0xda/0x110 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x1a7/0x330 mm/slub.c:4033 kmalloc include/linux/slab.h:557 [inline] kzalloc include/linux/slab.h:664 [inline] hid_alloc_report_buf drivers/hid/hid-core.c:1663 [inline] __hid_request+0x9a/0x390 drivers/hid/hid-core.c:1728 hidinput_change_resolution_multipliers drivers/hid/hid-input.c:1657 [inline] hidinput_connect+0x1d6d/0x2c30 drivers/hid/hid-input.c:1963 hid_connect+0x458/0xdf0 drivers/hid/hid-core.c:1968 hid_hw_start+0xaa/0x130 drivers/hid/hid-core.c:2075 ms_probe+0x190/0x460 drivers/hid/hid-microsoft.c:391 hid_device_probe+0x287/0x380 drivers/hid/hid-core.c:2303 really_probe+0x386/0xa90 drivers/base/dd.c:558 driver_probe_device+0xe7/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:433 __device_attach+0x29a/0x400 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8b4/0xbf0 drivers/base/core.c:3273 hid_add_device+0x356/0x4b0 drivers/hid/hid-core.c:2455 usbhid_probe+0xb2e/0xee0 drivers/hid/usbhid/hid-core.c:1421 usb_probe_interface+0x5ff/0xae0 drivers/usb/core/driver.c:397 really_probe+0x3d8/0xa90 drivers/base/dd.c:562 driver_probe_device+0xe7/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:433 __device_attach+0x29a/0x400 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8b4/0xbf0 drivers/base/core.c:3273 usb_set_configuration+0x1a47/0x1f80 drivers/usb/core/message.c:2160 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x148/0x260 drivers/usb/core/driver.c:294 really_probe+0x3d8/0xa90 drivers/base/dd.c:562 driver_probe_device+0xe7/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x175/0x200 drivers/base/bus.c:433 __device_attach+0x29a/0x400 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8b4/0xbf0 drivers/base/core.c:3273 usb_new_device+0xcd1/0x1450 drivers/usb/core/hub.c:2626 hub_port_connect drivers/usb/core/hub.c:5469 [inline] hub_port_connect_change drivers/usb/core/hub.c:5609 [inline] port_event drivers/usb/core/hub.c:5759 [inline] hub_event+0x2679/0x4120 drivers/usb/core/hub.c:5841 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13b0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff88810c90d730 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 1 bytes inside of 8-byte region [ffff88810c90d730, ffff88810c90d738) The buggy address belongs to the page: page:ffffea0004324340 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10c90d flags: 0x4000000000000200(slab) raw: 4000000000000200 0000000000000000 0000000100000001 ffff888100043c80 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 0x12a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY), pid 1, ts 5168635633, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x2235/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5357 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1808 [inline] new_slab+0x84/0x3f0 mm/slub.c:1869 new_slab_objects mm/slub.c:2627 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2791 __slab_alloc+0x63/0xa0 mm/slub.c:2831 slab_alloc_node mm/slub.c:2913 [inline] slab_alloc mm/slub.c:2955 [inline] __kmalloc_track_caller+0x1ef/0x320 mm/slub.c:4536 kstrdup+0x36/0x70 mm/util.c:63 get_permissions_callback+0x46/0xa0 security/selinux/ss/services.c:3432 hashtab_map+0xf4/0x1f0 security/selinux/ss/hashtab.c:96 security_get_permissions+0x105/0x330 security/selinux/ss/services.c:3463 sel_make_perm_files security/selinux/selinuxfs.c:1873 [inline] sel_make_class_dir_entries security/selinux/selinuxfs.c:1934 [inline] sel_make_classes security/selinux/selinuxfs.c:1965 [inline] sel_make_policy_nodes+0xb91/0x13d0 security/selinux/selinuxfs.c:571 sel_write_load+0x358/0x5a0 security/selinux/selinuxfs.c:653 vfs_write+0x32d/0xd60 fs/read_write.c:603 ksys_write+0x140/0x240 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:667 page_owner free stack trace missing Memory state around the buggy address: ffff88810c90d600: fc fc fc 00 fc fc fc fc fa fc fc fc fc 00 fc fc ffff88810c90d680: fc fc fa fc fc fc fc 00 fc fc fc fc fa fc fc fc >ffff88810c90d700: fc fa fc fc fc fc 07 fc fc fc fc 00 fc fc fc fc ^ ffff88810c90d780: 00 fc fc fc fc 00 fc fc fc fc fa fc fc fc fc fa ffff88810c90d800: fc fc fc fc fa fc fc fc fc 04 fc fc fc fc fa fc ================================================================== microsoft 0003:045E:07DA.001D: No inputs registered, leaving microsoft 0003:045E:07DA.001D: hidraw10: USB HID v0.00 Device [HID 045e:07da] on usb-dummy_hcd.2-1/input0 microsoft 0003:045E:07DA.001D: no inputs found microsoft 0003:045E:07DA.001D: could not initialize ff, continuing anyway Bluetooth: hci1: command 0x1001 tx timeout