================================================================== BUG: KASAN: out-of-bounds in ifname_compare_aligned include/linux/netfilter/x_tables.h:411 [inline] BUG: KASAN: out-of-bounds in ip_packet_match net/ipv4/netfilter/ip_tables.c:64 [inline] BUG: KASAN: out-of-bounds in ipt_do_table+0x698/0x14e0 net/ipv4/netfilter/ip_tables.c:284 Read of size 8 at addr ffff88811ca10000 by task syz.7.1168/4694 CPU: 1 PID: 4694 Comm: syz.7.1168 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0xe2/0x130 mm/kasan/report.c:452 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309 ifname_compare_aligned include/linux/netfilter/x_tables.h:411 [inline] ip_packet_match net/ipv4/netfilter/ip_tables.c:64 [inline] ipt_do_table+0x698/0x14e0 net/ipv4/netfilter/ip_tables.c:284 iptable_mangle_hook+0x223/0x580 net/ipv4/netfilter/iptable_mangle.c:82 nf_hook_entry_hookfn include/linux/netfilter.h:137 [inline] nf_hook_slow+0xbc/0x200 net/netfilter/core.c:584 nf_hook include/linux/netfilter.h:254 [inline] NF_HOOK_COND include/linux/netfilter.h:287 [inline] ip_mc_output+0x5a9/0x7f0 net/ipv4/ip_output.c:424 dst_output include/net/dst.h:451 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] ip_send_skb+0xb2/0x140 net/ipv4/ip_output.c:1591 udp_send_skb+0x938/0x1240 net/ipv4/udp.c:977 udp_sendmsg+0x171b/0x2080 net/ipv4/udp.c:1265 inet_sendmsg+0xa5/0xc0 net/ipv4/af_inet.c:830 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] ____sys_sendmsg+0x5a2/0x8c0 net/socket.c:2376 ___sys_sendmsg+0x1f0/0x260 net/socket.c:2430 __sys_sendmmsg+0x273/0x450 net/socket.c:2516 __do_sys_sendmmsg net/socket.c:2545 [inline] __se_sys_sendmmsg net/socket.c:2542 [inline] __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2542 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fad7441a749 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fad72e82038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007fad74670fa0 RCX: 00007fad7441a749 RDX: 000000000800001d RSI: 0000200000007fc0 RDI: 0000000000000003 RBP: 00007fad7449ef91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fad74671038 R14: 00007fad74670fa0 R15: 00007fffa180a198 The buggy address belongs to the page: page:ffffea0004728400 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x11ca10 flags: 0x4000000000000000() raw: 4000000000000000 ffffea0004bc1708 ffffea000495ad08 0000000000000000 raw: 0000000000000000 0000000000000002 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 4685, ts 278872187426, free_ts 279087325760 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x2235/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5370 __vmalloc_area_node mm/vmalloc.c:-1 [inline] __vmalloc_node_range+0x353/0x780 mm/vmalloc.c:2629 __vmalloc_node mm/vmalloc.c:2689 [inline] vzalloc+0x78/0x90 mm/vmalloc.c:2742 xt_counters_alloc+0x44/0x50 net/netfilter/x_tables.c:1344 __do_replace+0xae/0xac0 net/ipv4/netfilter/arp_tables.c:893 do_replace net/ipv4/netfilter/arp_tables.c:988 [inline] do_arpt_set_ctl+0xa20/0xee0 net/ipv4/netfilter/arp_tables.c:1428 nf_setsockopt+0x272/0x2a0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0x25ff/0x3510 net/ipv4/ip_sockglue.c:1442 udp_setsockopt+0x8a/0xa0 net/ipv4/udp.c:2750 sock_common_setsockopt+0xa0/0xb0 net/core/sock.c:3326 __sys_setsockopt+0x2ed/0x460 net/socket.c:2146 __do_sys_setsockopt net/socket.c:2157 [inline] __se_sys_setsockopt net/socket.c:2154 [inline] __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2154 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page mm/page_alloc.c:3391 [inline] free_the_page mm/page_alloc.c:5429 [inline] __free_pages+0x14b/0x380 mm/page_alloc.c:5440 __vunmap+0x84d/0x9d0 mm/vmalloc.c:2307 __vfree mm/vmalloc.c:2356 [inline] vfree+0x61/0x90 mm/vmalloc.c:2387 __do_replace+0x92f/0xac0 net/ipv4/netfilter/arp_tables.c:-1 do_replace net/ipv4/netfilter/arp_tables.c:988 [inline] do_arpt_set_ctl+0xa20/0xee0 net/ipv4/netfilter/arp_tables.c:1428 nf_setsockopt+0x272/0x2a0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0x25ff/0x3510 net/ipv4/ip_sockglue.c:1442 udp_setsockopt+0x8a/0xa0 net/ipv4/udp.c:2750 sock_common_setsockopt+0xa0/0xb0 net/core/sock.c:3326 __sys_setsockopt+0x2ed/0x460 net/socket.c:2146 __do_sys_setsockopt net/socket.c:2157 [inline] __se_sys_setsockopt net/socket.c:2154 [inline] __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2154 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff88811ca0ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811ca0ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88811ca10000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88811ca10080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88811ca10100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================