================================================================== BUG: KASAN: slab-out-of-bounds in fib6_info_nh_dev+0x3c/0x2fc include/net/nexthop.h:536 Read of size 8 at addr ffff0000ce2668d0 by task syz.5.1085/9109 CPU: 1 UID: 0 PID: 9109 Comm: syz.5.1085 Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xb0/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0x8c/0xc4 mm/kasan/report.c:595 __asan_report_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 fib6_info_nh_dev+0x3c/0x2fc include/net/nexthop.h:536 nft_fib6_info_nh_uses_dev+0xd4/0x154 net/ipv6/netfilter/nft_fib_ipv6.c:174 nft_fib6_eval+0x6fc/0x9bc net/ipv6/netfilter/nft_fib_ipv6.c:231 nft_fib_inet_eval+0x160/0x208 net/netfilter/nft_fib_inet.c:34 expr_call_ops_eval net/netfilter/nf_tables_core.c:237 [inline] nft_do_chain+0x40c/0x12fc net/netfilter/nf_tables_core.c:285 nft_do_chain_inet+0x280/0x3d0 net/netfilter/nft_chain_filter.c:162 nf_hook_entry_hookfn include/linux/netfilter.h:158 [inline] nf_hook_slow+0xb4/0x210 net/netfilter/core.c:619 nf_hook include/linux/netfilter.h:273 [inline] NF_HOOK+0x1d0/0x36c include/linux/netfilter.h:316 ipv6_rcv+0x9c/0xbc net/ipv6/ip6_input.c:351 __netif_receive_skb_one_core+0xc4/0x10c net/core/dev.c:6202 __netif_receive_skb+0x34/0x128 net/core/dev.c:6315 netif_receive_skb_internal net/core/dev.c:6401 [inline] netif_receive_skb+0x1c8/0xaac net/core/dev.c:6460 tun_rx_batched+0x48c/0x5dc drivers/net/tun.c:-1 tun_get_user+0x2274/0x34f0 drivers/net/tun.c:1955 tun_chr_write_iter+0xfc/0x168 drivers/net/tun.c:2001 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x52c/0xa14 fs/read_write.c:688 ksys_write+0x12c/0x224 fs/read_write.c:740 __do_sys_write fs/read_write.c:751 [inline] __se_sys_write fs/read_write.c:748 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:748 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xe8/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x25c arch/arm64/kernel/entry-common.c:723 el0t_64_sync_handler+0x48/0x148 arch/arm64/kernel/entry-common.c:742 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:594 Allocated by task 8916: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:570 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x284/0x56c mm/slub.c:5415 kmalloc_noprof include/linux/slab.h:950 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] nexthop_alloc+0x54/0x16c net/ipv4/nexthop.c:536 nexthop_create net/ipv4/nexthop.c:2918 [inline] nexthop_add net/ipv4/nexthop.c:2985 [inline] rtm_new_nexthop+0x1ea0/0x5b1c net/ipv4/nexthop.c:3299 rtnetlink_rcv_msg+0x64c/0x984 net/core/rtnetlink.c:6995 netlink_rcv_skb+0x22c/0x410 net/netlink/af_netlink.c:2550 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:7022 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x610/0x800 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x63c/0x920 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:787 [inline] __sock_sendmsg+0xc8/0x138 net/socket.c:802 ____sys_sendmsg+0x418/0x70c net/socket.c:2698 ___sys_sendmsg+0x198/0x224 net/socket.c:2752 __sys_sendmsg+0x160/0x214 net/socket.c:2784 __do_sys_sendmsg net/socket.c:2789 [inline] __se_sys_sendmsg net/socket.c:2787 [inline] __arm64_sys_sendmsg+0x80/0x94 net/socket.c:2787 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xe8/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x25c arch/arm64/kernel/entry-common.c:723 el0t_64_sync_handler+0x48/0x148 arch/arm64/kernel/entry-common.c:742 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:594 The buggy address belongs to the object at ffff0000ce266800 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 8 bytes to the right of allocated 200-byte region [ffff0000ce266800, ffff0000ce2668c8) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10e266 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000000040(head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000040 ffff0000c0001b40 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 head: 05ffc00000000040 ffff0000c0001b40 dead000000000100 dead000000000122 head: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 head: 05ffc00000000001 fffffdffc3389981 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000ce266780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ce266800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000ce266880: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ^ ffff0000ce266900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ce266980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================