==================================================================
BUG: KASAN: use-after-free in memcmp lib/string.c:970 [inline]
BUG: KASAN: use-after-free in bcmp+0x210/0x230 lib/string.c:991
Read of size 1 at addr ffff888111c0b97a by task kworker/1:6/461
CPU: 1 PID: 461 Comm: kworker/1:6 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: usb_hub_wq hub_event
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:427 [inline]
kasan_report+0x10f/0x150 mm/kasan/report.c:444
__asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306
memcmp lib/string.c:970 [inline]
bcmp+0x210/0x230 lib/string.c:991
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+0x6a0/0x3900 drivers/hid/hid-sony.c:2752
hidinput_connect+0x1f4f/0x2cc0 drivers/hid/hid-input.c:2047
hid_connect+0x479/0xe30 drivers/hid/hid-core.c:2021
hid_hw_start+0xaa/0x130 drivers/hid/hid-core.c:2128
sony_probe+0x23c/0xcf0 drivers/hid/hid-sony.c:3024
hid_device_probe+0x28d/0x390 drivers/hid/hid-core.c:2363
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x27d/0x970 drivers/base/dd.c:595
__driver_probe_device+0x193/0x270 drivers/base/dd.c:755
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
__device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:979
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
device_add+0xaef/0xe90 drivers/base/core.c:3422
hid_add_device+0x349/0x4b0 drivers/hid/hid-core.c:2513
usbhid_probe+0xb93/0xf30 drivers/hid/usbhid/hid-core.c:1442
usb_probe_interface+0x60f/0xb20 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x27d/0x970 drivers/base/dd.c:595
__driver_probe_device+0x193/0x270 drivers/base/dd.c:755
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
__device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:979
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
device_add+0xaef/0xe90 drivers/base/core.c:3422
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+0x143/0x250 drivers/usb/core/driver.c:293
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x27d/0x970 drivers/base/dd.c:595
__driver_probe_device+0x193/0x270 drivers/base/dd.c:755
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
__device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:979
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
device_add+0xaef/0xe90 drivers/base/core.c:3422
usb_new_device+0xa1f/0x1720 drivers/usb/core/hub.c:2643
hub_port_connect drivers/usb/core/hub.c:5560 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5700 [inline]
port_event drivers/usb/core/hub.c:5866 [inline]
hub_event+0x291b/0x43f0 drivers/usb/core/hub.c:5948
process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328
worker_thread+0xaa0/0x1250 kernel/workqueue.c:2475
kthread+0x3f5/0x4f0 kernel/kthread.c:337
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
Allocated by task 0:
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:433 [inline]
____kasan_kmalloc mm/kasan/common.c:512 [inline]
__kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:521
kasan_kmalloc include/linux/kasan.h:227 [inline]
__kmalloc_track_caller+0x13c/0x2c0 mm/slub.c:4959
kmalloc_reserve net/core/skbuff.c:357 [inline]
__alloc_skb+0x210/0x730 net/core/skbuff.c:428
__napi_alloc_skb+0x162/0x2e0 net/core/skbuff.c:569
napi_alloc_skb include/linux/skbuff.h:3102 [inline]
page_to_skb+0x274/0xb60 drivers/net/virtio_net.c:474
receive_mergeable drivers/net/virtio_net.c:1102 [inline]
receive_buf+0xcd3/0x4c20 drivers/net/virtio_net.c:1212
virtnet_receive drivers/net/virtio_net.c:1504 [inline]
virtnet_poll+0x5cd/0xfb0 drivers/net/virtio_net.c:1620
__napi_poll+0xbb/0x580 net/core/dev.c:7109
napi_poll net/core/dev.c:7176 [inline]
net_rx_action+0x37f/0x910 net/core/dev.c:7266
handle_softirqs+0x250/0x560 kernel/softirq.c:583
__do_softirq kernel/softirq.c:621 [inline]
invoke_softirq kernel/softirq.c:443 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
common_interrupt+0xbe/0xe0 arch/x86/kernel/irq.c:242
asm_common_interrupt+0x27/0x40 arch/x86/include/asm/idtentry.h:667
Freed by task 0:
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:365
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
kasan_slab_free include/linux/kasan.h:193 [inline]
slab_free_hook mm/slub.c:1728 [inline]
slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754
slab_free mm/slub.c:3526 [inline]
kfree+0xc4/0x270 mm/slub.c:4588
skb_free_head net/core/skbuff.c:656 [inline]
skb_release_data+0x7bd/0xa20 net/core/skbuff.c:678
skb_release_all net/core/skbuff.c:743 [inline]
__kfree_skb+0x50/0x70 net/core/skbuff.c:757
tcp_rcv_established+0xd4c/0x1ad0 net/ipv4/tcp_input.c:5984
tcp_v4_do_rcv+0x591/0x9f0 net/ipv4/tcp_ipv4.c:1726
tcp_v4_rcv+0x221a/0x2880 net/ipv4/tcp_ipv4.c:2138
ip_protocol_deliver_rcu+0x360/0x760 net/ipv4/ip_input.c:204
ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline]
NF_HOOK include/linux/netfilter.h:305 [inline]
ip_local_deliver+0x2dd/0x520 net/ipv4/ip_input.c:252
dst_input include/net/dst.h:463 [inline]
ip_sublist_rcv_finish net/ipv4/ip_input.c:577 [inline]
ip_list_rcv_finish net/ipv4/ip_input.c:628 [inline]
ip_sublist_rcv+0x75f/0x8b0 net/ipv4/ip_input.c:636
ip_list_rcv+0x3e4/0x430 net/ipv4/ip_input.c:671
__netif_receive_skb_list_ptype net/core/dev.c:5602 [inline]
__netif_receive_skb_list_core+0x57e/0x770 net/core/dev.c:5650
__netif_receive_skb_list net/core/dev.c:5702 [inline]
netif_receive_skb_list_internal+0x7f8/0xaa0 net/core/dev.c:5793
gro_normal_list net/core/dev.c:5947 [inline]
napi_complete_done+0x375/0x7a0 net/core/dev.c:6685
virtqueue_napi_complete drivers/net/virtio_net.c:357 [inline]
virtnet_poll+0x9b6/0xfb0 drivers/net/virtio_net.c:1627
__napi_poll+0xbb/0x580 net/core/dev.c:7109
napi_poll net/core/dev.c:7176 [inline]
net_rx_action+0x37f/0x910 net/core/dev.c:7266
handle_softirqs+0x250/0x560 kernel/softirq.c:583
__do_softirq kernel/softirq.c:621 [inline]
invoke_softirq kernel/softirq.c:443 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
common_interrupt+0xbe/0xe0 arch/x86/kernel/irq.c:242
asm_common_interrupt+0x27/0x40 arch/x86/include/asm/idtentry.h:667
Last potentially related work creation:
kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38
__kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348
kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358
kvfree_call_rcu+0xb6/0x860 kernel/rcu/tree.c:3648
drop_sysctl_table+0x2f5/0x430 fs/proc/proc_sysctl.c:1687
unregister_sysctl_table+0x7a/0x120 fs/proc/proc_sysctl.c:1725
unregister_net_sysctl_table+0x15/0x20 net/sysctl_net.c:175
neigh_sysctl_unregister+0x78/0x90 net/core/neighbour.c:3737
addrconf_sysctl_unregister net/ipv6/addrconf.c:7241 [inline]
addrconf_ifdown+0x1650/0x1910 net/ipv6/addrconf.c:3962
addrconf_notify+0x3bd/0xe00 net/ipv6/addrconf.c:-1
notifier_call_chain kernel/notifier.c:83 [inline]
raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:391
call_netdevice_notifiers_info net/core/dev.c:2070 [inline]
call_netdevice_notifiers_extack net/core/dev.c:2082 [inline]
call_netdevice_notifiers net/core/dev.c:2096 [inline]
unregister_netdevice_many+0x103d/0x1a00 net/core/dev.c:11176
default_device_exit_batch+0x35e/0x3c0 net/core/dev.c:11709
ops_exit_list net/core/net_namespace.c:177 [inline]
cleanup_net+0x605/0xae0 net/core/net_namespace.c:599
process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328
worker_thread+0xaa0/0x1250 kernel/workqueue.c:2475
kthread+0x3f5/0x4f0 kernel/kthread.c:337
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
The buggy address belongs to the object at ffff888111c0b800
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 378 bytes inside of
1024-byte region [ffff888111c0b800, ffff888111c0bc00)
The buggy address belongs to the page:
page:ffffea0004470200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x111c08
head:ffffea0004470200 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 0000000000000000 0000000100000001 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 104, ts 4486304665, free_ts 0
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2607
prep_new_page+0x1c/0x110 mm/page_alloc.c:2613
get_page_from_freelist+0x2c3a/0x2cd0 mm/page_alloc.c:4487
__alloc_pages+0x1a2/0x460 mm/page_alloc.c:5824
alloc_slab_page mm/slub.c:-1 [inline]
allocate_slab mm/slub.c:1937 [inline]
new_slab+0xa0/0x4d0 mm/slub.c:2000
___slab_alloc+0x3ac/0x840 mm/slub.c:3033
__slab_alloc+0x49/0x90 mm/slub.c:3120
slab_alloc_node mm/slub.c:3211 [inline]
slab_alloc mm/slub.c:3255 [inline]
__kmalloc_track_caller+0x169/0x2c0 mm/slub.c:4954
kmalloc_reserve net/core/skbuff.c:357 [inline]
__alloc_skb+0x210/0x730 net/core/skbuff.c:428
alloc_skb include/linux/skbuff.h:1183 [inline]
netlink_alloc_large_skb net/netlink/af_netlink.c:1182 [inline]
netlink_sendmsg+0x611/0xb80 net/netlink/af_netlink.c:1898
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
____sys_sendmsg+0x5be/0x8f0 net/socket.c:2436
___sys_sendmsg+0x236/0x2e0 net/socket.c:2490
__sys_sendmsg net/socket.c:2519 [inline]
__do_sys_sendmsg net/socket.c:2528 [inline]
__se_sys_sendmsg net/socket.c:2526 [inline]
__x64_sys_sendmsg+0x201/0x2d0 net/socket.c:2526
x64_sys_call+0x4b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
page_owner free stack trace missing
Memory state around the buggy address:
ffff888111c0b800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888111c0b880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888111c0b900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888111c0b980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888111c0ba00: 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: 461 Comm: kworker/1:6 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: usb_hub_wq hub_event
RIP: 0010:memcmp lib/string.c:970 [inline]
RIP: 0010:bcmp+0x1ab/0x230 lib/string.c:991
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:ffffc900010b66f8 EFLAGS: 00010002
RAX: 000000000000002c RBX: 0000000000000000 RCX: 000000000000014a
RDX: 0000000000000006 RSI: 000000000000014a RDI: ffff888115bc017a
RBP: ffffc900010b6730 R08: 0000000000000029 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff0e1904c R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000a02 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30123ffc CR3: 0000000124268000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
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+0x6a0/0x3900 drivers/hid/hid-sony.c:2752
hidinput_connect+0x1f4f/0x2cc0 drivers/hid/hid-input.c:2047
hid_connect+0x479/0xe30 drivers/hid/hid-core.c:2021
hid_hw_start+0xaa/0x130 drivers/hid/hid-core.c:2128
sony_probe+0x23c/0xcf0 drivers/hid/hid-sony.c:3024
hid_device_probe+0x28d/0x390 drivers/hid/hid-core.c:2363
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x27d/0x970 drivers/base/dd.c:595
__driver_probe_device+0x193/0x270 drivers/base/dd.c:755
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
__device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:979
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
device_add+0xaef/0xe90 drivers/base/core.c:3422
hid_add_device+0x349/0x4b0 drivers/hid/hid-core.c:2513
usbhid_probe+0xb93/0xf30 drivers/hid/usbhid/hid-core.c:1442
usb_probe_interface+0x60f/0xb20 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x27d/0x970 drivers/base/dd.c:595
__driver_probe_device+0x193/0x270 drivers/base/dd.c:755
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
__device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:979
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
device_add+0xaef/0xe90 drivers/base/core.c:3422
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+0x143/0x250 drivers/usb/core/driver.c:293
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x27d/0x970 drivers/base/dd.c:595
__driver_probe_device+0x193/0x270 drivers/base/dd.c:755
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
__device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:979
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
device_add+0xaef/0xe90 drivers/base/core.c:3422
usb_new_device+0xa1f/0x1720 drivers/usb/core/hub.c:2643
hub_port_connect drivers/usb/core/hub.c:5560 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5700 [inline]
port_event drivers/usb/core/hub.c:5866 [inline]
hub_event+0x291b/0x43f0 drivers/usb/core/hub.c:5948
process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328
worker_thread+0xaa0/0x1250 kernel/workqueue.c:2475
kthread+0x3f5/0x4f0 kernel/kthread.c:337
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
Modules linked in:
---[ end trace 269c3c252739e14a ]---
RIP: 0010:memcmp lib/string.c:970 [inline]
RIP: 0010:bcmp+0x1ab/0x230 lib/string.c:991
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:ffffc900010b66f8 EFLAGS: 00010002
RAX: 000000000000002c RBX: 0000000000000000 RCX: 000000000000014a
RDX: 0000000000000006 RSI: 000000000000014a RDI: ffff888115bc017a
RBP: ffffc900010b6730 R08: 0000000000000029 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff0e1904c R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000a02 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30123ffc CR3: 0000000124268000 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