=========[ 381.455989][ T5793] ================================================================== BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0x92/0x190 lib/list_debug.c:62 Read of size 8 at addr ffff88806105c780 by task syz-executor/5793 CPU: 1 UID: 0 PID: 5793 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 __list_del_entry_valid_or_report+0x92/0x190 lib/list_debug.c:62 __list_del_entry_valid include/linux/list.h:132 [inline] __list_del_entry include/linux/list.h:223 [inline] list_del_init include/linux/list.h:295 [inline] bt_accept_unlink+0x39/0x260 net/bluetooth/af_bluetooth.c:259 l2cap_sock_teardown_cb+0x17e/0x490 net/bluetooth/l2cap_sock.c:1640 l2cap_chan_del+0xb5/0x610 net/bluetooth/l2cap_core.c:656 l2cap_conn_del+0x33d/0x570 net/bluetooth/l2cap_core.c:1802 hci_disconn_cfm include/net/bluetooth/hci_core.h:2154 [inline] hci_conn_hash_flush+0x10d/0x260 net/bluetooth/hci_conn.c:2650 hci_dev_close_sync+0x821/0x10e0 net/bluetooth/hci_sync.c:5368 hci_dev_do_close net/bluetooth/hci_core.c:502 [inline] hci_unregister_dev+0x21a/0x5a0 net/bluetooth/hci_core.c:2716 vhci_release+0x155/0x1b0 drivers/bluetooth/hci_vhci.c:690 __fput+0x461/0xa70 fs/file_table.c:510 task_work_run+0x1d9/0x270 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x70f/0x22c0 kernel/exit.c:977 do_group_exit+0x21b/0x2d0 kernel/exit.c:1119 get_signal+0x125c/0x1310 kernel/signal.c:3039 arch_do_signal_or_restart+0xbc/0x830 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] exit_to_user_mode_loop+0x86/0x480 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:328 [inline] do_syscall_64+0x33e/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6e417fd04e Code: Unable to access opcode bytes at 0x7f6e417fd024. RSP: 002b:00007ffc47a7e798 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: fffffffffffffe00 RBX: 00005555683f4500 RCX: 00007f6e417fd04e RDX: 0000000000000030 RSI: 00007ffc47a7e890 RDI: 00000000000000f9 RBP: 00007ffc47a7e83c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000258 R13: 00000000000927c0 R14: 000000000005c67b R15: 00007ffc47a7e890 Allocated by task 10: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x3a6/0x690 mm/slub.c:5415 kmalloc_noprof include/linux/slab.h:950 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] keypair_create drivers/net/wireguard/noise.c:100 [inline] wg_noise_handshake_begin_session+0xcc/0xbe0 drivers/net/wireguard/noise.c:827 wg_packet_send_handshake_response+0x13c/0x310 drivers/net/wireguard/send.c:96 wg_receive_handshake_packet drivers/net/wireguard/receive.c:154 [inline] wg_packet_handshake_receive_worker+0x72a/0x10a0 drivers/net/wireguard/receive.c:213 process_one_work kernel/workqueue.c:3302 [inline] process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3385 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3466 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 28: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2689 [inline] slab_free mm/slub.c:6246 [inline] kfree+0x1c5/0x6c0 mm/slub.c:6561 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core kernel/rcu/tree.c:2869 [inline] rcu_cpu_kthread+0x99e/0x1470 kernel/rcu/tree.c:2957 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 __call_rcu_common kernel/rcu/tree.c:3131 [inline] call_rcu+0xee/0x890 kernel/rcu/tree.c:3251 wg_noise_keypairs_clear+0x18d/0x2c0 drivers/net/wireguard/noise.c:174 wg_stop+0x9c/0x600 drivers/net/wireguard/device.c:126 __dev_close_many+0x36d/0x6e0 net/core/dev.c:1776 __dev_close net/core/dev.c:1788 [inline] __dev_change_flags+0x2cb/0x690 net/core/dev.c:9808 netif_change_flags+0x88/0x1a0 net/core/dev.c:9873 do_setlink+0xf82/0x4590 net/core/rtnetlink.c:3180 rtnl_group_changelink net/core/rtnetlink.c:3812 [inline] __rtnl_newlink net/core/rtnetlink.c:3980 [inline] rtnl_newlink+0x14ca/0x1bb0 net/core/rtnetlink.c:4108 rtnetlink_rcv_msg+0x7d5/0xbe0 net/core/rtnetlink.c:6994 netlink_rcv_skb+0x232/0x4b0 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x780/0x920 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:787 [inline] __sock_sendmsg net/socket.c:802 [inline] ____sys_sendmsg+0x94c/0x9c0 net/socket.c:2698 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2752 __sys_sendmsg net/socket.c:2784 [inline] __do_sys_sendmsg net/socket.c:2789 [inline] __se_sys_sendmsg net/socket.c:2787 [inline] __x64_sys_sendmsg+0x1c3/0x2a0 net/socket.c:2787 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88806105c000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1920 bytes inside of freed 2048-byte region [ffff88806105c000, ffff88806105c800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806105c000 pfn:0x61058 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x80000000000240(workingset|head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000240 ffff88801a021000 ffffea0001888610 ffffea0000ad1e10 raw: ffff88806105c000 0000000800080005 00000000f5000000 0000000000000000 head: 0080000000000240 ffff88801a021000 ffffea0001888610 ffffea0000ad1e10 head: ffff88806105c000 0000000800080005 00000000f5000000 0000000000000000 head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5794, tgid 5794 (syz-executor), ts 78874319159, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1860 prep_new_page mm/page_alloc.c:1868 [inline] get_page_from_freelist+0x27c8/0x2840 mm/page_alloc.c:3948 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5228 alloc_slab_page mm/slub.c:3278 [inline] allocate_slab+0x77/0x660 mm/slub.c:3467 new_slab mm/slub.c:3525 [inline] refill_objects+0x33c/0x3d0 mm/slub.c:7251 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x373/0x720 mm/slub.c:4651 alloc_from_pcs mm/slub.c:4749 [inline] slab_alloc_node mm/slub.c:4883 [inline] __do_kmalloc_node mm/slub.c:5294 [inline] __kmalloc_node_track_caller_noprof+0x60b/0x7e0 mm/slub.c:5403 kmalloc_reserve net/core/skbuff.c:635 [inline] __alloc_skb+0x2c1/0x7d0 net/core/skbuff.c:713 alloc_skb include/linux/skbuff.h:1383 [inline] nlmsg_new include/net/netlink.h:1055 [inline] inet6_ifinfo_notify+0x70/0x120 net/ipv6/addrconf.c:6191 addrconf_notify+0xca0/0x1050 net/ipv6/addrconf.c:3772 notifier_call_chain+0x1ad/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2287 [inline] call_netdevice_notifiers net/core/dev.c:2301 [inline] __dev_notify_flags+0x1a9/0x310 net/core/dev.c:9849 netif_change_flags+0xe8/0x1a0 net/core/dev.c:9878 do_setlink+0xf82/0x4590 net/core/rtnetlink.c:3180 rtnl_changelink net/core/rtnetlink.c:3798 [inline] __rtnl_newlink net/core/rtnetlink.c:3971 [inline] rtnl_newlink+0x15ad/0x1bb0 net/core/rtnetlink.c:4108 rtnetlink_rcv_msg+0x7d5/0xbe0 net/core/rtnetlink.c:6994 page_owner free stack trace missing Memory state around the buggy address: ffff88806105c680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806105c700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806105c780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806105c800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806105c880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================