================================================================== BUG: KASAN: use-after-free in memcmp lib/string.c:783 [inline] BUG: KASAN: use-after-free in bcmp+0x210/0x230 lib/string.c:804 Read of size 1 at addr ffff888132d9997a by task kworker/1:4/468 CPU: 1 PID: 468 Comm: kworker/1:4 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:348 memcmp lib/string.c:783 [inline] bcmp+0x210/0x230 lib/string.c:804 memcmp include/linux/fortify-string.h:549 [inline] sony_check_add_dev_list drivers/hid/hid-sony.c:2542 [inline] sony_check_add drivers/hid/hid-sony.c:2673 [inline] sony_input_configured+0x62c/0x3830 drivers/hid/hid-sony.c:2752 hidinput_connect+0x2334/0x30d0 drivers/hid/hid-input.c:2351 hid_connect+0x4b0/0x1b40 drivers/hid/hid-core.c:2250 hid_hw_start+0xbf/0x150 drivers/hid/hid-core.c:2363 sony_probe+0x23c/0xcf0 drivers/hid/hid-sony.c:3024 hid_device_probe+0x273/0x410 drivers/hid/hid-core.c:2694 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:639 __driver_probe_device+0x193/0x270 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+0x192/0x220 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 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+0xb0b/0xec0 drivers/base/core.c:3698 hid_add_device+0x3b8/0x580 drivers/hid/hid-core.c:2848 usbhid_probe+0xc12/0xff0 drivers/hid/usbhid/hid-core.c:1443 usb_probe_interface+0x621/0xb30 drivers/usb/core/driver.c:397 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:639 __driver_probe_device+0x193/0x270 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+0x192/0x220 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 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+0xb0b/0xec0 drivers/base/core.c:3698 usb_set_configuration+0x1a01/0x1f70 drivers/usb/core/message.c:2223 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x154/0x260 drivers/usb/core/driver.c:294 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:639 __driver_probe_device+0x193/0x270 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+0x192/0x220 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 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+0xb0b/0xec0 drivers/base/core.c:3698 usb_new_device+0x9f4/0x1500 drivers/usb/core/hub.c:2684 hub_port_connect drivers/usb/core/hub.c:5594 [inline] hub_port_connect_change drivers/usb/core/hub.c:5734 [inline] port_event drivers/usb/core/hub.c:5898 [inline] hub_event+0x27fb/0x4310 drivers/usb/core/hub.c:5980 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Allocated by task 468: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:380 [inline] __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:389 kasan_kmalloc include/linux/kasan.h:212 [inline] __do_kmalloc_node mm/slab_common.c:938 [inline] __kmalloc_node_track_caller+0xb1/0x1e0 mm/slab_common.c:958 kmalloc_reserve net/core/skbuff.c:449 [inline] __alloc_skb+0x226/0x4a0 net/core/skbuff.c:518 alloc_skb include/linux/skbuff.h:1322 [inline] ndisc_alloc_skb net/ipv6/ndisc.c:423 [inline] ndisc_send_rs+0x31d/0x870 net/ipv6/ndisc.c:707 addrconf_dad_completed+0x958/0xe80 net/ipv6/addrconf.c:4322 addrconf_dad_work+0xc1b/0x14a0 net/ipv6/addrconf.c:-1 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Freed by task 468: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:250 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1750 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776 slab_free mm/slub.c:3712 [inline] __kmem_cache_free+0xb7/0x1b0 mm/slub.c:3728 kfree+0x6f/0xf0 mm/slab_common.c:990 skb_free_head net/core/skbuff.c:765 [inline] skb_release_data+0x63d/0x8a0 net/core/skbuff.c:794 skb_release_all net/core/skbuff.c:859 [inline] __kfree_skb net/core/skbuff.c:873 [inline] kfree_skb_reason+0xd4/0x230 net/core/skbuff.c:896 kfree_skb include/linux/skbuff.h:1271 [inline] neigh_connected_output+0x484/0x500 net/core/neighbour.c:1595 neigh_output include/net/neighbour.h:552 [inline] ip6_finish_output2+0x1619/0x18b0 net/ipv6/ip6_output.c:138 __ip6_finish_output net/ipv6/ip6_output.c:205 [inline] ip6_finish_output+0x60b/0xbe0 net/ipv6/ip6_output.c:216 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip6_output+0x1fa/0x410 net/ipv6/ip6_output.c:237 dst_output include/net/dst.h:453 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] ndisc_send_skb+0x7c8/0xcd0 net/ipv6/ndisc.c:513 ndisc_send_rs+0x66a/0x870 net/ipv6/ndisc.c:723 addrconf_dad_completed+0x958/0xe80 net/ipv6/addrconf.c:4322 addrconf_dad_work+0xc1b/0x14a0 net/ipv6/addrconf.c:-1 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff888132d99800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 378 bytes inside of 1024-byte region [ffff888132d99800, ffff888132d99c00) The buggy address belongs to the physical page: page:ffffea0004cb6600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x132d98 head:ffffea0004cb6600 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100043080 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 292, tgid 292 (kworker/0:2), ts 22572826301, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2673 prep_new_page+0x1c/0x110 mm/page_alloc.c:2680 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4587 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5931 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1967 [inline] new_slab+0x98/0x3e0 mm/slub.c:2020 ___slab_alloc+0x70f/0xb70 mm/slub.c:3177 __slab_alloc+0x5e/0xa0 mm/slub.c:3263 slab_alloc_node mm/slub.c:3348 [inline] __kmem_cache_alloc_node+0x204/0x2d0 mm/slub.c:3423 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc_node_track_caller+0xa1/0x1e0 mm/slab_common.c:958 kmalloc_reserve net/core/skbuff.c:449 [inline] __alloc_skb+0x226/0x4a0 net/core/skbuff.c:518 alloc_skb include/linux/skbuff.h:1322 [inline] nlmsg_new include/net/netlink.h:987 [inline] inet6_rt_notify+0x34d/0x520 net/ipv6/route.c:6223 fib6_add_rt2node net/ipv6/ip6_fib.c:1260 [inline] fib6_add+0x2254/0x3dd0 net/ipv6/ip6_fib.c:1489 __ip6_ins_rt net/ipv6/route.c:1346 [inline] ip6_ins_rt+0xd3/0x130 net/ipv6/route.c:1356 __ipv6_ifa_notify+0x4e4/0xe80 net/ipv6/addrconf.c:6240 ipv6_ifa_notify net/ipv6/addrconf.c:6279 [inline] addrconf_dad_completed+0x192/0xe80 net/ipv6/addrconf.c:4283 page_owner free stack trace missing Memory state around the buggy address: ffff888132d99800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888132d99880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888132d99900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888132d99980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888132d99a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== general protection fault, probably for non-canonical address 0xdffffc0000000029: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000148-0x000000000000014f] CPU: 1 PID: 468 Comm: kworker/1:4 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: usb_hub_wq hub_event RIP: 0010:memcmp lib/string.c:783 [inline] RIP: 0010:bcmp+0x1ab/0x230 lib/string.c:804 Code: 84 99 00 00 00 31 db 48 8d 04 1f 48 89 c1 48 c1 e9 03 42 0f b6 0c 39 84 c9 75 2b 0f b6 04 1f 48 8d 0c 1e 49 89 c8 49 c1 e8 03 <47> 0f b6 04 38 45 84 c0 75 3a 0f b6 0c 1e 29 c8 75 64 48 ff c3 48 RSP: 0018:ffffc9000db3e6b8 EFLAGS: 00010002 RAX: 000000000000000c RBX: 0000000000000000 RCX: 000000000000014a RDX: 0000000000000006 RSI: 000000000000014a RDI: ffff88811b0c817a RBP: ffffc9000db3e6f0 R08: 0000000000000029 R09: 1ffffffff0f6eefc R10: dffffc0000000000 R11: fffffbfff0f6eefd R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000a02 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2df23ffc CR3: 000000010fe66000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: memcmp include/linux/fortify-string.h:549 [inline] sony_check_add_dev_list drivers/hid/hid-sony.c:2542 [inline] sony_check_add drivers/hid/hid-sony.c:2673 [inline] sony_input_configured+0x62c/0x3830 drivers/hid/hid-sony.c:2752 hidinput_connect+0x2334/0x30d0 drivers/hid/hid-input.c:2351 hid_connect+0x4b0/0x1b40 drivers/hid/hid-core.c:2250 hid_hw_start+0xbf/0x150 drivers/hid/hid-core.c:2363 sony_probe+0x23c/0xcf0 drivers/hid/hid-sony.c:3024 hid_device_probe+0x273/0x410 drivers/hid/hid-core.c:2694 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:639 __driver_probe_device+0x193/0x270 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+0x192/0x220 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 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+0xb0b/0xec0 drivers/base/core.c:3698 hid_add_device+0x3b8/0x580 drivers/hid/hid-core.c:2848 usbhid_probe+0xc12/0xff0 drivers/hid/usbhid/hid-core.c:1443 usb_probe_interface+0x621/0xb30 drivers/usb/core/driver.c:397 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:639 __driver_probe_device+0x193/0x270 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+0x192/0x220 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 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+0xb0b/0xec0 drivers/base/core.c:3698 usb_set_configuration+0x1a01/0x1f70 drivers/usb/core/message.c:2223 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x154/0x260 drivers/usb/core/driver.c:294 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x2d7/0x9a0 drivers/base/dd.c:639 __driver_probe_device+0x193/0x270 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+0x192/0x220 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 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+0xb0b/0xec0 drivers/base/core.c:3698 usb_new_device+0x9f4/0x1500 drivers/usb/core/hub.c:2684 hub_port_connect drivers/usb/core/hub.c:5594 [inline] hub_port_connect_change drivers/usb/core/hub.c:5734 [inline] port_event drivers/usb/core/hub.c:5898 [inline] hub_event+0x27fb/0x4310 drivers/usb/core/hub.c:5980 process_one_work+0x717/0xc30 kernel/workqueue.c:2302 worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:memcmp lib/string.c:783 [inline] RIP: 0010:bcmp+0x1ab/0x230 lib/string.c:804 Code: 84 99 00 00 00 31 db 48 8d 04 1f 48 89 c1 48 c1 e9 03 42 0f b6 0c 39 84 c9 75 2b 0f b6 04 1f 48 8d 0c 1e 49 89 c8 49 c1 e8 03 <47> 0f b6 04 38 45 84 c0 75 3a 0f b6 0c 1e 29 c8 75 64 48 ff c3 48 RSP: 0018:ffffc9000db3e6b8 EFLAGS: 00010002 RAX: 000000000000000c RBX: 0000000000000000 RCX: 000000000000014a RDX: 0000000000000006 RSI: 000000000000014a RDI: ffff88811b0c817a RBP: ffffc9000db3e6f0 R08: 0000000000000029 R09: 1ffffffff0f6eefc R10: dffffc0000000000 R11: fffffbfff0f6eefd R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000a02 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2df23ffc CR3: 000000010fe66000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 84 99 00 00 00 31 test %bl,0x31000000(%rcx) 6: db 48 8d fisttpl -0x73(%rax) 9: 04 1f add $0x1f,%al b: 48 89 c1 mov %rax,%rcx e: 48 c1 e9 03 shr $0x3,%rcx 12: 42 0f b6 0c 39 movzbl (%rcx,%r15,1),%ecx 17: 84 c9 test %cl,%cl 19: 75 2b jne 0x46 1b: 0f b6 04 1f movzbl (%rdi,%rbx,1),%eax 1f: 48 8d 0c 1e lea (%rsi,%rbx,1),%rcx 23: 49 89 c8 mov %rcx,%r8 26: 49 c1 e8 03 shr $0x3,%r8 * 2a: 47 0f b6 04 38 movzbl (%r8,%r15,1),%r8d <-- trapping instruction 2f: 45 84 c0 test %r8b,%r8b 32: 75 3a jne 0x6e 34: 0f b6 0c 1e movzbl (%rsi,%rbx,1),%ecx 38: 29 c8 sub %ecx,%eax 3a: 75 64 jne 0xa0 3c: 48 ff c3 inc %rbx 3f: 48 rex.W