syzbot


KASAN: slab-use-after-free Read in ax25_heartbeat_expiry

Status: closed as invalid on 2026/06/03 10:11
Subsystems: hams
Labels: prio:high
[Documentation on labels]
First crash: 152d, last: 44d
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision Error
413070a6-c31f-4f1d-97bf-0a6bd8eb6910 assessment-security DenialOfService: ✅ Exploitable: ✅ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ KASAN: slab-use-after-free Read in ax25_heartbeat_expiry 2026/05/18 01:20 2026/05/18 01:20 2026/05/18 02:02 de5aae85e5f28e2fa1c7deefcc24fe286abe5140
fb0e5cfe-84b4-4dc8-8497-61ae63da4b9c repro KASAN: slab-use-after-free Read in ax25_heartbeat_expiry 2026/03/08 08:34 2026/03/08 08:34 2026/03/08 08:44 31e9c887f7dc24e04b3ca70d0d54fc34141844b0
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 KASAN: use-after-free Read in ax25_heartbeat_expiry (2) 19 30 77d 134d 0/3 auto-obsoleted due to no activity on 2026/06/02 22:44
linux-5.15 KASAN: use-after-free Read in ax25_heartbeat_expiry 19 5 322d 474d 0/3 auto-obsoleted due to no activity on 2025/10/31 01:02
linux-6.1 KASAN: use-after-free Read in ax25_heartbeat_expiry 19 2 116d 215d 0/3 auto-obsoleted due to no activity on 2026/05/25 06:31

Sample crash report:
==================================================================
BUG: KASAN: slab-use-after-free in ax25_heartbeat_expiry+0x115/0x140 net/ax25/ax25_timer.c:127
Read of size 4 at addr ffff88802a70b060 by task ktimers/1/29

CPU: 1 UID: 0 PID: 29 Comm: ktimers/1 Tainted: G             L      syzkaller #0 PREEMPT_{RT,(full)} 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
Call Trace:
 <TASK>
 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
 ax25_heartbeat_expiry+0x115/0x140 net/ax25/ax25_timer.c:127
 call_timer_fn+0x192/0x5e0 kernel/time/timer.c:1748
 expire_timers kernel/time/timer.c:1799 [inline]
 __run_timers kernel/time/timer.c:2374 [inline]
 __run_timer_base+0x6a3/0x9f0 kernel/time/timer.c:2386
 run_timer_base kernel/time/timer.c:2395 [inline]
 run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2405
 handle_softirqs+0x1de/0x6d0 kernel/softirq.c:622
 __do_softirq kernel/softirq.c:656 [inline]
 run_ktimerd+0x69/0x100 kernel/softirq.c:1151
 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Allocated by task 6086:
 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+0x3a6/0x690 mm/slub.c:5380
 kmalloc_noprof include/linux/slab.h:950 [inline]
 kzalloc_noprof include/linux/slab.h:1188 [inline]
 ax25_dev_device_up+0x54/0x610 net/ax25/ax25_dev.c:57
 ax25_device_event+0x11b/0x930 net/ax25/af_ax25.c:143
 notifier_call_chain+0x1ad/0x3d0 kernel/notifier.c:85
 call_netdevice_notifiers_extack net/core/dev.c:2287 [inline]
 call_netdevice_notifiers net/core/dev.c:2301 [inline]
 __dev_notify_flags+0x1a9/0x310 net/core/dev.c:9820
 netif_change_flags+0xe8/0x1a0 net/core/dev.c:9849
 dev_change_flags+0x130/0x260 net/core/dev_api.c:68
 dev_ioctl+0x7b4/0x1150 net/core/dev_ioctl.c:814
 sock_do_ioctl+0x23e/0x320 net/socket.c:1333
 sock_ioctl+0x5c9/0x7f0 net/socket.c:1440
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xff/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 1357:
 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:2685 [inline]
 slab_free_freelist_hook mm/slub.c:2714 [inline]
 slab_free_bulk mm/slub.c:6202 [inline]
 kmem_cache_free_bulk+0x313/0x1220 mm/slub.c:7006
 kfree_bulk include/linux/slab.h:823 [inline]
 kvfree_rcu_bulk+0xe5/0x1b0 mm/slab_common.c:1502
 kfree_rcu_work+0xed/0x170 mm/slab_common.c:1580
 process_one_work kernel/workqueue.c:3288 [inline]
 process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3371
 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3452
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57
 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556
 kvfree_call_rcu+0x90/0x3c0 mm/slab_common.c:1970
 ax25_device_event+0x88b/0x930 net/ax25/af_ax25.c:148
 notifier_call_chain+0x1ad/0x3d0 kernel/notifier.c:85
 call_netdevice_notifiers_extack net/core/dev.c:2287 [inline]
 call_netdevice_notifiers net/core/dev.c:2301 [inline]
 __dev_notify_flags+0x16d/0x310 net/core/dev.c:9822
 netif_change_flags+0xe8/0x1a0 net/core/dev.c:9849
 dev_change_flags+0x130/0x260 net/core/dev_api.c:68
 dev_ioctl+0x7b4/0x1150 net/core/dev_ioctl.c:814
 sock_do_ioctl+0x23e/0x320 net/socket.c:1333
 sock_ioctl+0x5c9/0x7f0 net/socket.c:1440
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xff/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88802a70b000
 which belongs to the cache kmalloc-256 of size 256
The buggy address is located 96 bytes inside of
 freed 256-byte region [ffff88802a70b000, ffff88802a70b100)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2a70a
head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x80000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000040 ffff88813fe19b40 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000
head: 0080000000000040 ffff88813fe19b40 dead000000000100 dead000000000122
head: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000
head: 0080000000000001 ffffea0000a9c281 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000002
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 40, tgid 40 (kworker/u8:2), ts 15618336246, free_ts 0
 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+0x28bb/0x2950 mm/page_alloc.c:3962
 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5250
 alloc_slab_page mm/slub.c:3292 [inline]
 allocate_slab+0x77/0x660 mm/slub.c:3481
 new_slab mm/slub.c:3539 [inline]
 refill_objects+0x334/0x3c0 mm/slub.c:7175
 refill_sheaf mm/slub.c:2812 [inline]
 __pcs_replace_empty_main+0x35c/0x710 mm/slub.c:4615
 alloc_from_pcs mm/slub.c:4717 [inline]
 slab_alloc_node mm/slub.c:4851 [inline]
 __kmalloc_cache_noprof+0x44e/0x690 mm/slub.c:5375
 kmalloc_noprof include/linux/slab.h:950 [inline]
 scsi_probe_and_add_lun+0x2f8/0x4830 drivers/scsi/scsi_scan.c:1225
 __scsi_scan_target+0x1f0/0xe10 drivers/scsi/scsi_scan.c:1786
 scsi_scan_channel drivers/scsi/scsi_scan.c:1874 [inline]
 scsi_scan_host_selected+0x375/0x690 drivers/scsi/scsi_scan.c:1903
 do_scsi_scan_host drivers/scsi/scsi_scan.c:2042 [inline]
 do_scan_async+0x124/0x760 drivers/scsi/scsi_scan.c:2052
 async_run_entry_fn+0xa8/0x440 kernel/async.c:129
 process_one_work kernel/workqueue.c:3288 [inline]
 process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3371
 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3452
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88802a70af00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88802a70af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88802a70b000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                       ^
 ffff88802a70b080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88802a70b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/04/15 07:22 upstream 508fed679541 e2e976a8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/04/26 22:53 net-next e728258debd5 9c2d0995 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/04/26 05:51 net-next e728258debd5 9c2d0995 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/04/25 17:14 net-next e728258debd5 9c2d0995 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/04/25 06:06 net-next e728258debd5 9c2d0995 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/04/23 21:25 net-next 1f5ffc672165 4c3406dc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/04/22 11:16 net-next 1f5ffc672165 4595e353 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/04/11 05:43 net-next 02468f3492bf 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/03/26 04:53 net-next d1e59a469737 c6143aac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/03/02 11:38 net-next 01857fc712f6 43249bac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/02/28 08:26 net-next 1e08faf996c3 43249bac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/02/26 12:14 net-next 51432958b565 e0f78d93 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/02/20 06:59 net-next 8bf22c33e7a1 17d780d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/02/18 11:45 net-next 37a93dd5c49b 39751c21 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/03/31 17:05 linux-next 36ece9697e89 aeea1c72 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/03/22 06:31 linux-next 785f0eb2f85d 5b92003d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/01/27 14:43 linux-next 615aad0f61e0 9a514c2f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
2026/01/09 14:50 linux-next f417b7ffcbef d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in ax25_heartbeat_expiry
* Struck through repros no longer work on HEAD.