================================================================== BUG: KASAN: use-after-free in memcmp lib/string.c:942 [inline] BUG: KASAN: use-after-free in bcmp+0xad/0xd0 lib/string.c:964 Read of size 1 at addr ffff88811db98962 by task kworker/0:1/15 CPU: 0 PID: 15 Comm: kworker/0:1 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 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+0x100/0x140 mm/kasan/report.c:452 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 memcmp lib/string.c:942 [inline] bcmp+0xad/0xd0 lib/string.c:964 sony_check_add_dev_list drivers/hid/hid-sony.c:2403 [inline] sony_check_add drivers/hid/hid-sony.c:2534 [inline] sony_input_configured+0x6a0/0x3980 drivers/hid/hid-sony.c:2613 hidinput_connect+0x1e7b/0x2bf0 drivers/hid/hid-input.c:1983 hid_connect+0x479/0xe30 drivers/hid/hid-core.c:2021 hid_hw_start+0xaa/0x130 drivers/hid/hid-core.c:2128 sony_probe+0x20a/0x330 drivers/hid/hid-sony.c:2885 hid_device_probe+0x28d/0x390 drivers/hid/hid-core.c:2363 really_probe+0x373/0xa60 drivers/base/dd.c:558 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 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+0x8ce/0xc00 drivers/base/core.c:3273 hid_add_device+0x349/0x4b0 drivers/hid/hid-core.c:2515 usbhid_probe+0xb93/0xf30 drivers/hid/usbhid/hid-core.c:1436 usb_probe_interface+0x60f/0xb20 drivers/usb/core/driver.c:397 really_probe+0x3bf/0xa60 drivers/base/dd.c:562 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 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+0x8ce/0xc00 drivers/base/core.c:3273 usb_set_configuration+0x1a76/0x1fe0 drivers/usb/core/message.c:2219 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x143/0x250 drivers/usb/core/driver.c:294 really_probe+0x3bf/0xa60 drivers/base/dd.c:562 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 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+0x8ce/0xc00 drivers/base/core.c:3273 usb_new_device+0x9ba/0x1460 drivers/usb/core/hub.c:2659 hub_port_connect drivers/usb/core/hub.c:5504 [inline] hub_port_connect_change drivers/usb/core/hub.c:5644 [inline] port_event drivers/usb/core/hub.c:5810 [inline] hub_event+0x2790/0x4220 drivers/usb/core/hub.c:5892 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Allocated by task 0: (stack is not available) Freed by task 15: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:362 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1600 [inline] slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kfree+0xc0/0x270 mm/slub.c:4196 release_nodes+0x7ca/0x840 drivers/base/devres.c:524 devres_release_all+0x7c/0xa0 drivers/base/devres.c:545 really_probe+0x447/0xa60 drivers/base/dd.c:630 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 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+0x8ce/0xc00 drivers/base/core.c:3273 hid_add_device+0x349/0x4b0 drivers/hid/hid-core.c:2515 usbhid_probe+0xb93/0xf30 drivers/hid/usbhid/hid-core.c:1436 usb_probe_interface+0x60f/0xb20 drivers/usb/core/driver.c:397 really_probe+0x3bf/0xa60 drivers/base/dd.c:562 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 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+0x8ce/0xc00 drivers/base/core.c:3273 usb_set_configuration+0x1a76/0x1fe0 drivers/usb/core/message.c:2219 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x143/0x250 drivers/usb/core/driver.c:294 really_probe+0x3bf/0xa60 drivers/base/dd.c:562 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 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+0x8ce/0xc00 drivers/base/core.c:3273 usb_new_device+0x9ba/0x1460 drivers/usb/core/hub.c:2659 hub_port_connect drivers/usb/core/hub.c:5504 [inline] hub_port_connect_change drivers/usb/core/hub.c:5644 [inline] port_event drivers/usb/core/hub.c:5810 [inline] hub_event+0x2790/0x4220 drivers/usb/core/hub.c:5892 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff88811db98800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 354 bytes inside of 512-byte region [ffff88811db98800, ffff88811db98a00) The buggy address belongs to the page: page:ffffea000476e600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11db98 head:ffffea000476e600 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100043080 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 0, ts 25862414357, free_ts 25862364325 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2f8/0x4c0 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc_track_caller+0x1e4/0x310 mm/slub.c:4541 __kmalloc_reserve net/core/skbuff.c:144 [inline] __alloc_skb+0xdc/0x520 net/core/skbuff.c:212 alloc_skb include/linux/skbuff.h:1126 [inline] arp_create+0xe8/0x7f0 net/ipv4/arp.c:539 arp_send_dst+0x8c/0x1d0 net/ipv4/arp.c:313 arp_process+0x1492/0x1aa0 net/ipv4/arp.c:833 NF_HOOK+0x16f/0x1c0 include/linux/netfilter.h:299 arp_rcv+0x2ef/0x480 net/ipv4/arp.c:970 __netif_receive_skb_list_ptype net/core/dev.c:5462 [inline] __netif_receive_skb_list_core+0x704/0x770 net/core/dev.c:5505 __netif_receive_skb_list net/core/dev.c:5557 [inline] netif_receive_skb_list_internal+0x7f8/0xaa0 net/core/dev.c:5667 gro_normal_list net/core/dev.c:5821 [inline] napi_complete_done+0x375/0x780 net/core/dev.c:6570 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] __free_pages_ok+0x80b/0x830 mm/page_alloc.c:1629 free_compound_page+0x73/0x90 mm/page_alloc.c:710 destroy_compound_page include/linux/mm.h:970 [inline] __put_compound_page+0x77/0xb0 mm/swap.c:117 __put_page+0xbd/0xe0 mm/swap.c:133 put_page include/linux/mm.h:1268 [inline] page_to_skb+0x3d9/0x930 drivers/net/virtio_net.c:473 receive_mergeable drivers/net/virtio_net.c:1049 [inline] receive_buf+0xc03/0x46a0 drivers/net/virtio_net.c:1159 virtnet_receive drivers/net/virtio_net.c:1451 [inline] virtnet_poll+0x56b/0xfa0 drivers/net/virtio_net.c:1563 napi_poll net/core/dev.c:6886 [inline] net_rx_action+0x48d/0xed0 net/core/dev.c:6956 __do_softirq+0x255/0x563 kernel/softirq.c:309 Memory state around the buggy address: ffff88811db98800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88811db98880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88811db98900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88811db98980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88811db98a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== sony 0003:054C:042F.0002: can't set operational mode: step 3, ignoring sony 0003:054C:042F.0002: No inputs registered, leaving sony 0003:054C:042F.0002: hidraw0: USB HID v0.00 Joystick [HID 054c:042f] on usb-dummy_hcd.0-1/input0 sony 0003:054C:042F.0002: failed to claim input usb 1-1: USB disconnect, device number 3 usb 1-1: new high-speed USB device number 4 using dummy_hcd usb 1-1: config 0 interface 0 altsetting 12 endpoint 0x81 has an invalid bInterval 0, changing to 7 usb 1-1: config 0 interface 0 altsetting 12 endpoint 0x81 has invalid wMaxPacketSize 0 usb 1-1: config 0 interface 0 altsetting 12 has 1 endpoint descriptor, different from the interface descriptor's value: 2 usb 1-1: config 0 interface 0 has no altsetting 0 usb 1-1: New USB device found, idVendor=054c, idProduct=042f, bcdDevice= 0.00 usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 1-1: config 0 descriptor?? sony 0003:054C:042F.0003: can't set operational mode: step 3, ignoring sony 0003:054C:042F.0003: No inputs registered, leaving sony 0003:054C:042F.0003: hidraw0: USB HID v0.00 Joystick [HID 054c:042f] on usb-dummy_hcd.0-1/input0 sony 0003:054C:042F.0003: failed to claim input usb 1-1: USB disconnect, device number 4 usb 1-1: new high-speed USB device number 5 using dummy_hcd usb 1-1: config 0 interface 0 altsetting 12 endpoint 0x81 has an invalid bInterval 0, changing to 7 usb 1-1: config 0 interface 0 altsetting 12 endpoint 0x81 has invalid wMaxPacketSize 0 usb 1-1: config 0 interface 0 altsetting 12 has 1 endpoint descriptor, different from the interface descriptor's value: 2 usb 1-1: config 0 interface 0 has no altsetting 0 usb 1-1: New USB device found, idVendor=054c, idProduct=042f, bcdDevice= 0.00 usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 1-1: config 0 descriptor?? sony 0003:054C:042F.0004: can't set operational mode: step 3, ignoring sony 0003:054C:042F.0004: No inputs registered, leaving sony 0003:054C:042F.0004: hidraw0: USB HID v0.00 Joystick [HID 054c:042f] on usb-dummy_hcd.0-1/input0 sony 0003:054C:042F.0004: failed to claim input usb 1-1: USB disconnect, device number 5 usb 1-1: new high-speed USB device number 6 using dummy_hcd usb 1-1: config 0 interface 0 altsetting 12 endpoint 0x81 has an invalid bInterval 0, changing to 7 usb 1-1: config 0 interface 0 altsetting 12 endpoint 0x81 has invalid wMaxPacketSize 0 usb 1-1: config 0 interface 0 altsetting 12 has 1 endpoint descriptor, different from the interface descriptor's value: 2 usb 1-1: config 0 interface 0 has no altsetting 0 usb 1-1: New USB device found, idVendor=054c, idProduct=042f, bcdDevice= 0.00 usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 1-1: config 0 descriptor?? sony 0003:054C:042F.0005: can't set operational mode: step 3, ignoring sony 0003:054C:042F.0005: No inputs registered, leaving sony 0003:054C:042F.0005: hidraw0: USB HID v0.00 Joystick [HID 054c:042f] on usb-dummy_hcd.0-1/input0 sony 0003:054C:042F.0005: failed to claim input usb 1-1: USB disconnect, device number 6 usb 1-1: new high-speed USB device number 7 using dummy_hcd usb 1-1: config 0 interface 0 altsetting 12 endpoint 0x81 has an invalid bInterval 0, changing to 7 usb 1-1: config 0 interface 0 altsetting 12 endpoint 0x81 has invalid wMaxPacketSize 0 usb 1-1: config 0 interface 0 altsetting 12 has 1 endpoint descriptor, different from the interface descriptor's value: 2 usb 1-1: config 0 interface 0 has no altsetting 0 usb 1-1: New USB device found, idVendor=054c, idProduct=042f, bcdDevice= 0.00 usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 1-1: config 0 descriptor?? sony 0003:054C:042F.0006: can't set operational mode: step 3, ignoring