================================================================== BUG: KASAN: use-after-free in rose_get_neigh+0x17c/0x480 net/rose/rose_route.c:690 Read of size 1 at addr ffff0000ea05ec30 by task syz.5.560/6725 CPU: 1 PID: 6725 Comm: syz.5.560 Not tainted 5.15.186-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x78/0x30c mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xec/0x15c mm/kasan/report.c:451 __asan_report_load1_noabort+0x44/0x50 mm/kasan/report_generic.c:306 rose_get_neigh+0x17c/0x480 net/rose/rose_route.c:690 rose_connect+0x350/0xffc net/rose/af_rose.c:814 __sys_connect_file net/socket.c:1923 [inline] __sys_connect+0x264/0x28c net/socket.c:1940 __do_sys_connect net/socket.c:1950 [inline] __se_sys_connect net/socket.c:1947 [inline] __arm64_sys_connect+0x7c/0x94 net/socket.c:1947 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Allocated by task 5951: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xb0/0xf0 mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc_node_track_caller+0x234/0x3bc mm/slub.c:4963 kmalloc_reserve+0xe4/0x26c net/core/skbuff.c:356 __alloc_skb+0x23c/0x67c net/core/skbuff.c:427 __netdev_alloc_skb+0xb4/0x3b8 net/core/skbuff.c:494 netdev_alloc_skb include/linux/skbuff.h:3001 [inline] dev_alloc_skb include/linux/skbuff.h:3014 [inline] __ieee80211_beacon_get+0x934/0x19dc net/mac80211/tx.c:5080 ieee80211_beacon_get_tim+0x5c/0x790 net/mac80211/tx.c:5194 ieee80211_beacon_get include/net/mac80211.h:4981 [inline] mac80211_hwsim_beacon_tx+0x10c/0x7ac drivers/net/wireless/mac80211_hwsim.c:1812 __iterate_interfaces+0x204/0x484 net/mac80211/util.c:793 ieee80211_iterate_active_interfaces_atomic+0xd4/0x180 net/mac80211/util.c:829 mac80211_hwsim_beacon+0x90/0x174 drivers/net/wireless/mac80211_hwsim.c:1865 __run_hrtimer kernel/time/hrtimer.c:1690 [inline] __hrtimer_run_queues+0x428/0xb6c kernel/time/hrtimer.c:1754 hrtimer_run_softirq+0x160/0x400 kernel/time/hrtimer.c:1771 handle_softirqs+0x344/0xbf0 kernel/softirq.c:576 __do_softirq kernel/softirq.c:610 [inline] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] invoke_softirq kernel/softirq.c:457 [inline] __irq_exit_rcu+0x240/0x440 kernel/softirq.c:659 irq_exit+0x14/0x88 kernel/softirq.c:683 handle_domain_irq+0x14c/0x1fc kernel/irq/irqdesc.c:711 gic_handle_irq+0x78/0x1c8 drivers/irqchip/irq-gic-v3.c:765 Last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xcc/0x114 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3007 [inline] call_rcu+0x110/0x8f0 kernel/rcu/tree.c:3087 fib6_info_release include/net/ip6_fib.h:339 [inline] fixup_permanent_addr net/ipv6/addrconf.c:3526 [inline] addrconf_permanent_addr+0x2bc/0x89c net/ipv6/addrconf.c:3554 addrconf_notify+0x6a4/0xc6c net/ipv6/addrconf.c:3622 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd4/0x164 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2049 [inline] call_netdevice_notifiers_extack net/core/dev.c:2061 [inline] call_netdevice_notifiers net/core/dev.c:2075 [inline] __dev_notify_flags+0x250/0x46c net/core/dev.c:-1 dev_change_flags+0xc8/0x154 net/core/dev.c:8929 do_setlink+0xa20/0x3088 net/core/rtnetlink.c:2779 __rtnl_newlink net/core/rtnetlink.c:3450 [inline] rtnl_newlink+0x10d0/0x1404 net/core/rtnetlink.c:3572 rtnetlink_rcv_msg+0x9d4/0xd04 net/core/rtnetlink.c:5650 netlink_rcv_skb+0x208/0x3c4 net/netlink/af_netlink.c:2489 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5668 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x60c/0x89c net/netlink/af_netlink.c:1337 netlink_sendmsg+0x6e8/0x9cc net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x2e8/0x3d8 net/socket.c:2063 __do_sys_sendto net/socket.c:2075 [inline] __se_sys_sendto net/socket.c:2071 [inline] __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2071 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the object at ffff0000ea05ec00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 48 bytes inside of 512-byte region [ffff0000ea05ec00, ffff0000ea05ee00) The buggy address belongs to the page: page:0000000049d88d10 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff0000ea05d000 pfn:0x12a05c head:0000000049d88d10 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc000303de08 fffffc00039f5b08 ffff0000c0002600 raw: ffff0000ea05d000 0000000000100004 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000ea05eb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ea05eb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000ea05ec00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000ea05ec80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000ea05ed00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== Unable to handle kernel paging request at virtual address dfff800000000071 Mem abort info: ESR = 0x0000000096000006 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x06: level 2 translation fault Data abort info: ISV = 0, ISS = 0x00000006 CM = 0, WnR = 0 [dfff800000000071] address between user and kernel address ranges Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 6725 Comm: syz.5.560 Tainted: G B 5.15.186-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 00400005 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : rose_link_up net/rose/rose_link.c:124 [inline] pc : rose_transmit_link+0xf4/0x680 net/rose/rose_link.c:271 lr : rose_link_up net/rose/rose_link.c:124 [inline] lr : rose_transmit_link+0xe8/0x680 net/rose/rose_link.c:271 sp : ffff80001f027920 x29: ffff80001f027920 x28: dfff800000000000 x27: 1ffff00003e04f34 x26: dfff800000000000 x25: ffff0000e74de0b7 x24: ffff0000e74de0b6 x23: ffff800012e02d20 x22: 0000000000000055 x21: 0000000000000388 x20: ffff0000c9fa68c0 x19: ffff0000ea05ec00 x18: 0000000000000000 x17: 0000000000000002 x16: ffff80001045f464 x15: 000000000000002d x14: 0000000000000000 x13: ffffffffffffffff x12: 0000000000080000 x11: 00000000000004e4 x10: ffff80002c000000 x9 : ffff80001ae3a410 x8 : 0000000000000071 x7 : 0000000000000000 x6 : 000000000000002a x5 : ffff0000e74de0be x4 : ffff800012e02d21 x3 : ffff800010453bbc x2 : 0000000000000000 x1 : 0000000000000008 x0 : 0000000000000000 Call trace: rose_link_up net/rose/rose_link.c:124 [inline] rose_transmit_link+0xf4/0x680 net/rose/rose_link.c:271 rose_write_internal+0xee8/0x17c4 net/rose/rose_subr.c:198 rose_connect+0x8f0/0xffc net/rose/af_rose.c:875 __sys_connect_file net/socket.c:1923 [inline] __sys_connect+0x264/0x28c net/socket.c:1940 __do_sys_connect net/socket.c:1950 [inline] __se_sys_connect net/socket.c:1947 [inline] __arm64_sys_connect+0x7c/0x94 net/socket.c:1947 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: 960fe972 f94002a8 910e2115 d343fea8 (387a6908) ---[ end trace 3c771e969a7d817b ]--- ---------------- Code disassembly (best guess): 0: 960fe972 bl 0xfffffffff83fa5c8 4: f94002a8 ldr x8, [x21] 8: 910e2115 add x21, x8, #0x388 c: d343fea8 lsr x8, x21, #3 * 10: 387a6908 ldrb w8, [x8, x26] <-- trapping instruction