================================================================== BUG: KASAN: slab-use-after-free in __sk_msg_recvmsg+0xf91/0x10c0 net/core/skmsg.c:431 Read of size 8 at addr ffff88806ae57ab0 by task syz.3.651/8438 CPU: 1 UID: 0 PID: 8438 Comm: syz.3.651 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1d0 mm/kasan/report.c:595 __sk_msg_recvmsg+0xf91/0x10c0 net/core/skmsg.c:431 udp_bpf_recvmsg net/ipv4/udp_bpf.c:83 [inline] udp_bpf_recvmsg+0x1a8/0x9d0 net/ipv4/udp_bpf.c:61 inet_recvmsg+0x455/0x4c0 net/ipv4/af_inet.c:896 sock_recvmsg_nosec net/socket.c:1137 [inline] sock_recvmsg+0x187/0x1f0 net/socket.c:1159 ____sys_recvmsg+0x218/0x640 net/socket.c:2918 ___sys_recvmsg+0x16a/0x1a0 net/socket.c:2960 do_recvmmsg+0x301/0x760 net/socket.c:3055 __sys_recvmmsg net/socket.c:3129 [inline] __do_sys_recvmmsg net/socket.c:3152 [inline] __se_sys_recvmmsg net/socket.c:3145 [inline] __x64_sys_recvmmsg+0x22a/0x280 net/socket.c:3145 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ffb02f9ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffb03de9028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007ffb03216180 RCX: 00007ffb02f9ce59 RDX: 0000000000000012 RSI: 0000200000000400 RDI: 0000000000000003 RBP: 00007ffb03032d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000040000021 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffb03216218 R14: 00007ffb03216180 R15: 00007ffe57eae148 Allocated by task 8434: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:415 kmalloc_noprof include/linux/slab.h:950 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] alloc_sk_msg+0x40/0xb0 net/core/skmsg.c:525 sk_psock_skb_ingress_self+0x2d/0x380 net/core/skmsg.c:627 sk_psock_verdict_apply net/core/skmsg.c:1062 [inline] sk_psock_verdict_recv+0xa33/0xc30 net/core/skmsg.c:1260 udp_read_skb+0x540/0x680 net/ipv4/udp.c:2014 sk_psock_verdict_data_ready+0x19a/0x7d0 net/core/skmsg.c:1284 __udp_enqueue_schedule_skb+0xb11/0x12f0 net/ipv4/udp.c:1745 __udp_queue_rcv_skb net/ipv4/udp.c:2311 [inline] udp_queue_rcv_one_skb+0x8fd/0xf30 net/ipv4/udp.c:2402 udp_queue_rcv_skb+0x19c/0xcf0 net/ipv4/udp.c:2420 __udp4_lib_mcast_deliver net/ipv4/udp.c:2514 [inline] udp_rcv+0x213e/0x2c00 net/ipv4/udp.c:2639 ip_protocol_deliver_rcu+0x304/0x4d0 net/ipv4/ip_input.c:207 ip_local_deliver_finish+0x3f2/0x6e0 net/ipv4/ip_input.c:241 NF_HOOK include/linux/netfilter.h:318 [inline] NF_HOOK include/linux/netfilter.h:312 [inline] ip_local_deliver+0x19a/0x1f0 net/ipv4/ip_input.c:262 dst_input include/net/dst.h:480 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:623 [inline] ip_list_rcv_finish+0x78d/0xce0 net/ipv4/ip_input.c:667 ip_sublist_rcv net/ipv4/ip_input.c:683 [inline] ip_list_rcv+0x338/0x450 net/ipv4/ip_input.c:717 __netif_receive_skb_list_ptype net/core/dev.c:6245 [inline] __netif_receive_skb_list_core+0x74c/0x940 net/core/dev.c:6292 __netif_receive_skb_list net/core/dev.c:6344 [inline] netif_receive_skb_list_internal+0x722/0xd40 net/core/dev.c:6435 netif_receive_skb_list net/core/dev.c:6487 [inline] netif_receive_skb_list+0x55/0x4f0 net/core/dev.c:6477 xdp_recv_frames net/bpf/test_run.c:269 [inline] xdp_test_run_batch.constprop.0+0x16b6/0x1ca0 net/bpf/test_run.c:350 bpf_test_run_xdp_live+0x367/0x760 net/bpf/test_run.c:379 bpf_prog_test_run_xdp+0xd7d/0x1670 net/bpf/test_run.c:1430 bpf_prog_test_run kernel/bpf/syscall.c:4742 [inline] __sys_bpf+0x1725/0x4b90 kernel/bpf/syscall.c:6266 __do_sys_bpf kernel/bpf/syscall.c:6361 [inline] __se_sys_bpf kernel/bpf/syscall.c:6359 [inline] __x64_sys_bpf+0x7b/0xc0 kernel/bpf/syscall.c:6359 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 8435: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5f/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:6250 [inline] kfree+0x223/0x6c0 mm/slub.c:6565 kfree_sk_msg include/linux/skmsg.h:418 [inline] __sk_msg_recvmsg+0xcef/0x10c0 net/core/skmsg.c:491 udp_bpf_recvmsg net/ipv4/udp_bpf.c:83 [inline] udp_bpf_recvmsg+0x1a8/0x9d0 net/ipv4/udp_bpf.c:61 inet_recvmsg+0x455/0x4c0 net/ipv4/af_inet.c:896 sock_recvmsg_nosec net/socket.c:1137 [inline] sock_recvmsg+0x187/0x1f0 net/socket.c:1159 ____sys_recvmsg+0x218/0x640 net/socket.c:2918 ___sys_recvmsg+0x16a/0x1a0 net/socket.c:2960 do_recvmmsg+0x301/0x760 net/socket.c:3055 __sys_recvmmsg net/socket.c:3129 [inline] __do_sys_recvmmsg net/socket.c:3152 [inline] __se_sys_recvmmsg net/socket.c:3145 [inline] __x64_sys_recvmmsg+0x22a/0x280 net/socket.c:3145 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88806ae57800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 688 bytes inside of freed 1024-byte region [ffff88806ae57800, ffff88806ae57c00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806ae52000 pfn:0x6ae50 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88813fe34dc0 ffffea0000ac3210 ffffea0000aa0e10 raw: ffff88806ae52000 000000080010000d 00000000f5000000 0000000000000000 head: 00fff00000000240 ffff88813fe34dc0 ffffea0000ac3210 ffffea0000aa0e10 head: ffff88806ae52000 000000080010000d 00000000f5000000 0000000000000000 head: 00fff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 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 48, tgid 48 (kworker/u8:3), ts 89481488182, free_ts 65778869629 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 alloc_slab_page mm/slub.c:3278 [inline] allocate_slab mm/slub.c:3467 [inline] new_slab+0xa6/0x6c0 mm/slub.c:3525 refill_objects+0x277/0x420 mm/slub.c:7255 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x375/0x650 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_noprof+0x688/0x850 mm/slub.c:5307 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] ieee802_11_parse_elems_full+0x177/0x3720 net/mac80211/parse.c:1051 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2518 [inline] ieee80211_inform_bss+0x159/0x1150 net/mac80211/scan.c:79 rdev_inform_bss net/wireless/rdev-ops.h:418 [inline] cfg80211_inform_single_bss_data+0x8a1/0x1de0 net/wireless/scan.c:2372 cfg80211_inform_bss_data+0x237/0x3a00 net/wireless/scan.c:3226 cfg80211_inform_bss_frame_data+0x247/0x780 net/wireless/scan.c:3317 ieee80211_bss_info_update+0x310/0xab0 net/mac80211/scan.c:230 ieee80211_rx_bss_info net/mac80211/ibss.c:1088 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1569 [inline] ieee80211_ibss_rx_queued_mgmt+0x1922/0x2f80 net/mac80211/ibss.c:1596 ieee80211_iface_process_skb net/mac80211/iface.c:1795 [inline] ieee80211_iface_work+0xbff/0x13e0 net/mac80211/iface.c:1849 cfg80211_wiphy_work+0x410/0x570 net/wireless/core.c:513 page last free pid 5595 tgid 5595 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] free_unref_folios+0xa0d/0x16f0 mm/page_alloc.c:3004 folios_put_refs+0x571/0xa90 mm/swap.c:1008 free_pages_and_swap_cache+0x22d/0x3b0 mm/swap_state.c:401 __tlb_batch_free_encoded_pages+0xe9/0x280 mm/mmu_gather.c:138 tlb_batch_pages_flush mm/mmu_gather.c:151 [inline] tlb_flush_mmu_free mm/mmu_gather.c:417 [inline] tlb_flush_mmu mm/mmu_gather.c:424 [inline] tlb_finish_mmu+0x1b0/0x810 mm/mmu_gather.c:549 unmap_region+0x2d9/0x3b0 mm/vma.c:491 vms_clear_ptes mm/vma.c:1303 [inline] vms_complete_munmap_vmas+0xa4b/0xdd0 mm/vma.c:1345 do_vmi_align_munmap+0x44f/0x5f0 mm/vma.c:1604 do_vmi_munmap+0x1f8/0x3e0 mm/vma.c:1652 __vm_munmap+0x196/0x390 mm/vma.c:3285 __do_sys_munmap mm/mmap.c:1079 [inline] __se_sys_munmap mm/mmap.c:1076 [inline] __x64_sys_munmap+0x59/0x80 mm/mmap.c:1076 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88806ae57980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806ae57a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806ae57a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806ae57b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806ae57b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================