================================================================== BUG: KASAN: slab-use-after-free in nla_put_napi_id net/core/netdev-genl.c:386 [inline] BUG: KASAN: slab-use-after-free in netdev_nl_queue_fill_one+0xf97/0x11f0 net/core/netdev-genl.c:494 Read of size 4 at addr ffff88807e48498c by task syz.0.1788/10043 CPU: 1 UID: 0 PID: 10043 Comm: syz.0.1788 Tainted: G L syzkaller #0 PREEMPT(lazy) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/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/0x1c0 mm/kasan/report.c:595 nla_put_napi_id net/core/netdev-genl.c:386 [inline] netdev_nl_queue_fill_one+0xf97/0x11f0 net/core/netdev-genl.c:494 netdev_nl_queue_dump_one+0x189/0x380 net/core/netdev-genl.c:603 netdev_nl_queue_get_dumpit+0x16c/0x510 net/core/netdev-genl.c:641 genl_dumpit+0x125/0x230 net/netlink/genetlink.c:1026 netlink_dump+0x532/0xd00 net/netlink/af_netlink.c:2331 netlink_recvmsg+0x7dc/0xa90 net/netlink/af_netlink.c:1982 sock_recvmsg_nosec net/socket.c:1126 [inline] sock_recvmsg+0x1d5/0x220 net/socket.c:1148 __sys_recvfrom+0x1f2/0x2f0 net/socket.c:2302 __do_sys_recvfrom net/socket.c:2317 [inline] __se_sys_recvfrom net/socket.c:2313 [inline] __x64_sys_recvfrom+0xe0/0x1c0 net/socket.c:2313 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f97d175e90e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f97d26fce88 EFLAGS: 00000246 ORIG_RAX: 000000000000002d RAX: ffffffffffffffda RBX: 00007f97d26fe6c0 RCX: 00007f97d175e90e RDX: 0000000000001000 RSI: 00007f97d26fd000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 00007f97d26fcf58 R14: 00007f97d26fd000 R15: 0000000000000000 Allocated by task 5604: 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 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5334 [inline] __kvmalloc_node_noprof+0x34f/0x970 mm/slub.c:6905 xt_alloc_table_info+0x44/0xa0 net/netfilter/x_tables.c:1286 do_replace net/ipv6/netfilter/ip6_tables.c:1141 [inline] do_ip6t_set_ctl+0x611/0xd00 net/ipv6/netfilter/ip6_tables.c:1643 nf_setsockopt+0x8d/0xf0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x135/0x170 net/ipv6/ipv6_sockglue.c:970 tcp_setsockopt+0xa7/0x100 net/ipv4/tcp.c:4179 do_sock_setsockopt+0xf3/0x1d0 net/socket.c:2368 __sys_setsockopt+0x195/0x220 net/socket.c:2393 __do_sys_setsockopt net/socket.c:2399 [inline] __se_sys_setsockopt net/socket.c:2396 [inline] __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2396 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5604: 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:2677 [inline] slab_free mm/slub.c:6377 [inline] kfree+0x22b/0x6c0 mm/slub.c:6692 __do_replace+0x734/0x990 net/ipv4/netfilter/arp_tables.c:943 do_replace net/ipv6/netfilter/ip6_tables.c:1156 [inline] do_ip6t_set_ctl+0xa5f/0xd00 net/ipv6/netfilter/ip6_tables.c:1643 nf_setsockopt+0x8d/0xf0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x135/0x170 net/ipv6/ipv6_sockglue.c:970 tcp_setsockopt+0xa7/0x100 net/ipv4/tcp.c:4179 do_sock_setsockopt+0xf3/0x1d0 net/socket.c:2368 __sys_setsockopt+0x195/0x220 net/socket.c:2393 __do_sys_setsockopt net/socket.c:2399 [inline] __se_sys_setsockopt net/socket.c:2396 [inline] __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2396 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88807e484800 which belongs to the cache kmalloc-cg-1k of size 1024 The buggy address is located 396 bytes inside of freed 1024-byte region [ffff88807e484800, ffff88807e484c00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7e480 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888029d01301 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88813fe2b280 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800100010 00000000f5000000 ffff888029d01301 head: 00fff00000000040 ffff88813fe2b280 dead000000000100 dead000000000122 head: 0000000000000000 0000000800100010 00000000f5000000 ffff888029d01301 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4952, tgid 4952 (klogd), ts 62743902760, free_ts 62717503694 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0xf48/0x3530 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x299/0x2dc0 mm/page_alloc.c:5304 alloc_slab_page mm/slub.c:3266 [inline] allocate_slab mm/slub.c:3380 [inline] new_slab+0xa2/0x640 mm/slub.c:3426 refill_objects+0xe3/0x410 mm/slub.c:7310 refill_sheaf mm/slub.c:2804 [inline] __pcs_replace_empty_main+0x376/0x680 mm/slub.c:4675 alloc_from_pcs mm/slub.c:4773 [inline] slab_alloc_node mm/slub.c:4905 [inline] __do_kmalloc_node mm/slub.c:5333 [inline] __kmalloc_node_track_caller_noprof+0x679/0x830 mm/slub.c:5471 kmalloc_reserve+0xe8/0x350 net/core/skbuff.c:637 __alloc_skb+0x185/0x710 net/core/skbuff.c:715 alloc_skb include/linux/skbuff.h:1384 [inline] alloc_skb_with_frags+0xdd/0x760 net/core/skbuff.c:6775 sock_alloc_send_pskb+0x801/0x980 net/core/sock.c:3012 unix_dgram_sendmsg+0x3c7/0x1810 net/unix/af_unix.c:2137 sock_sendmsg_nosec net/socket.c:775 [inline] __sock_sendmsg net/socket.c:790 [inline] __sys_sendto+0x48b/0x4e0 net/socket.c:2252 __do_sys_sendto net/socket.c:2259 [inline] __se_sys_sendto net/socket.c:2255 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2255 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5530 tgid 5530 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x79f/0x1090 mm/page_alloc.c:2950 __folio_put+0x3b4/0x5f0 mm/swap.c:112 folio_put include/linux/mm.h:2124 [inline] put_page include/linux/mm.h:2193 [inline] do_exit+0x1fe8/0x2ae0 kernel/exit.c:1040 do_group_exit+0xd5/0x2a0 kernel/exit.c:1152 __do_sys_exit_group kernel/exit.c:1163 [inline] __se_sys_exit_group kernel/exit.c:1161 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1161 x64_sys_call+0x102c/0x1530 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88807e484880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807e484900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88807e484980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807e484a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807e484a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================