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

Status: upstream: reported on 2026/07/06 20:50
Reported-by: syzbot+5505c8db36dba9924cf3@syzkaller.appspotmail.com
First crash: 61d, last: 12d
Similar bugs (10)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-use-after-free Read in bt_accept_unlink bluetooth 19 syz 250 5d10h 685d 0/29 upstream: reported syz repro on 2024/10/21 08:47
linux-6.6 KASAN: slab-use-after-free Read in bt_accept_unlink 19 1 338d 338d 0/2 auto-obsoleted due to no activity on 2026/01/11 02:55
linux-6.1 KASAN: use-after-free Read in bt_accept_unlink 19 1 452d 452d 0/3 auto-obsoleted due to no activity on 2025/09/18 23:51
linux-5.15 BUG: corrupted list in bt_accept_unlink 17 3 474d 515d 0/3 auto-obsoleted due to no activity on 2025/08/27 17:34
linux-5.15 KASAN: use-after-free Read in bt_accept_unlink 19 1 218d 218d 0/3 auto-obsoleted due to no activity on 2026/05/11 03:38
linux-6.1 KASAN: slab-out-of-bounds Read in bt_accept_unlink 19 20 3d04h 252d 0/3 upstream: reported on 2025/12/27 18:50
linux-6.6 KASAN: slab-out-of-bounds Read in bt_accept_unlink 17 1 446d 446d 0/2 auto-obsoleted due to no activity on 2025/09/25 00:09
upstream general protection fault in bt_accept_unlink (2) bluetooth 2 1 2013d 2009d 0/29 auto-closed as invalid on 2021/07/01 06:33
linux-5.15 KASAN: slab-out-of-bounds Read in bt_accept_unlink 17 1 334d 334d 0/3 auto-obsoleted due to no activity on 2026/01/15 10:51
linux-5.15 KASAN: use-after-free Read in bt_accept_unlink (2) 19 1 98d 98d 0/3 upstream: reported on 2026/05/31 07:00

Sample crash report:
Bluetooth: hci0: Opcode 0x0406 failed: -4
Bluetooth: hci0: Opcode 0x0406 failed: -4
Bluetooth: hci2: Opcode 0x0c1a failed: -4
Bluetooth: hci2: Opcode 0x0406 failed: -4
Bluetooth: hci2: Opcode 0x0406 failed: -4
==================================================================
BUG: KASAN: slab-use-after-free in __lock_acquire+0x10c/0x7d80 kernel/locking/lockdep.c:5005
Read of size 8 at addr ffff88805fd32540 by task syz.3.400/7353

CPU: 1 PID: 7353 Comm: syz.3.400 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:364 [inline]
 print_report+0xa8/0x210 mm/kasan/report.c:468
 kasan_report+0x117/0x150 mm/kasan/report.c:581
 __lock_acquire+0x10c/0x7d80 kernel/locking/lockdep.c:5005
 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5754
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline]
 _raw_spin_lock_bh+0x36/0x50 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:356 [inline]
 bt_accept_unlink+0x63/0x290 net/bluetooth/af_bluetooth.c:262
 l2cap_sock_teardown_cb+0x17e/0x450 net/bluetooth/l2cap_sock.c:1667
 l2cap_chan_del+0x92/0x5c0 net/bluetooth/l2cap_core.c:690
 l2cap_conn_del+0x342/0x630 net/bluetooth/l2cap_core.c:1810
 l2cap_connect_cfm+0x11e/0x1160 net/bluetooth/l2cap_core.c:7455
 hci_connect_cfm include/net/bluetooth/hci_core.h:2004 [inline]
 hci_conn_failed+0x1a8/0x2e0 net/bluetooth/hci_conn.c:1258
 hci_abort_conn_sync+0xb98/0xe60 net/bluetooth/hci_sync.c:5734
 hci_disconnect_all_sync+0x1b5/0x350 net/bluetooth/hci_sync.c:5757
 hci_suspend_sync+0x3f5/0xc80 net/bluetooth/hci_sync.c:6240
 hci_suspend_dev+0x223/0x460 net/bluetooth/hci_core.c:2837
 hci_suspend_notifier+0xf2/0x280 net/bluetooth/hci_core.c:2413
 notifier_call_chain+0x18f/0x380 kernel/notifier.c:93
 notifier_call_chain_robust kernel/notifier.c:128 [inline]
 blocking_notifier_call_chain_robust+0x86/0x100 kernel/notifier.c:353
 pm_notifier_call_chain_robust+0x2c/0x60 kernel/power/main.c:131
 snapshot_open+0x1a2/0x280 kernel/power/user.c:77
 misc_open+0x326/0x3a0 drivers/char/misc.c:163
 chrdev_open+0x58c/0x600 fs/char_dev.c:414
 do_dentry_open+0x880/0x14b0 fs/open.c:929
 do_open fs/namei.c:3683 [inline]
 path_openat+0x284f/0x3270 fs/namei.c:3844
 do_filp_open+0x1f2/0x430 fs/namei.c:3871
 do_sys_openat2+0x134/0x1d0 fs/open.c:1422
 do_sys_open fs/open.c:1437 [inline]
 __do_sys_openat fs/open.c:1453 [inline]
 __se_sys_openat fs/open.c:1448 [inline]
 __x64_sys_openat+0x139/0x160 fs/open.c:1448
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f70e759e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f70e8441028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f70e7825fa0 RCX: 00007f70e759e0d9
RDX: 0000000000000440 RSI: 0000200000000000 RDI: ffffffffffffff9c
RBP: 00007f70e7635024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f70e7826038 R14: 00007f70e7825fa0 R15: 00007ffc4b660998
 </TASK>

Allocated by task 7394:
 kasan_save_stack mm/kasan/common.c:46 [inline]
 kasan_set_track+0x4e/0x70 mm/kasan/common.c:53
 ____kasan_kmalloc mm/kasan/common.c:375 [inline]
 __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384
 kasan_kmalloc include/linux/kasan.h:198 [inline]
 __do_kmalloc_node mm/slab_common.c:1007 [inline]
 __kmalloc+0xb7/0x240 mm/slab_common.c:1020
 kmalloc include/linux/slab.h:604 [inline]
 sk_prot_alloc+0xe7/0x210 net/core/sock.c:2100
 sk_alloc+0x3a/0x350 net/core/sock.c:2156
 __netlink_create+0x6c/0x290 net/netlink/af_netlink.c:629
 netlink_create+0x3ee/0x5c0 net/netlink/af_netlink.c:690
 __sock_create+0x49e/0x940 net/socket.c:1571
 sock_create net/socket.c:1627 [inline]
 __sys_socket_create net/socket.c:1664 [inline]
 __sys_socket+0xd7/0x1b0 net/socket.c:1715
 __do_sys_socket net/socket.c:1729 [inline]
 __se_sys_socket net/socket.c:1727 [inline]
 __x64_sys_socket+0x7a/0x90 net/socket.c:1727
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2

Freed by task 7393:
 kasan_save_stack mm/kasan/common.c:46 [inline]
 kasan_set_track+0x4e/0x70 mm/kasan/common.c:53
 kasan_save_free_info+0x28/0x40 mm/kasan/generic.c:522
 ____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237
 kasan_slab_free include/linux/kasan.h:164 [inline]
 slab_free_hook mm/slub.c:1811 [inline]
 slab_free_freelist_hook+0x130/0x1a0 mm/slub.c:1837
 slab_free mm/slub.c:3830 [inline]
 __kmem_cache_free+0xba/0x1f0 mm/slub.c:3843
 sk_prot_free net/core/sock.c:2139 [inline]
 __sk_destruct+0x4e0/0x660 net/core/sock.c:2234
 rcu_do_batch kernel/rcu/tree.c:2194 [inline]
 rcu_core+0x9c1/0x17f0 kernel/rcu/tree.c:2467
 handle_softirqs+0x27d/0x820 kernel/softirq.c:578
 __do_softirq kernel/softirq.c:612 [inline]
 invoke_softirq kernel/softirq.c:452 [inline]
 __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661
 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
 sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46
 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492
 __call_rcu_common kernel/rcu/tree.c:2721 [inline]
 call_rcu+0x153/0x900 kernel/rcu/tree.c:2837
 netlink_release+0x167e/0x1a70 net/netlink/af_netlink.c:801
 __sock_release net/socket.c:659 [inline]
 sock_close+0xa7/0x210 net/socket.c:1421
 __fput+0x221/0x940 fs/file_table.c:418
 __do_sys_close fs/open.c:1574 [inline]
 __se_sys_close+0x15c/0x1e0 fs/open.c:1559
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2

The buggy address belongs to the object at ffff88805fd32000
 which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 1344 bytes inside of
 freed 2048-byte region [ffff88805fd32000, ffff88805fd32800)

The buggy address belongs to the physical page:
page:ffffea00017f4c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5fd30
head:ffffea00017f4c00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017c42000 ffffea0001f69400 dead000000000002
raw: 0000000000000000 0000000080080008 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd28c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5771, tgid 5771 (syz-executor), ts 85936690031, free_ts 29489684999
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1582
 prep_new_page mm/page_alloc.c:1589 [inline]
 get_page_from_freelist+0x2181/0x22a0 mm/page_alloc.c:3221
 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4501
 alloc_slab_page+0x5d/0x180 mm/slub.c:1881
 allocate_slab mm/slub.c:2028 [inline]
 new_slab+0x87/0x2d0 mm/slub.c:2081
 ___slab_alloc+0xc5c/0x12f0 mm/slub.c:3253
 __slab_alloc mm/slub.c:3339 [inline]
 __slab_alloc_node mm/slub.c:3392 [inline]
 slab_alloc_node mm/slub.c:3485 [inline]
 __kmem_cache_alloc_node+0x11f/0x250 mm/slub.c:3534
 __do_kmalloc_node mm/slab_common.c:1006 [inline]
 __kmalloc_node_track_caller+0xa4/0x230 mm/slab_common.c:1027
 kmalloc_reserve+0x116/0x240 net/core/skbuff.c:584
 pskb_expand_head+0x17a/0x1150 net/core/skbuff.c:2101
 netlink_trim+0x180/0x220 net/netlink/af_netlink.c:1301
 netlink_broadcast_filtered+0x6d/0x1130 net/netlink/af_netlink.c:1520
 netlink_broadcast net/netlink/af_netlink.c:1565 [inline]
 nlmsg_multicast include/net/netlink.h:1090 [inline]
 nlmsg_notify+0xe3/0x1a0 net/netlink/af_netlink.c:2593
 register_netdevice+0x1785/0x1ba0 net/core/dev.c:10383
 nsim_init_netdevsim drivers/net/netdevsim/netdev.c:343 [inline]
 nsim_create+0x3be/0x4a0 drivers/net/netdevsim/netdev.c:401
 __nsim_dev_port_add+0x761/0xb90 drivers/net/netdevsim/dev.c:1393
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1182 [inline]
 free_unref_page_prepare+0x7d7/0x8f0 mm/page_alloc.c:2366
 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2459
 free_contig_range+0xa1/0x150 mm/page_alloc.c:6421
 destroy_args+0x7d/0x840 mm/debug_vm_pgtable.c:1015
 debug_vm_pgtable+0x411/0x440 mm/debug_vm_pgtable.c:1400
 do_one_initcall+0x242/0x790 init/main.c:1210
 do_initcall_level+0x13d/0x1f0 init/main.c:1272
 do_initcalls+0x69/0xd0 init/main.c:1288
 kernel_init_freeable+0x3d9/0x560 init/main.c:1525
 kernel_init+0x1d/0x1c0 init/main.c:1415
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293

Memory state around the buggy address:
 ffff88805fd32400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88805fd32480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88805fd32500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                           ^
 ffff88805fd32580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88805fd32600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/25 01:49 linux-6.6.y dc6160265ffc 614e416a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-use-after-free Read in bt_accept_unlink
2026/08/24 13:12 linux-6.6.y dc6160265ffc b55bd4c3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-use-after-free Read in bt_accept_unlink
2026/07/06 20:50 linux-6.6.y da47cbc25466 88b240e4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan KASAN: slab-use-after-free Read in bt_accept_unlink
* Struck through repros no longer work on HEAD.