================================================================== BUG: KASAN: slab-use-after-free in rose_send_frame net/rose/rose_link.c:105 [inline] BUG: KASAN: slab-use-after-free in rose_transmit_restart_request net/rose/rose_link.c:198 [inline] BUG: KASAN: slab-use-after-free in rose_t0timer_expiry+0x1ea/0x560 net/rose/rose_link.c:83 Read of size 8 at addr ffff88807c780c18 by task kworker/u8:10/2807 CPU: 1 UID: 0 PID: 2807 Comm: kworker/u8:10 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Workqueue: netns cleanup_net Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 rose_send_frame net/rose/rose_link.c:105 [inline] rose_transmit_restart_request net/rose/rose_link.c:198 [inline] rose_t0timer_expiry+0x1ea/0x560 net/rose/rose_link.c:83 call_timer_fn+0x192/0x640 kernel/time/timer.c:1748 expire_timers kernel/time/timer.c:1799 [inline] __run_timers kernel/time/timer.c:2373 [inline] __run_timer_base+0x652/0x8b0 kernel/time/timer.c:2385 run_timer_base kernel/time/timer.c:2394 [inline] run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2404 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x5f/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:batadv_hardif_get_by_netdev+0x15f/0x3d0 net/batman-adv/hard-interface.c:73 Code: f6 4c 8b 3d f3 5b 07 0f 49 81 ff 80 13 7e 9a 0f 84 a8 01 00 00 4c 89 6c 24 10 49 8d 5f 18 48 89 d8 48 c1 e8 03 42 80 3c 20 00 <74> 08 48 89 df e8 c7 fd b8 f6 4c 39 2b 74 0a e8 cd d4 4e f6 e9 fd RSP: 0018:ffffc9000e257240 EFLAGS: 00000246 RAX: 1ffff11004f9ac03 RBX: ffff888027cd6018 RCX: ffff8880546a5ac0 RDX: 0000000000000000 RSI: ffffffff8c27a460 RDI: ffffffff8c27a420 RBP: ffffc9000e2572e8 R08: ffffffff8b76b6c9 R09: ffffffff8e7602e0 R10: dffffc0000000000 R11: ffffffff8b76f6a0 R12: dffffc0000000000 R13: ffff88807341c000 R14: 1ffff92001c4ae4c R15: ffff888027cd6000 batadv_hard_if_event+0x82/0x1700 net/batman-adv/hard-interface.c:955 notifier_call_chain+0x1be/0x400 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2287 [inline] call_netdevice_notifiers net/core/dev.c:2301 [inline] unregister_netdevice_many_notify+0x1cbf/0x2370 net/core/dev.c:12421 unregister_netdevice_many net/core/dev.c:12466 [inline] unregister_netdevice_queue+0x31f/0x360 net/core/dev.c:12280 unregister_netdevice include/linux/netdevice.h:3408 [inline] _cfg80211_unregister_wdev+0x155/0x570 net/wireless/core.c:1297 ieee80211_remove_interfaces+0x49c/0x6d0 net/mac80211/iface.c:2440 ieee80211_unregister_hw+0x5d/0x2c0 net/mac80211/main.c:1691 mac80211_hwsim_del_radio+0x28a/0x490 drivers/net/wireless/virtual/mac80211_hwsim.c:5916 hwsim_exit_net+0xede/0xfa0 drivers/net/wireless/virtual/mac80211_hwsim.c:6807 ops_exit_list net/core/net_namespace.c:199 [inline] ops_undo_list+0x49f/0x940 net/core/net_namespace.c:252 cleanup_net+0x56b/0x800 net/core/net_namespace.c:704 process_one_work kernel/workqueue.c:3275 [inline] process_scheduled_works+0xb02/0x1830 kernel/workqueue.c:3358 worker_thread+0xa50/0xfc0 kernel/workqueue.c:3439 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 28358: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x31c/0x660 mm/slub.c:5339 kmalloc_noprof include/linux/slab.h:962 [inline] rose_add_node+0x23c/0xf00 net/rose/rose_route.c:85 rose_rt_ioctl+0xd35/0x12a0 net/rose/rose_route.c:748 rose_ioctl+0x3fb/0x8f0 net/rose/af_rose.c:1382 sock_do_ioctl+0x101/0x320 net/socket.c:1254 sock_ioctl+0x5c6/0x7f0 net/socket.c:1375 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 28021: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2687 [inline] slab_free mm/slub.c:6124 [inline] kfree+0x1c1/0x630 mm/slub.c:6442 rose_neigh_put include/net/rose.h:166 [inline] rose_timer_expiry+0x4cb/0x600 net/rose/rose_timer.c:183 call_timer_fn+0x192/0x640 kernel/time/timer.c:1748 expire_timers kernel/time/timer.c:1799 [inline] __run_timers kernel/time/timer.c:2373 [inline] __run_timer_base+0x652/0x8b0 kernel/time/timer.c:2385 run_timer_base kernel/time/timer.c:2394 [inline] run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2404 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x5f/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 The buggy address belongs to the object at ffff88807c780c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 24 bytes inside of freed 512-byte region [ffff88807c780c00, ffff88807c780e00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7c780 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88813fea3c80 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88813fea3c80 dead000000000100 dead000000000122 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea0001f1e001 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5476, tgid 5476 (rcS), ts 48957413404, free_ts 40840880244 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5250 alloc_slab_page mm/slub.c:3255 [inline] allocate_slab+0x77/0x660 mm/slub.c:3444 new_slab mm/slub.c:3502 [inline] refill_objects+0x331/0x3c0 mm/slub.c:7134 refill_sheaf mm/slub.c:2804 [inline] __pcs_replace_empty_main+0x2b9/0x620 mm/slub.c:4578 alloc_from_pcs mm/slub.c:4681 [inline] slab_alloc_node mm/slub.c:4815 [inline] __do_kmalloc_node mm/slub.c:5218 [inline] __kmalloc_noprof+0x474/0x760 mm/slub.c:5231 kmalloc_noprof include/linux/slab.h:966 [inline] kzalloc_noprof include/linux/slab.h:1204 [inline] tomoyo_init_log+0x1aae/0x1fb0 security/tomoyo/audit.c:275 tomoyo_supervisor+0x353/0x1570 security/tomoyo/common.c:2232 tomoyo_audit_path_log security/tomoyo/file.c:169 [inline] tomoyo_path_permission+0x25a/0x380 security/tomoyo/file.c:592 tomoyo_check_open_permission+0x2b2/0x470 security/tomoyo/file.c:782 security_bprm_check+0x85/0x240 security/security.c:794 search_binary_handler fs/exec.c:1654 [inline] exec_binprm fs/exec.c:1696 [inline] bprm_execve+0x896/0x1460 fs/exec.c:1748 do_execveat_common+0x50d/0x690 fs/exec.c:1846 __do_sys_execve fs/exec.c:1930 [inline] __se_sys_execve fs/exec.c:1924 [inline] __x64_sys_execve+0x97/0xc0 fs/exec.c:1924 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 page last free pid 5206 tgid 5206 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0xc2b/0xdb0 mm/page_alloc.c:2978 __slab_free+0x263/0x2b0 mm/slub.c:5532 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4501 [inline] slab_alloc_node mm/slub.c:4830 [inline] __do_kmalloc_node mm/slub.c:5218 [inline] __kmalloc_noprof+0x316/0x760 mm/slub.c:5231 kmalloc_noprof include/linux/slab.h:966 [inline] tomoyo_realpath_from_path+0xe3/0x5d0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x283/0x560 security/tomoyo/file.c:827 security_inode_getattr+0x12b/0x310 security/security.c:1869 vfs_getattr+0x23/0x70 fs/stat.c:259 vfs_statx_path+0x2b/0x230 fs/stat.c:299 vfs_statx+0x12e/0x200 fs/stat.c:356 vfs_fstatat+0x11b/0x170 fs/stat.c:373 __do_sys_newfstatat fs/stat.c:538 [inline] __se_sys_newfstatat fs/stat.c:532 [inline] __x64_sys_newfstatat+0x151/0x200 fs/stat.c:532 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88807c780b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807c780b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807c780c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807c780c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807c780d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 4c 8b 3d f3 5b 07 0f mov 0xf075bf3(%rip),%r15 # 0xf075bfa 7: 49 81 ff 80 13 7e 9a cmp $0xffffffff9a7e1380,%r15 e: 0f 84 a8 01 00 00 je 0x1bc 14: 4c 89 6c 24 10 mov %r13,0x10(%rsp) 19: 49 8d 5f 18 lea 0x18(%r15),%rbx 1d: 48 89 d8 mov %rbx,%rax 20: 48 c1 e8 03 shr $0x3,%rax 24: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) * 29: 74 08 je 0x33 <-- trapping instruction 2b: 48 89 df mov %rbx,%rdi 2e: e8 c7 fd b8 f6 call 0xf6b8fdfa 33: 4c 39 2b cmp %r13,(%rbx) 36: 74 0a je 0x42 38: e8 cd d4 4e f6 call 0xf64ed50a 3d: e9 .byte 0xe9 3e: fd std