================================================================== BUG: KASAN: slab-use-after-free in __raw_spin_lock_bh include/linux/spinlock_api_smp.h:150 [inline] BUG: KASAN: slab-use-after-free in _raw_spin_lock_bh+0x48/0x60 kernel/locking/spinlock.c:182 Read of size 1 at addr ffff0000f68a15a0 by task kworker/u9:0/50 CPU: 1 UID: 0 PID: 50 Comm: kworker/u9:0 Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/02/2026 Workqueue: hci4 hci_rx_work Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xb0/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0x8c/0xc4 mm/kasan/report.c:595 __kasan_check_byte+0x3c/0x54 mm/kasan/common.c:574 kasan_check_byte include/linux/kasan.h:402 [inline] lock_acquire+0xa4/0x364 kernel/locking/lockdep.c:5842 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:150 [inline] _raw_spin_lock_bh+0x48/0x60 kernel/locking/spinlock.c:182 spin_lock_bh include/linux/spinlock.h:348 [inline] bt_accept_unlink+0x5c/0x28c net/bluetooth/af_bluetooth.c:265 l2cap_sock_teardown_cb+0x148/0x38c net/bluetooth/l2cap_sock.c:1682 l2cap_chan_del+0xb4/0x48c net/bluetooth/l2cap_core.c:658 l2cap_conn_del+0x2c8/0x450 net/bluetooth/l2cap_core.c:1804 l2cap_disconn_cfm+0x90/0x100 net/bluetooth/l2cap_core.c:7511 hci_disconn_cfm include/net/bluetooth/hci_core.h:2154 [inline] hci_disconn_complete_evt+0x42c/0x858 net/bluetooth/hci_event.c:3465 hci_event_func net/bluetooth/hci_event.c:7796 [inline] hci_event_packet+0x4e0/0x9c8 net/bluetooth/hci_event.c:7847 hci_rx_work+0x2f4/0xd78 net/bluetooth/hci_core.c:4040 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0x788/0x10b8 kernel/workqueue.c:3397 worker_thread+0x798/0xbd0 kernel/workqueue.c:3478 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:842 Allocated by task 10219: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:570 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5296 [inline] __kmalloc_noprof+0x32c/0x6f0 mm/slub.c:5308 kmalloc_noprof include/linux/slab.h:954 [inline] sk_prot_alloc+0xc4/0x1e8 net/core/sock.c:2247 sk_alloc+0x44/0x3ac net/core/sock.c:2303 bt_sock_alloc+0x4c/0x324 net/bluetooth/af_bluetooth.c:151 l2cap_sock_alloc+0x4c/0x170 net/bluetooth/l2cap_sock.c:1973 l2cap_sock_create+0x138/0x210 net/bluetooth/l2cap_sock.c:2015 bt_sock_create+0x14c/0x240 net/bluetooth/af_bluetooth.c:135 __sock_create+0x31c/0x670 net/socket.c:1664 sock_create net/socket.c:1722 [inline] __sys_socket_create+0xc0/0x11c net/socket.c:1759 __sys_socket+0x44/0xec net/socket.c:1806 __do_sys_socket net/socket.c:1820 [inline] __se_sys_socket net/socket.c:1818 [inline] __arm64_sys_socket+0x7c/0x94 net/socket.c:1818 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:736 el0t_64_sync_handler+0x48/0x148 arch/arm64/kernel/entry-common.c:755 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:594 Freed by task 10218: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_free_info+0x58/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x74/0xa4 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2689 [inline] slab_free mm/slub.c:6251 [inline] kfree+0x188/0x690 mm/slub.c:6566 sk_prot_free net/core/sock.c:2286 [inline] __sk_destruct+0x5b0/0x854 net/core/sock.c:2386 sk_destruct+0x8c/0xb8 net/core/sock.c:2414 __sk_free+0x2c4/0x3bc net/core/sock.c:2425 sk_free+0x60/0xc4 net/core/sock.c:2436 sock_put include/net/sock.h:2010 [inline] l2cap_sock_kill+0x12c/0x254 net/bluetooth/l2cap_sock.c:1295 l2cap_sock_release+0x16c/0x208 net/bluetooth/l2cap_sock.c:1468 __sock_release+0xa0/0x1d4 net/socket.c:722 sock_close+0x24/0x38 net/socket.c:1514 __fput+0x338/0x74c fs/file_table.c:510 ____fput+0x20/0x30 fs/file_table.c:538 task_work_run+0x1cc/0x25c kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0x10c/0x17c 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:230 [inline] arm64_syscall_exit_to_user_mode arch/arm64/kernel/entry-common.c:88 [inline] el0_svc+0x18c/0x260 arch/arm64/kernel/entry-common.c:737 el0t_64_sync_handler+0x48/0x148 arch/arm64/kernel/entry-common.c:755 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:594 The buggy address belongs to the object at ffff0000f68a1000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1440 bytes inside of freed 2048-byte region [ffff0000f68a1000, ffff0000f68a1800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff0000f68a0000 pfn:0x1368a0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000000240(workingset|head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000240 ffff0000c0002000 fffffdffc36c4210 fffffdffc36b2810 raw: ffff0000f68a0000 0000000800080005 00000000f5000000 0000000000000000 head: 05ffc00000000240 ffff0000c0002000 fffffdffc36c4210 fffffdffc36b2810 head: ffff0000f68a0000 0000000800080005 00000000f5000000 0000000000000000 head: 05ffc00000000003 fffffdffc3da2801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000f68a1480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000f68a1500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000f68a1580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000f68a1600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000f68a1680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================