syzbot |
sign-in | mailing list | source | docs |
================================================================== BUG: KASAN: use-after-free in ax25_addr_ax25dev+0x55/0x160 net/ax25/ax25_dev.c:38 Read of size 8 at addr ffff8880295c4f08 by task syz.3.1686/9909 CPU: 0 PID: 9909 Comm: syz.3.1686 Not tainted 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: <TASK> dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 ax25_addr_ax25dev+0x55/0x160 net/ax25/ax25_dev.c:38 ax25_bind+0x4ea/0xb60 net/ax25/af_ax25.c:1134 __sys_bind+0x2f4/0x3f0 net/socket.c:1720 __do_sys_bind net/socket.c:1731 [inline] __se_sys_bind net/socket.c:1729 [inline] __x64_sys_bind+0x76/0x80 net/socket.c:1729 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fe9a5aff929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe9a3925038 EFLAGS: 00000246 ORIG_RAX: 0000000000000031 RAX: ffffffffffffffda RBX: 00007fe9a5d27160 RCX: 00007fe9a5aff929 RDX: 0000000000000048 RSI: 0000200000000f00 RDI: 0000000000000004 RBP: 00007fe9a5b81b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe9a5d27160 R15: 00007ffc8ac830f8 </TASK> Allocated by task 9819: 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+0xb5/0xf0 mm/kasan/common.c:522 kmalloc include/linux/slab.h:604 [inline] kzalloc include/linux/slab.h:735 [inline] snd_virmidi_input_open+0xad/0x3d0 sound/core/seq/seq_virmidi.c:190 open_substream+0x347/0x6c0 sound/core/rawmidi.c:309 rawmidi_open_priv+0x94/0x660 sound/core/rawmidi.c:352 snd_rawmidi_open+0x455/0xac0 sound/core/rawmidi.c:455 chrdev_open+0x597/0x670 fs/char_dev.c:414 do_dentry_open+0x7ff/0xf80 fs/open.c:826 do_open fs/namei.c:3608 [inline] path_openat+0x2682/0x2f30 fs/namei.c:3742 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1280 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Freed by task 9819: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd5/0x110 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0xea/0x170 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0xef/0x2a0 mm/slub.c:4559 snd_virmidi_input_close+0x201/0x220 sound/core/seq/seq_virmidi.c:253 close_substream+0x2bc/0x5a0 sound/core/rawmidi.c:525 rawmidi_release_priv+0x80/0x170 sound/core/rawmidi.c:543 snd_rawmidi_release+0x5a/0xc0 sound/core/rawmidi.c:578 __fput+0x234/0x930 fs/file_table.c:311 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 insert_work+0x54/0x3d0 kernel/workqueue.c:1366 __queue_work+0x9c5/0xd50 kernel/workqueue.c:1532 queue_work_on+0x11d/0x1d0 kernel/workqueue.c:1559 queue_work include/linux/workqueue.h:512 [inline] netdevice_queue_work drivers/infiniband/core/roce_gid_mgmt.c:659 [inline] netdevice_event+0x803/0x900 drivers/infiniband/core/roce_gid_mgmt.c:802 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:391 __netdev_upper_dev_link+0x3c0/0x580 net/core/dev.c:8199 netdev_upper_dev_link+0x9a/0xe0 net/core/dev.c:8240 register_vlan_dev+0x3ee/0x7f0 net/8021q/vlan.c:184 vlan_newlink+0x44c/0x610 net/8021q/vlan_netlink.c:195 __rtnl_newlink net/core/rtnetlink.c:3524 [inline] rtnl_newlink+0x114c/0x17d0 net/core/rtnetlink.c:3572 rtnetlink_rcv_msg+0x9b9/0xe60 net/core/rtnetlink.c:5650 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2489 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x77c/0x920 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x8ab/0xbc0 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x5a2/0x8c0 net/socket.c:2436 ___sys_sendmsg+0x1f0/0x260 net/socket.c:2490 __sys_sendmsg net/socket.c:2519 [inline] __do_sys_sendmsg net/socket.c:2528 [inline] __se_sys_sendmsg+0x190/0x250 net/socket.c:2526 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Second to last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 insert_work+0x54/0x3d0 kernel/workqueue.c:1366 __queue_work+0x9c5/0xd50 kernel/workqueue.c:1532 queue_work_on+0x11d/0x1d0 kernel/workqueue.c:1559 inet6addr_event+0x9c/0xc0 drivers/infiniband/core/roce_gid_mgmt.c:883 notifier_call_chain kernel/notifier.c:83 [inline] atomic_notifier_call_chain+0x15d/0x280 kernel/notifier.c:198 ipv6_add_addr+0xb30/0xde0 net/ipv6/addrconf.c:1182 inet6_addr_add+0x43a/0x9c0 net/ipv6/addrconf.c:2999 inet6_rtm_newaddr+0x5d7/0x840 net/ipv6/addrconf.c:4957 rtnetlink_rcv_msg+0x9b9/0xe60 net/core/rtnetlink.c:5650 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2489 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x77c/0x920 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x8ab/0xbc0 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x423/0x580 net/socket.c:2063 __do_sys_sendto net/socket.c:2075 [inline] __se_sys_sendto net/socket.c:2071 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2071 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff8880295c4f00 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 8 bytes inside of 192-byte region [ffff8880295c4f00, ffff8880295c4fc0) The buggy address belongs to the page: page:ffffea0000a57100 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x295c4 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 0000000200000001 ffff888016841a00 raw: 0000000000000000 0000000000100010 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, ts 14844830305, free_ts 0 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5474 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2031 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc_trace+0x1a5/0x2a0 mm/slub.c:3245 kmalloc include/linux/slab.h:604 [inline] kzalloc include/linux/slab.h:735 [inline] call_usermodehelper_setup+0x8a/0x260 kernel/umh.c:365 kobject_uevent_env+0x65e/0x890 lib/kobject_uevent.c:629 device_add+0x91c/0xfb0 drivers/base/core.c:3393 __video_register_device+0x3843/0x4670 drivers/media/v4l2-core/v4l2-dev.c:1037 video_register_device include/media/v4l2-dev.h:384 [inline] vivid_create_devnodes+0x1397/0x2cd0 drivers/media/test-drivers/vivid/vivid-core.c:1615 vivid_create_instance drivers/media/test-drivers/vivid/vivid-core.c:1976 [inline] vivid_probe+0x50a1/0x6950 drivers/media/test-drivers/vivid/vivid-core.c:2031 platform_probe+0x137/0x1c0 drivers/base/platform.c:1391 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x284/0xc80 drivers/base/dd.c:595 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:755 driver_probe_device+0x4f/0x420 drivers/base/dd.c:785 page_owner free stack trace missing Memory state around the buggy address: ffff8880295c4e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880295c4e80: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880295c4f00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880295c4f80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880295c5000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================
Time | Kernel | Commit | Syzkaller | Config | Log | Report | Syz repro | C repro | VM info | Assets (help?) | Manager | Title |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2025/06/07 12:56 | linux-5.15.y | 1c700860e8bc | 4826c28e | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-5-15-kasan | KASAN: use-after-free Read in ax25_addr_ax25dev | ||
2025/05/27 12:05 | linux-5.15.y | 98f47d0e9b8c | 874a1386 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-5-15-kasan-arm64 | KASAN: use-after-free Read in ax25_addr_ax25dev | ||
2025/05/23 04:38 | linux-5.15.y | 98f47d0e9b8c | fa44301a | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-5-15-kasan-arm64 | KASAN: use-after-free Read in ax25_addr_ax25dev | ||
2025/03/31 04:40 | linux-5.15.y | 0c935c049b5c | d3999433 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-5-15-kasan-arm64 | KASAN: use-after-free Read in ax25_addr_ax25dev | ||
2025/02/22 03:25 | linux-5.15.y | c16c81c81336 | d34966d1 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-5-15-kasan-arm64 | KASAN: use-after-free Read in ax25_addr_ax25dev | ||
2025/01/31 08:06 | linux-5.15.y | 003148680b79 | 4c6ac32f | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-5-15-kasan-arm64 | KASAN: use-after-free Read in ax25_addr_ax25dev | ||
2025/01/31 08:06 | linux-5.15.y | 003148680b79 | 4c6ac32f | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-5-15-kasan-arm64 | KASAN: use-after-free Read in ax25_addr_ax25dev | ||
2025/01/31 08:40 | linux-5.15.y | 003148680b79 | 4c6ac32f | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-5-15-kasan-arm64 | BUG: unable to handle kernel paging request in ax25_addr_ax25dev |