================================================================== BUG: KASAN: use-after-free in skb_clear_hash include/linux/skbuff.h:1317 [inline] BUG: KASAN: use-after-free in tcf_ct_handle_fragments net/sched/act_ct.c:767 [inline] BUG: KASAN: use-after-free in tcf_ct_act+0x361f/0x3b40 net/sched/act_ct.c:1011 Write of size 4 at addr ffff888023678094 by task syz.0.18/5082 CPU: 1 PID: 5082 Comm: syz.0.18 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 skb_clear_hash include/linux/skbuff.h:1317 [inline] tcf_ct_handle_fragments net/sched/act_ct.c:767 [inline] tcf_ct_act+0x361f/0x3b40 net/sched/act_ct.c:1011 tcf_action_exec+0x177/0x570 net/sched/act_api.c:770 __tcf_classify net/sched/cls_api.c:1550 [inline] tcf_classify+0x218/0xad0 net/sched/cls_api.c:1616 sch_handle_ingress net/core/dev.c:5200 [inline] __netif_receive_skb_core+0x1cd8/0x3670 net/core/dev.c:5413 __netif_receive_skb_one_core net/core/dev.c:5550 [inline] __netif_receive_skb+0x74/0x290 net/core/dev.c:5666 netif_receive_skb_internal net/core/dev.c:5752 [inline] netif_receive_skb+0x19e/0x700 net/core/dev.c:5811 tun_rx_batched+0x606/0x760 drivers/net/tun.c:-1 tun_get_user+0x2bf4/0x3b10 drivers/net/tun.c:2000 tun_chr_write_iter+0x112/0x1e0 drivers/net/tun.c:2030 call_write_iter include/linux/fs.h:2179 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x748/0xd70 fs/read_write.c:594 ksys_write+0x153/0x260 fs/read_write.c:647 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 RIP: 0033:0x7f1ca5e07159 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:00007f1ca5467028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1ca608efa0 RCX: 00007f1ca5e07159 RDX: 0000000000000fce RSI: 0000200000001280 RDI: 0000000000000003 RBP: 00007f1ca5e9e06b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1ca608f038 R14: 00007f1ca608efa0 R15: 00007ffd256573b8 Allocated by task 5082: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x92/0xc0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] kmem_cache_alloc_node+0x184/0x2c0 mm/slub.c:3261 __alloc_skb+0xf4/0x750 net/core/skbuff.c:415 alloc_skb include/linux/skbuff.h:1162 [inline] alloc_skb_with_frags+0xa7/0x720 net/core/skbuff.c:6209 sock_alloc_send_pskb+0x87f/0x9a0 net/core/sock.c:2535 tun_alloc_skb drivers/net/tun.c:1515 [inline] tun_get_user+0x8f7/0x3b10 drivers/net/tun.c:1827 tun_chr_write_iter+0x112/0x1e0 drivers/net/tun.c:2030 call_write_iter include/linux/fs.h:2179 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x748/0xd70 fs/read_write.c:594 ksys_write+0x153/0x260 fs/read_write.c:647 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 Freed by task 5082: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd5/0x110 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1710 [inline] slab_free_freelist_hook+0xec/0x170 mm/slub.c:1736 slab_free mm/slub.c:3504 [inline] kmem_cache_free+0x8f/0x210 mm/slub.c:3520 kfree_skb include/linux/skbuff.h:1118 [inline] nf_ct_frag6_queue net/ipv6/netfilter/nf_conntrack_reasm.c:261 [inline] nf_ct_frag6_gather+0x1002/0x1da0 net/ipv6/netfilter/nf_conntrack_reasm.c:486 tcf_ct_handle_fragments net/sched/act_ct.c:751 [inline] tcf_ct_act+0xc8d/0x3b40 net/sched/act_ct.c:1011 tcf_action_exec+0x177/0x570 net/sched/act_api.c:770 __tcf_classify net/sched/cls_api.c:1550 [inline] tcf_classify+0x218/0xad0 net/sched/cls_api.c:1616 sch_handle_ingress net/core/dev.c:5200 [inline] __netif_receive_skb_core+0x1cd8/0x3670 net/core/dev.c:5413 __netif_receive_skb_one_core net/core/dev.c:5550 [inline] __netif_receive_skb+0x74/0x290 net/core/dev.c:5666 netif_receive_skb_internal net/core/dev.c:5752 [inline] netif_receive_skb+0x19e/0x700 net/core/dev.c:5811 tun_rx_batched+0x606/0x760 drivers/net/tun.c:-1 tun_get_user+0x2bf4/0x3b10 drivers/net/tun.c:2000 tun_chr_write_iter+0x112/0x1e0 drivers/net/tun.c:2030 call_write_iter include/linux/fs.h:2179 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x748/0xd70 fs/read_write.c:594 ksys_write+0x153/0x260 fs/read_write.c:647 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 The buggy address belongs to the object at ffff888023678000 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 148 bytes inside of 232-byte region [ffff888023678000, ffff8880236780e8) The buggy address belongs to the page: page:ffffea00008d9e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x23678 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0000a9f800 0000001000000002 ffff88801bbe4140 raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 4337, ts 89325369869, free_ts 89276524947 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x807/0xdd0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] kmem_cache_alloc_node+0x118/0x2c0 mm/slub.c:3261 __alloc_skb+0xf4/0x750 net/core/skbuff.c:415 alloc_skb include/linux/skbuff.h:1162 [inline] nlmsg_new include/net/netlink.h:964 [inline] inet6_rt_notify+0xe0/0x290 net/ipv6/route.c:6187 fib6_del_route net/ipv6/ip6_fib.c:1999 [inline] fib6_del+0x10f2/0x1550 net/ipv6/ip6_fib.c:2034 fib6_clean_node+0x28c/0x540 net/ipv6/ip6_fib.c:2196 fib6_walk_continue+0x662/0x8b0 net/ipv6/ip6_fib.c:2118 fib6_walk+0x149/0x260 net/ipv6/ip6_fib.c:2166 fib6_clean_tree net/ipv6/ip6_fib.c:2246 [inline] __fib6_clean_all+0x252/0x3b0 net/ipv6/ip6_fib.c:2262 rt6_sync_down_dev net/ipv6/route.c:4918 [inline] rt6_disable_ip+0x127/0x6b0 net/ipv6/route.c:4923 addrconf_ifdown+0x149/0x19f0 net/ipv6/addrconf.c:3793 addrconf_notify+0x445/0xf20 net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:391 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396 __vunmap+0x8e0/0xa80 mm/vmalloc.c:2628 free_work+0x56/0x80 mm/vmalloc.c:95 process_one_work+0x867/0xff0 kernel/workqueue.c:2310 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457 kthread+0x42e/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff888023677f80: fc 00 00 00 00 00 fc fc 00 00 00 00 00 fc fc fc ffff888023678000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888023678080: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ^ ffff888023678100: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff888023678180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================