================================================================== 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+0x3db/0x940 net/xfrm/xfrm_state.c:700 Write of size 8 at addr ffff8880282ba310 by task udevd/16502 CPU: 1 PID: 16502 Comm: udevd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 __hlist_del include/linux/list.h:906 [inline] hlist_del_init_rcu include/linux/rculist.h:184 [inline] __xfrm_state_delete+0x3db/0x940 net/xfrm/xfrm_state.c:700 xfrm_timer_handler+0x10b/0x970 net/xfrm/xfrm_state.c:631 __run_hrtimer kernel/time/hrtimer.c:1751 [inline] __hrtimer_run_queues+0x522/0xc90 kernel/time/hrtimer.c:1815 hrtimer_run_softirq+0x173/0x290 kernel/time/hrtimer.c:1832 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0x52/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0033:0x7f911f935b61 Code: e2 64 00 00 48 8b 38 31 c0 e8 1b dc fc ff 48 8d 35 39 8f 00 00 48 89 df 31 c0 e8 7a f7 ff ff eb 81 0f 1f 84 00 00 00 00 00 55 <48> 89 fd 53 48 81 ec d8 00 00 00 48 89 74 24 28 48 89 54 24 30 48 RSP: 002b:00007ffcdf74eda0 EFLAGS: 00000202 RAX: 0000000000000000 RBX: 0000559afd9f3050 RCX: 00007f911f11d378 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000700 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000009 Allocated by task 16071: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc+0xb3/0x240 mm/slab_common.c:949 xfrm_state_init+0x125/0x470 net/xfrm/xfrm_state.c:2796 xfrm_net_init+0x1a3/0xeb0 net/xfrm/xfrm_policy.c:4186 ops_init+0x360/0x5e0 net/core/net_namespace.c:138 setup_net+0x4f2/0xbd0 net/core/net_namespace.c:336 copy_net_ns+0x33e/0x5b0 net/core/net_namespace.c:508 create_new_namespaces+0x3ce/0x700 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x116/0x160 kernel/nsproxy.c:226 ksys_unshare+0x4f6/0x8e0 kernel/fork.c:3289 __do_sys_unshare kernel/fork.c:3363 [inline] __se_sys_unshare kernel/fork.c:3361 [inline] __x64_sys_unshare+0x34/0x40 kernel/fork.c:3361 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 4370: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1735 [inline] slab_free_freelist_hook+0x133/0x1b0 mm/slub.c:1761 slab_free mm/slub.c:3694 [inline] __kmem_cache_free+0xb6/0x200 mm/slub.c:3707 xfrm_hash_resize+0xdce/0xff0 net/xfrm/xfrm_state.c:198 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 kvfree_call_rcu+0x103/0x890 kernel/rcu/tree.c:3405 sctp_bind_addr_clean net/sctp/bind_addr.c:131 [inline] sctp_bind_addr_free+0x130/0x170 net/sctp/bind_addr.c:140 sctp_association_free+0x2b2/0x7e0 net/sctp/associola.c:359 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:951 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1342 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1206 [inline] sctp_do_sm+0x379a/0x5690 net/sctp/sm_sideeffect.c:1177 sctp_assoc_bh_rcv+0x3ee/0x630 net/sctp/associola.c:1064 sctp_backlog_rcv+0x158/0x360 net/sctp/input.c:346 sk_backlog_rcv include/net/sock.h:1146 [inline] __release_sock+0x1e6/0x460 net/core/sock.c:2976 release_sock+0x5b/0x1b0 net/core/sock.c:3543 sctp_wait_for_connect+0x3b0/0x750 net/sctp/socket.c:9384 __sctp_connect+0xae3/0xd80 net/sctp/socket.c:1246 __sctp_setsockopt_connectx net/sctp/socket.c:1335 [inline] sctp_getsockopt_connectx3+0x2ee/0x470 net/sctp/socket.c:1420 sctp_getsockopt+0x3ab/0x8a0 net/sctp/socket.c:8156 __sys_getsockopt+0x1b0/0x230 net/socket.c:2332 __do_sys_getsockopt net/socket.c:2347 [inline] __se_sys_getsockopt net/socket.c:2344 [inline] __x64_sys_getsockopt+0xb1/0xc0 net/socket.c:2344 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 kvfree_call_rcu+0x103/0x890 kernel/rcu/tree.c:3405 sctp_bind_addr_clean net/sctp/bind_addr.c:131 [inline] sctp_bind_addr_free+0x130/0x170 net/sctp/bind_addr.c:140 sctp_association_free+0x2b2/0x7e0 net/sctp/associola.c:359 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:951 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1342 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1206 [inline] sctp_do_sm+0x379a/0x5690 net/sctp/sm_sideeffect.c:1177 sctp_assoc_bh_rcv+0x3ee/0x630 net/sctp/associola.c:1064 sctp_backlog_rcv+0x158/0x360 net/sctp/input.c:346 sk_backlog_rcv include/net/sock.h:1146 [inline] __release_sock+0x1e6/0x460 net/core/sock.c:2976 release_sock+0x5b/0x1b0 net/core/sock.c:3543 sctp_close+0x716/0x900 net/sctp/socket.c:1535 inet_release+0x139/0x180 net/ipv4/af_inet.c:430 __sock_release net/socket.c:654 [inline] sock_close+0xbf/0x210 net/socket.c:1400 __fput+0x20a/0x8b0 fs/file_table.c:320 task_work_run+0x1d0/0x260 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:180 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:213 __syscall_exit_to_user_mode_work kernel/entry/common.c:295 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:306 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff8880282ba300 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 16 bytes inside of 64-byte region [ffff8880282ba300, ffff8880282ba340) The buggy address belongs to the physical page: page:ffffea0000a0ae80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x282ba flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0000be85c0 dead000000000003 ffff888018441640 raw: 0000000000000000 0000000000200020 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 0x12c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY), pid 3643, tgid 3643 (udevd), ts 34351350735, free_ts 34262039374 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 alloc_slab_page+0x5d/0x180 mm/slub.c:1805 allocate_slab mm/slub.c:1950 [inline] new_slab+0x87/0x2d0 mm/slub.c:2003 ___slab_alloc+0xbc5/0x1240 mm/slub.c:3161 __slab_alloc mm/slub.c:3247 [inline] slab_alloc_node mm/slub.c:3332 [inline] __kmem_cache_alloc_node+0x126/0x270 mm/slub.c:3405 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc+0xa3/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] tomoyo_encode2 security/tomoyo/realpath.c:45 [inline] tomoyo_encode+0x28a/0x550 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x578/0x5c0 security/tomoyo/realpath.c:283 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x212/0x440 security/tomoyo/file.c:771 security_file_open+0x5e/0xa0 security/security.c:1685 do_dentry_open+0x2fd/0x10b0 fs/open.c:869 do_open fs/namei.c:3677 [inline] path_openat+0x2674/0x2f10 fs/namei.c:3838 do_filp_open+0x1ee/0x420 fs/namei.c:3865 do_sys_openat2+0x14b/0x4f0 fs/open.c:1320 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1487 [inline] free_pcp_prepare mm/page_alloc.c:1537 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3509 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x490 mm/slab.h:742 slab_alloc_node mm/slub.c:3366 [inline] slab_alloc mm/slub.c:3374 [inline] __kmem_cache_alloc_lru mm/slub.c:3381 [inline] kmem_cache_alloc+0x18b/0x2f0 mm/slub.c:3390 getname_flags+0xb7/0x500 fs/namei.c:139 vfs_fstatat fs/stat.c:266 [inline] __do_sys_newfstatat fs/stat.c:437 [inline] __se_sys_newfstatat fs/stat.c:431 [inline] __x64_sys_newfstatat+0x16f/0x240 fs/stat.c:431 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff8880282ba200: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880282ba280: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8880282ba300: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff8880282ba380: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880282ba400: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================