================================================================== BUG: KASAN: use-after-free in rose_transmit_link+0x4f8/0x66c net/rose/rose_link.c:266 Read of size 1 at addr ffff0000de226032 by task syz.0.2601/14975 CPU: 0 PID: 14975 Comm: syz.0.2601 Not tainted 6.1.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x1c8/0x1f4 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+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x88/0x220 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:427 kasan_report+0xa8/0x100 mm/kasan/report.c:531 __asan_report_load1_noabort+0x2c/0x38 mm/kasan/report_generic.c:348 rose_transmit_link+0x4f8/0x66c net/rose/rose_link.c:266 rose_write_internal+0xeec/0x17c0 net/rose/rose_subr.c:198 rose_release+0x224/0x518 net/rose/af_rose.c:671 __sock_release net/socket.c:654 [inline] sock_close+0xb4/0x1f8 net/socket.c:1400 __fput+0x1bc/0x7c0 fs/file_table.c:320 ____fput+0x20/0x30 fs/file_table.c:348 task_work_run+0x1ec/0x270 kernel/task_work.c:203 get_signal+0x1120/0x1310 kernel/signal.c:2648 do_signal arch/arm64/kernel/signal.c:1081 [inline] do_notify_resume+0x340/0x2b0c arch/arm64/kernel/signal.c:1134 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+0x98/0x138 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:585 Allocated by task 11894: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_alloc_info+0x28/0x34 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] kmalloc_trace+0x7c/0x94 mm/slab_common.c:1031 kmalloc include/linux/slab.h:563 [inline] rose_add_node+0x1f4/0xba4 net/rose/rose_route.c:85 rose_rt_ioctl+0xa04/0xde4 net/rose/rose_route.c:747 rose_ioctl+0x378/0xb80 net/rose/af_rose.c:1380 sock_do_ioctl+0xf8/0x240 net/socket.c:1204 sock_ioctl+0x5c4/0x840 net/socket.c:1321 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 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:585 Freed by task 14968: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_free_info+0x3c/0x60 mm/kasan/generic.c:516 ____kasan_slab_free+0x148/0x1b0 mm/kasan/common.c:236 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:244 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook+0x16c/0x1ec mm/slub.c:1750 slab_free mm/slub.c:3661 [inline] __kmem_cache_free+0xc0/0x224 mm/slub.c:3674 kfree+0xd0/0x1ac mm/slab_common.c:988 rose_remove_neigh+0x23c/0x2b8 net/rose/rose_route.c:-1 rose_rt_device_down+0x33c/0x394 net/rose/rose_route.c:522 rose_device_event+0x5d8/0x68c net/rose/af_rose.c:248 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xd4/0x164 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:2001 [inline] call_netdevice_notifiers_extack net/core/dev.c:2039 [inline] call_netdevice_notifiers net/core/dev.c:2053 [inline] __dev_notify_flags+0x250/0x46c net/core/dev.c:-1 dev_change_flags+0xc8/0x154 net/core/dev.c:8702 dev_ifsioc+0x524/0xed0 net/core/dev_ioctl.c:327 dev_ioctl+0x4c8/0xc8c net/core/dev_ioctl.c:588 sock_do_ioctl+0x18c/0x240 net/socket.c:1218 sock_ioctl+0x5c4/0x840 net/socket.c:1321 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 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:585 Last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:45 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 call_rcu+0xfc/0x948 kernel/rcu/tree.c:2845 fib6_info_release include/net/ip6_fib.h:340 [inline] fixup_permanent_addr net/ipv6/addrconf.c:3545 [inline] addrconf_permanent_addr+0x2bc/0x864 net/ipv6/addrconf.c:3573 addrconf_notify+0x7c8/0xca8 net/ipv6/addrconf.c:3645 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xd4/0x164 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:2001 [inline] call_netdevice_notifiers_extack net/core/dev.c:2039 [inline] call_netdevice_notifiers net/core/dev.c:2053 [inline] __dev_notify_flags+0x250/0x46c net/core/dev.c:-1 dev_change_flags+0xc8/0x154 net/core/dev.c:8702 do_setlink+0xa24/0x32c4 net/core/rtnetlink.c:2833 __rtnl_newlink net/core/rtnetlink.c:3608 [inline] rtnl_newlink+0x12d0/0x1a1c net/core/rtnetlink.c:3655 rtnetlink_rcv_msg+0x734/0xce4 net/core/rtnetlink.c:6153 netlink_rcv_skb+0x208/0x3c4 net/netlink/af_netlink.c:2493 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:6171 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x600/0x818 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x6e8/0x9b0 net/netlink/af_netlink.c:1859 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] __sys_sendto+0x304/0x3fc net/socket.c:2153 __do_sys_sendto net/socket.c:2165 [inline] __se_sys_sendto net/socket.c:2161 [inline] __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2161 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 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:585 Second to last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:45 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 call_rcu+0xfc/0x948 kernel/rcu/tree.c:2845 fib6_info_release include/net/ip6_fib.h:340 [inline] fib6_del_route net/ipv6/ip6_fib.c:1999 [inline] fib6_del+0xd54/0x1184 net/ipv6/ip6_fib.c:2032 fib6_clean_node+0x224/0x49c net/ipv6/ip6_fib.c:2194 fib6_walk_continue+0x654/0x878 net/ipv6/ip6_fib.c:2116 fib6_walk+0x140/0x254 net/ipv6/ip6_fib.c:2164 fib6_clean_tree net/ipv6/ip6_fib.c:2244 [inline] __fib6_clean_all+0x1dc/0x310 net/ipv6/ip6_fib.c:2260 fib6_clean_all+0x3c/0x50 net/ipv6/ip6_fib.c:2271 rt6_sync_down_dev net/ipv6/route.c:4944 [inline] rt6_disable_ip+0x104/0x7c8 net/ipv6/route.c:4949 addrconf_ifdown+0x144/0x15dc net/ipv6/addrconf.c:3804 addrconf_notify+0x2f4/0xca8 net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xd4/0x164 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:2001 [inline] call_netdevice_notifiers_extack net/core/dev.c:2039 [inline] call_netdevice_notifiers net/core/dev.c:2053 [inline] dev_close_many+0x2cc/0x440 net/core/dev.c:1601 unregister_netdevice_many+0x3c4/0x1740 net/core/dev.c:10952 default_device_exit_batch+0x9a8/0xa40 net/core/dev.c:11491 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x644/0xa74 net/core/net_namespace.c:640 process_one_work+0x7f4/0x13a8 kernel/workqueue.c:2292 worker_thread+0x8c8/0xfbc kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 The buggy address belongs to the object at ffff0000de226000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 50 bytes inside of 512-byte region [ffff0000de226000, ffff0000de226200) The buggy address belongs to the physical page: page:00000000709bb364 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff0000de226c00 pfn:0x11e224 head:00000000709bb364 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc0003d54008 fffffc000369d708 ffff0000c0002600 raw: ffff0000de226c00 000000000010000a 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000de225f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000de225f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000de226000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000de226080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000de226100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ------------[ cut here ]------------ ODEBUG: assert_init not available (active state 0) object type: timer_list hint: __ll_sc_atomic_fetch_sub_release arch/arm64/include/asm/atomic_ll_sc.h:-1 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: arch_atomic_fetch_sub_release arch/arm64/include/asm/atomic.h:51 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:177 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: __refcount_sub_and_test include/linux/refcount.h:272 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: __refcount_dec_and_test include/linux/refcount.h:315 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: refcount_dec_and_test include/linux/refcount.h:333 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: ax25_cb_put include/net/ax25.h:282 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: rose_link_up net/rose/rose_link.c:131 [inline] ODEBUG: assert_init not available (active state 0) object type: timer_list hint: rose_t0timer_expiry+0x0/0x344 net/rose/rose_link.c:271 WARNING: CPU: 1 PID: 14975 at lib/debugobjects.c:518 debug_print_object+0x148/0x1d4 lib/debugobjects.c:515 Modules linked in: CPU: 1 PID: 14975 Comm: syz.0.2601 Tainted: G B 6.1.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : debug_print_object+0x148/0x1d4 lib/debugobjects.c:515 lr : debug_print_object+0x148/0x1d4 lib/debugobjects.c:515 sp : ffff800021c17620 x29: ffff800021c17620 x28: dfff800000000000 x27: 0000000000000002 x26: ffff800015070000 x25: ffff8000083ad878 x24: dfff800000000000 x23: 0000000000000000 x22: ffff800010a9f6f0 x21: ffff800011f6a080 x20: ffff800011a9ad00 x19: ffff800011f69bc0 x18: ffff800011a7bce0 x17: 203a657079742074 x16: ffff800008042940 x15: 0000000000000002 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000080000 x11: 000000000004353b x10: ffff80002c7e8000 x9 : b0ab252d3743b000 x8 : b0ab252d3743b000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800021c170b8 x4 : ffff800015154700 x3 : ffff80000852da40 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: debug_print_object+0x148/0x1d4 lib/debugobjects.c:515 debug_object_assert_init+0x250/0x2c8 lib/debugobjects.c:900 debug_timer_assert_init kernel/time/timer.c:792 [inline] debug_assert_init kernel/time/timer.c:837 [inline] timer_delete+0x48/0x1e8 kernel/time/timer.c:1277 del_timer include/linux/timer.h:211 [inline] rose_start_t0timer net/rose/rose_link.c:46 [inline] rose_transmit_link+0x43c/0x66c net/rose/rose_link.c:286 rose_write_internal+0xeec/0x17c0 net/rose/rose_subr.c:198 rose_release+0x224/0x518 net/rose/af_rose.c:671 __sock_release net/socket.c:654 [inline] sock_close+0xb4/0x1f8 net/socket.c:1400 __fput+0x1bc/0x7c0 fs/file_table.c:320 ____fput+0x20/0x30 fs/file_table.c:348 task_work_run+0x1ec/0x270 kernel/task_work.c:203 get_signal+0x1120/0x1310 kernel/signal.c:2648 do_signal arch/arm64/kernel/signal.c:1081 [inline] do_notify_resume+0x340/0x2b0c arch/arm64/kernel/signal.c:1134 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+0x98/0x138 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:585 irq event stamp: 771 hardirqs last enabled at (771): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (771): [] finish_lock_switch+0xb0/0x1c4 kernel/sched/core.c:5003 hardirqs last disabled at (770): [] __schedule+0x298/0x1b2c kernel/sched/core.c:6459 softirqs last enabled at (660): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (660): [] lock_sock_nested+0xe0/0x130 net/core/sock.c:3495 softirqs last disabled at (658): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (658): [] lock_sock_nested+0x88/0x130 net/core/sock.c:3491 ---[ end trace 0000000000000000 ]---