================================================================== BUG: KASAN: use-after-free in __hlist_del include/linux/list.h:906 [inline] BUG: KASAN: use-after-free in hlist_del_init_rcu include/linux/rculist.h:184 [inline] BUG: KASAN: use-after-free in __xfrm_state_delete+0x384/0x918 net/xfrm/xfrm_state.c:700 Write of size 8 at addr ffff0000c44e8f10 by task dhcpcd/5933 CPU: 1 PID: 5933 Comm: dhcpcd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0xfc mm/kasan/report.c:524 __asan_report_store8_noabort+0x2c/0x38 mm/kasan/report_generic.c:356 __hlist_del include/linux/list.h:906 [inline] hlist_del_init_rcu include/linux/rculist.h:184 [inline] __xfrm_state_delete+0x384/0x918 net/xfrm/xfrm_state.c:700 xfrm_timer_handler+0xec/0x810 net/xfrm/xfrm_state.c:631 __run_hrtimer kernel/time/hrtimer.c:1751 [inline] __hrtimer_run_queues+0x444/0xc58 kernel/time/hrtimer.c:1815 hrtimer_run_softirq+0x164/0x408 kernel/time/hrtimer.c:1832 handle_softirqs+0x318/0xc90 kernel/softirq.c:596 __do_softirq+0x14/0x20 kernel/softirq.c:630 ____do_softirq+0x10/0x1c arch/arm64/kernel/irq.c:80 call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:901 do_softirq_own_stack+0x1c/0x28 arch/arm64/kernel/irq.c:85 invoke_softirq kernel/softirq.c:477 [inline] __irq_exit_rcu+0x23c/0x430 kernel/softirq.c:679 irq_exit_rcu+0x14/0x84 kernel/softirq.c:691 __el1_irq arch/arm64/kernel/entry-common.c:472 [inline] el1_interrupt+0x38/0x54 arch/arm64/kernel/entry-common.c:486 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:585 arch_local_irq_restore arch/arm64/include/asm/irqflags.h:122 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] _raw_spin_unlock_irqrestore+0x58/0xac kernel/locking/spinlock.c:194 __debug_check_no_obj_freed lib/debugobjects.c:1054 [inline] debug_check_no_obj_freed+0x39c/0x454 lib/debugobjects.c:1075 slab_free_hook mm/slub.c:1710 [inline] slab_free_freelist_hook+0x104/0x1e8 mm/slub.c:1761 slab_free mm/slub.c:3694 [inline] kmem_cache_free+0x118/0x318 mm/slub.c:3716 vm_area_free+0x58/0x128 kernel/fork.c:487 remove_vma mm/mmap.c:144 [inline] remove_mt mm/mmap.c:2327 [inline] do_mas_align_munmap+0xc68/0xf28 mm/mmap.c:2603 do_mas_munmap mm/mmap.c:2658 [inline] __vm_munmap+0x260/0x390 mm/mmap.c:2944 __do_sys_munmap mm/mmap.c:2969 [inline] __se_sys_munmap mm/mmap.c:2966 [inline] __arm64_sys_munmap+0x64/0x7c mm/mmap.c:2966 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x12c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589 Allocated by task 4335: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:53 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] kmalloc_node_trace+0x78/0x90 mm/slab_common.c:1043 kmalloc_node include/linux/slab.h:585 [inline] kzalloc_node include/linux/slab.h:710 [inline] __get_vm_area_node+0x14c/0x31c mm/vmalloc.c:2563 __vmalloc_node_range+0x1d4/0xe70 mm/vmalloc.c:3260 __vmalloc_node mm/vmalloc.c:3365 [inline] vzalloc+0x9c/0xd4 mm/vmalloc.c:3438 xt_counters_alloc+0x50/0x60 net/netfilter/x_tables.c:1402 __do_replace+0xa8/0x93c net/ipv4/netfilter/ip_tables.c:1046 do_replace net/ipv4/netfilter/ip_tables.c:1141 [inline] do_ipt_set_ctl+0x8e8/0xb84 net/ipv4/netfilter/ip_tables.c:1634 nf_setsockopt+0x260/0x280 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0x124/0x134 net/ipv4/ip_sockglue.c:1468 tcp_setsockopt+0xcc/0xe8 net/ipv4/tcp.c:3876 sock_common_setsockopt+0xb0/0xcc net/core/sock.c:3730 __sys_setsockopt+0x2fc/0x50c net/socket.c:2288 __do_sys_setsockopt net/socket.c:2299 [inline] __se_sys_setsockopt net/socket.c:2296 [inline] __arm64_sys_setsockopt+0xc0/0xdc net/socket.c:2296 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x12c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589 Freed by task 4335: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:53 kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:516 ____kasan_slab_free+0x148/0x1b0 mm/kasan/common.c:237 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:245 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1735 [inline] slab_free_freelist_hook+0x16c/0x1e8 mm/slub.c:1761 slab_free mm/slub.c:3694 [inline] __kmem_cache_free+0xbc/0x21c mm/slub.c:3707 kfree+0xd0/0x1a8 mm/slab_common.c:988 __vunmap+0x904/0x9e0 mm/vmalloc.c:2792 __vfree mm/vmalloc.c:2832 [inline] vfree+0xbc/0x150 mm/vmalloc.c:2863 __do_replace+0x81c/0x93c net/ipv4/netfilter/ip_tables.c:1090 do_replace net/ipv4/netfilter/ip_tables.c:1141 [inline] do_ipt_set_ctl+0x8e8/0xb84 net/ipv4/netfilter/ip_tables.c:1634 nf_setsockopt+0x260/0x280 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0x124/0x134 net/ipv4/ip_sockglue.c:1468 tcp_setsockopt+0xcc/0xe8 net/ipv4/tcp.c:3876 sock_common_setsockopt+0xb0/0xcc net/core/sock.c:3730 __sys_setsockopt+0x2fc/0x50c net/socket.c:2288 __do_sys_setsockopt net/socket.c:2299 [inline] __se_sys_setsockopt net/socket.c:2296 [inline] __arm64_sys_setsockopt+0xc0/0xdc net/socket.c:2296 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x12c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589 Last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:46 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 kvfree_call_rcu+0xb4/0x6f0 kernel/rcu/tree.c:3405 kernfs_unlink_open_file+0x370/0x41c fs/kernfs/file.c:653 kernfs_fop_release+0x128/0x194 fs/kernfs/file.c:825 __fput+0x1b4/0x7b0 fs/file_table.c:320 ____fput+0x20/0x30 fs/file_table.c:348 task_work_run+0x1f4/0x280 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x20f8/0x2c84 arch/arm64/kernel/signal.c:1166 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x12c arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589 The buggy address belongs to the object at ffff0000c44e8f00 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 16 bytes inside of 128-byte region [ffff0000c44e8f00, ffff0000c44e8f80) The buggy address belongs to the physical page: page:000000005a758039 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1044e8 flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000200 fffffc0003d330c0 dead000000000003 ffff0000c0002300 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000c44e8e00: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ffff0000c44e8e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000c44e8f00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000c44e8f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000c44e9000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================