================================================================== BUG: KASAN: use-after-free in __nft_trace_packet+0x135/0x150 net/netfilter/nf_tables_core.c:30 Read of size 2 at addr ffff888074e9f300 by task ksoftirqd/1/20 CPU: 1 PID: 20 Comm: ksoftirqd/1 Not tainted 5.15.180-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call Trace: dump_stack_lvl+0x168/0x230 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 __nft_trace_packet+0x135/0x150 net/netfilter/nf_tables_core.c:30 nft_trace_verdict net/netfilter/nf_tables_core.c:110 [inline] nft_do_chain+0x120e/0x1420 net/netfilter/nf_tables_core.c:256 nft_do_chain_inet+0x22b/0x300 net/netfilter/nft_chain_filter.c:161 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_slow+0xb9/0x200 net/netfilter/core.c:584 nf_hook include/linux/netfilter.h:257 [inline] NF_HOOK+0x1cb/0x360 include/linux/netfilter.h:300 NF_HOOK+0x2d6/0x360 include/linux/netfilter.h:302 __netif_receive_skb_one_core net/core/dev.c:5524 [inline] __netif_receive_skb+0xcc/0x290 net/core/dev.c:5638 process_backlog+0x364/0x780 net/core/dev.c:6515 __napi_poll+0xc0/0x430 net/core/dev.c:7074 napi_poll net/core/dev.c:7141 [inline] net_rx_action+0x4a8/0x9c0 net/core/dev.c:7231 handle_softirqs+0x328/0x820 kernel/softirq.c:558 run_ksoftirqd+0x98/0xf0 kernel/softirq.c:925 smpboot_thread_fn+0x4f6/0x970 kernel/smpboot.c:164 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Allocated by task 4178: 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+0x9c/0xd0 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:3220 [inline] kmem_cache_alloc_node+0x12d/0x2d0 mm/slub.c:3256 __alloc_skb+0xf4/0x750 net/core/skbuff.c:415 alloc_skb include/linux/skbuff.h:1162 [inline] synproxy_send_client_synack_ipv6+0x15b/0xc50 net/netfilter/nf_synproxy_core.c:895 nft_synproxy_eval_v6+0x36b/0x560 net/netfilter/nft_synproxy.c:90 nft_synproxy_do_eval+0x3d3/0x570 net/netfilter/nft_synproxy.c:145 expr_call_ops_eval net/netfilter/nf_tables_core.c:198 [inline] nft_do_chain+0x3fc/0x1420 net/netfilter/nf_tables_core.c:238 nft_do_chain_inet+0x22b/0x300 net/netfilter/nft_chain_filter.c:161 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_slow+0xb9/0x200 net/netfilter/core.c:584 nf_hook include/linux/netfilter.h:257 [inline] NF_HOOK+0x1cb/0x360 include/linux/netfilter.h:300 NF_HOOK+0x2d6/0x360 include/linux/netfilter.h:302 __netif_receive_skb_one_core net/core/dev.c:5524 [inline] __netif_receive_skb+0xcc/0x290 net/core/dev.c:5638 process_backlog+0x364/0x780 net/core/dev.c:6515 __napi_poll+0xc0/0x430 net/core/dev.c:7074 napi_poll net/core/dev.c:7141 [inline] net_rx_action+0x4a8/0x9c0 net/core/dev.c:7231 handle_softirqs+0x328/0x820 kernel/softirq.c:558 __do_softirq kernel/softirq.c:592 [inline] invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:641 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653 common_interrupt+0x5e/0xd0 arch/x86/kernel/irq.c:242 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:667 Freed by task 20: 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:1705 [inline] slab_free_freelist_hook+0xea/0x170 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kmem_cache_free+0x8f/0x210 mm/slub.c:3515 nft_synproxy_eval_v6+0x373/0x560 net/netfilter/nft_synproxy.c:91 nft_synproxy_do_eval+0x3d3/0x570 net/netfilter/nft_synproxy.c:145 expr_call_ops_eval net/netfilter/nf_tables_core.c:198 [inline] nft_do_chain+0x3fc/0x1420 net/netfilter/nf_tables_core.c:238 nft_do_chain_inet+0x22b/0x300 net/netfilter/nft_chain_filter.c:161 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_slow+0xb9/0x200 net/netfilter/core.c:584 nf_hook include/linux/netfilter.h:257 [inline] NF_HOOK+0x1cb/0x360 include/linux/netfilter.h:300 NF_HOOK+0x2d6/0x360 include/linux/netfilter.h:302 __netif_receive_skb_one_core net/core/dev.c:5524 [inline] __netif_receive_skb+0xcc/0x290 net/core/dev.c:5638 process_backlog+0x364/0x780 net/core/dev.c:6515 __napi_poll+0xc0/0x430 net/core/dev.c:7074 napi_poll net/core/dev.c:7141 [inline] net_rx_action+0x4a8/0x9c0 net/core/dev.c:7231 handle_softirqs+0x328/0x820 kernel/softirq.c:558 run_ksoftirqd+0x98/0xf0 kernel/softirq.c:925 smpboot_thread_fn+0x4f6/0x970 kernel/smpboot.c:164 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff888074e9f280 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 128 bytes inside of 232-byte region [ffff888074e9f280, ffff888074e9f368) The buggy address belongs to the page: page:ffffea0001d3a7c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x74e9f flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0001734900 0000001000000002 ffff88801b5e4140 raw: 0000000000000000 00000000000c000c 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 4455, ts 274565042474, free_ts 270958018619 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5466 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] kmem_cache_alloc_node+0x1c3/0x2d0 mm/slub.c:3256 __alloc_skb+0xf4/0x750 net/core/skbuff.c:415 alloc_skb include/linux/skbuff.h:1162 [inline] synproxy_send_client_synack+0x169/0xdd0 net/netfilter/nf_synproxy_core.c:482 nft_synproxy_eval_v4+0x36b/0x560 net/netfilter/nft_synproxy.c:59 nft_synproxy_do_eval+0x341/0x570 net/netfilter/nft_synproxy.c:141 expr_call_ops_eval net/netfilter/nf_tables_core.c:198 [inline] nft_do_chain+0x3fc/0x1420 net/netfilter/nf_tables_core.c:238 nft_do_chain_inet+0x22b/0x300 net/netfilter/nft_chain_filter.c:161 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_slow+0xb9/0x200 net/netfilter/core.c:584 nf_hook include/linux/netfilter.h:257 [inline] NF_HOOK+0x1cb/0x360 include/linux/netfilter.h:300 NF_HOOK+0x2d6/0x360 include/linux/netfilter.h:302 __netif_receive_skb_one_core net/core/dev.c:5524 [inline] __netif_receive_skb+0xcc/0x290 net/core/dev.c:5638 process_backlog+0x364/0x780 net/core/dev.c:6515 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+0x94/0x280 mm/page_alloc.c:3396 __vunmap+0x8ab/0xa40 mm/vmalloc.c:2621 vb2_vmalloc_put+0x64/0xa0 drivers/media/common/videobuf2/videobuf2-vmalloc.c:68 __vb2_buf_mem_free+0x113/0x2c0 drivers/media/common/videobuf2/videobuf2-core.c:266 __vb2_free_mem drivers/media/common/videobuf2/videobuf2-core.c:491 [inline] __vb2_queue_free+0x447/0xd80 drivers/media/common/videobuf2/videobuf2-core.c:536 vb2_core_reqbufs+0x5e7/0xed0 drivers/media/common/videobuf2/videobuf2-core.c:775 __vb2_cleanup_fileio+0x107/0x1f0 drivers/media/common/videobuf2/videobuf2-core.c:2706 vb2_core_queue_release+0x13/0x80 drivers/media/common/videobuf2/videobuf2-core.c:2423 vb2_queue_release drivers/media/common/videobuf2/videobuf2-v4l2.c:938 [inline] _vb2_fop_release drivers/media/common/videobuf2/videobuf2-v4l2.c:1125 [inline] vb2_fop_release+0x160/0x1e0 drivers/media/common/videobuf2/videobuf2-v4l2.c:1139 v4l2_release+0x1f9/0x390 drivers/media/v4l2-core/v4l2-dev.c:456 __fput+0x234/0x930 fs/file_table.c:311 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 Memory state around the buggy address: ffff888074e9f200: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ffff888074e9f280: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888074e9f300: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ^ ffff888074e9f380: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff888074e9f400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================