================================================================== BUG: KASAN: use-after-free in __mutex_waiter_is_first kernel/locking/mutex.c:197 [inline] BUG: KASAN: use-after-free in __mutex_lock_common+0xae8/0x1f38 kernel/locking/mutex.c:681 Read of size 8 at addr ffff0000f0770060 by task khidpd_04580058/4618 CPU: 1 PID: 4618 Comm: khidpd_04580058 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0x100 mm/kasan/report.c:524 __asan_report_load8_noabort+0x2c/0x38 mm/kasan/report_generic.c:351 __mutex_waiter_is_first kernel/locking/mutex.c:197 [inline] __mutex_lock_common+0xae8/0x1f38 kernel/locking/mutex.c:681 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x38/0x44 kernel/locking/mutex.c:799 l2cap_unregister_user+0x70/0x18c net/bluetooth/l2cap_core.c:1895 hidp_session_thread+0x3d0/0x46c net/bluetooth/hidp/core.c:1305 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 The buggy address belongs to the physical page: page:000000000269bf3b refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x130770 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000f076ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000f076ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000f0770000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff0000f0770080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000f0770100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== list_del corruption. prev->next should be ffff800021767c00, but was 0000000000000000. (prev=ffff0000f0770060) ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:61! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 4618 Comm: khidpd_04580058 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : __list_del_entry_valid+0x13c/0x158 lib/list_debug.c:59 lr : __list_del_entry_valid+0x13c/0x158 lib/list_debug.c:59 sp : ffff800021767b10 x29: ffff800021767b10 x28: dfff800000000000 x27: ffff7000042ecf7c x26: 1ffff0000384970c x25: ffff80001c24b000 x24: 0000000000000000 x23: ffff0000c9393780 x22: dfff800000000000 x21: ffff0000f0770060 x20: ffff0000f0770060 x19: ffff800021767c00 x18: ffff800011a5bd40 x17: 20747562202c3030 x16: ffff800008042d90 x15: 0000000000000000 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000ff0100 x11: ff0080000830b6e8 x10: 0000000000000000 x9 : bc2a9941c045cd00 x8 : bc2a9941c045cd00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000217675d8 x4 : ffff800015134e00 x3 : ffff80000a84818c x2 : ffff00019f75ed10 x1 : 0000000000000002 x0 : 000000000000006d Call trace: __list_del_entry_valid+0x13c/0x158 lib/list_debug.c:59 __list_del_entry include/linux/list.h:134 [inline] list_del include/linux/list.h:148 [inline] __mutex_remove_waiter kernel/locking/mutex.c:218 [inline] __mutex_lock_common+0xd04/0x1f38 kernel/locking/mutex.c:715 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x38/0x44 kernel/locking/mutex.c:799 l2cap_unregister_user+0x70/0x18c net/bluetooth/l2cap_core.c:1895 hidp_session_thread+0x3d0/0x46c net/bluetooth/hidp/core.c:1305 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 Code: 91068000 aa1303e1 aa1503e3 95be2c9e (d4210000) ---[ end trace 0000000000000000 ]---