syzbot


KASAN: slab-use-after-free Read in process_one_work (2)

Status: upstream: reported on 2026/04/22 13:34
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+b6a688ec97f423efb8ab@syzkaller.appspotmail.com
First crash: 29d, last: 9h12m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bluetooth] KASAN: slab-use-after-free Read in process_one_work (2) 0 (1) 2026/04/22 13:34
Similar bugs (10)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-use-after-free Read in process_one_work kernel 19 2 981d 984d 0/29 auto-obsoleted due to no activity on 2023/12/08 17:35
android-5-15 KASAN: use-after-free Read in process_one_work missing-backport origin:downstream 19 C unreliable 812 152d 1294d 0/2 auto-obsoleted due to no activity on 2026/02/24 16:04
android-54 KASAN: use-after-free Read in process_one_work (2) 19 1 401d 401d 0/2 auto-obsoleted due to no activity on 2025/07/10 20:36
upstream KMSAN: kernel-infoleak in copyout (2) net 17 C 6723 1074d 2243d 22/29 fixed on 2023/06/08 14:41
android-5-10 BUG: corrupted list in process_one_work 19 C error done 35 300d 1498d 2/2 upstream: reported C repro on 2022/04/10 06:05
upstream KASAN: global-out-of-bounds Read in process_one_work kernel 17 1 732d 728d 0/29 auto-obsoleted due to no activity on 2024/08/14 00:54
upstream general protection fault in process_one_work (2) kernel 2 1 1763d 1759d 0/29 auto-closed as invalid on 2021/09/17 12:34
upstream KASAN: slab-out-of-bounds Read in process_one_work mm 17 1 1298d 1294d 0/29 auto-obsoleted due to no activity on 2023/01/25 20:05
android-6-1 KASAN: use-after-free Read in process_one_work origin:upstream missing-backport 19 C error 1040 114d 1092d 0/2 auto-obsoleted due to no activity on 2026/04/04 00:16
android-54 KASAN: use-after-free Read in process_one_work 19 1 1154d 1154d 0/2 auto-obsoleted due to no activity on 2023/07/18 18:33

Sample crash report:
==================================================================
BUG: KASAN: slab-use-after-free in __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline]
BUG: KASAN: slab-use-after-free in _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:166
Read of size 1 at addr ffff888065620330 by task kworker/1:3/5613

CPU: 1 UID: 0 PID: 5613 Comm: kworker/1:3 Tainted: G             L      syzkaller #0 PREEMPT_{RT,(full)} 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Workqueue: events l2cap_chan_timeout
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description+0x55/0x1e0 mm/kasan/report.c:378
 print_report+0x58/0x70 mm/kasan/report.c:482
 kasan_report+0x117/0x150 mm/kasan/report.c:595
 __kasan_check_byte+0x2a/0x40 mm/kasan/common.c:574
 kasan_check_byte include/linux/kasan.h:402 [inline]
 lock_acquire+0x84/0x350 kernel/locking/lockdep.c:5844
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline]
 _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:166
 rt_mutex_slowunlock+0xb8/0x300 kernel/locking/rtmutex.c:1430
 process_one_work+0x98b/0x1630 kernel/workqueue.c:3306
 process_scheduled_works kernel/workqueue.c:3389 [inline]
 worker_thread+0xb49/0x1140 kernel/workqueue.c:3470
 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 17989:
 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:5432
 kmalloc_noprof include/linux/slab.h:950 [inline]
 kzalloc_noprof include/linux/slab.h:1188 [inline]
 l2cap_conn_add+0xaa/0x970 net/bluetooth/l2cap_core.c:7001
 l2cap_chan_connect+0x6a8/0xed0 net/bluetooth/l2cap_core.c:7192
 l2cap_sock_connect+0x5ea/0x7f0 net/bluetooth/l2cap_sock.c:256
 kernel_connect+0x141/0x1c0 net/socket.c:3758
 rfcomm_session_create net/bluetooth/rfcomm/core.c:811 [inline]
 __rfcomm_dlc_open net/bluetooth/rfcomm/core.c:388 [inline]
 rfcomm_dlc_open+0x61d/0x1210 net/bluetooth/rfcomm/core.c:431
 rfcomm_sock_connect+0x2f7/0x640 net/bluetooth/rfcomm/sock.c:410
 __sys_connect_file net/socket.c:2163 [inline]
 __sys_connect+0x315/0x450 net/socket.c:2182
 __do_sys_connect net/socket.c:2188 [inline]
 __se_sys_connect net/socket.c:2185 [inline]
 __x64_sys_connect+0x7a/0x90 net/socket.c:2185
 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 17771:
 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:2700 [inline]
 slab_free mm/slub.c:6291 [inline]
 kfree+0x1c5/0x6c0 mm/slub.c:6606
 hci_disconn_cfm include/net/bluetooth/hci_core.h:2154 [inline]
 hci_conn_hash_flush+0x10d/0x260 net/bluetooth/hci_conn.c:2734
 hci_dev_close_sync+0x821/0x10e0 net/bluetooth/hci_sync.c:5368
 hci_dev_do_close net/bluetooth/hci_core.c:502 [inline]
 hci_unregister_dev+0x21a/0x5a0 net/bluetooth/hci_core.c:2716
 vhci_release+0x155/0x1b0 drivers/bluetooth/hci_vhci.c:690
 __fput+0x461/0xa70 fs/file_table.c:510
 task_work_run+0x1d9/0x270 kernel/task_work.c:233
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0x70f/0x22c0 kernel/exit.c:975
 do_group_exit+0x21b/0x2d0 kernel/exit.c:1117
 get_signal+0x1284/0x1330 kernel/signal.c:3037
 arch_do_signal_or_restart+0xbc/0x840 arch/x86/kernel/signal.c:337
 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline]
 exit_to_user_mode_loop+0x8c/0x4d0 kernel/entry/common.c:98
 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
 syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline]
 do_syscall_64+0x33e/0xf80 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888065620000
 which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 816 bytes inside of
 freed 1024-byte region [ffff888065620000, ffff888065620400)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x65620
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x80000000000040(head|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000040 ffff88813fe16dc0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000
head: 0080000000000040 ffff88813fe16dc0 dead000000000100 dead000000000122
head: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000
head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 16, tgid 16 (ktimers/0), ts 97658278278, free_ts 97645181530
 set_page_owner include/linux/page_owner.h:32 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1861
 prep_new_page mm/page_alloc.c:1869 [inline]
 get_page_from_freelist+0x27d6/0x2850 mm/page_alloc.c:3949
 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5292
 alloc_slab_page mm/slub.c:3289 [inline]
 allocate_slab+0x74/0x5e0 mm/slub.c:3404
 new_slab mm/slub.c:3447 [inline]
 refill_objects+0x33c/0x3d0 mm/slub.c:7319
 refill_sheaf mm/slub.c:2827 [inline]
 __pcs_replace_empty_main+0x373/0x720 mm/slub.c:4664
 alloc_from_pcs mm/slub.c:4762 [inline]
 slab_alloc_node mm/slub.c:4896 [inline]
 __do_kmalloc_node mm/slub.c:5307 [inline]
 __kmalloc_noprof+0x530/0x7b0 mm/slub.c:5320
 kmalloc_noprof include/linux/slab.h:954 [inline]
 kzalloc_noprof include/linux/slab.h:1188 [inline]
 ieee802_11_parse_elems_full+0x14b/0x2bd0 net/mac80211/parse.c:1051
 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2506 [inline]
 ieee80211_inform_bss+0x161/0x1160 net/mac80211/scan.c:79
 rdev_inform_bss net/wireless/rdev-ops.h:418 [inline]
 cfg80211_inform_single_bss_data+0xd2f/0x1b80 net/wireless/scan.c:2372
 cfg80211_inform_bss_data+0x25d/0x3c40 net/wireless/scan.c:3226
 cfg80211_inform_bss_frame_data+0x3c7/0x730 net/wireless/scan.c:3317
 ieee80211_bss_info_update+0x794/0xa40 net/mac80211/scan.c:230
 ieee80211_scan_rx+0x552/0xa40 net/mac80211/scan.c:364
 __ieee80211_rx_handle_packet net/mac80211/rx.c:5368 [inline]
 ieee80211_rx_list+0x2a2f/0x37a0 net/mac80211/rx.c:5653
 ieee80211_rx_napi+0x1b1/0x3e0 net/mac80211/rx.c:5676
page last free pid 5905 tgid 5903 stack trace:
 reset_page_owner include/linux/page_owner.h:25 [inline]
 __free_pages_prepare mm/page_alloc.c:1405 [inline]
 __free_frozen_pages+0x1075/0x11b0 mm/page_alloc.c:2946
 bpf_check+0x3b98/0x4a70 kernel/bpf/verifier.c:19591
 bpf_prog_load+0x1406/0x1a10 kernel/bpf/syscall.c:3082
 __sys_bpf+0x618/0x950 kernel/bpf/syscall.c:6253
 __do_sys_bpf kernel/bpf/syscall.c:6366 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:6364 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6364
 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

Memory state around the buggy address:
 ffff888065620200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888065620280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888065620300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                     ^
 ffff888065620380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888065620400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/17 16:12 linux-next e98d21c170b0 de5aae85 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in process_one_work
2026/04/18 10:31 linux-next c7275b05bc42 303e2802 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in process_one_work
* Struck through repros no longer work on HEAD.