syzbot


WARNING: refcount bug in bnep_session (2)

Status: moderation: reported on 2026/05/15 12:38
Subsystems: kernel
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+69778c8531605ad81b57@syzkaller.appspotmail.com
First crash: 51d, last: 51d
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision Error
8ebfea46-90bb-4e5d-a07d-c0145a2fa52a assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ✅ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ WARNING: refcount bug in bnep_session (2) 2026/05/31 16:00 2026/05/31 16:00 2026/05/31 16:53 6b4a844333e83556da95d61d7f207e7ef5cd4bc6

			
		
3528dd6c-522d-4589-b276-995a65ce1784 assessment-security 💥 WARNING: refcount bug in bnep_session (2) 2026/05/15 05:25 2026/05/15 05:25 2026/05/15 05:27 6ccb967e465e832a7bfd7a116ad00d52a0923a5d
failed to run ["make" "KERNELVERSION=syzkaller" "KERNELRELEASE=syzkaller" "LOCALVERSION=-syzkaller" "-j" "32" "ARCH=x86_64" "CC=ccache clang" "LD=ld.lld" "O=/app/workdir/cache/build/2054c2e912eb67edb9...
truncated to first 200 bytes; open job for full error
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: refcount bug in bnep_session kernel 13 149 163d 581d 0/29 auto-obsoleted due to no activity on 2026/03/30 12:30

Sample crash report:
------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: lib/refcount.c:28 at refcount_warn_saturate+0xf4/0x130 lib/refcount.c:28, CPU#1: kbnepd bnep0/6521
Modules linked in:
CPU: 1 UID: 0 PID: 6521 Comm: kbnepd bnep0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
RIP: 0010:refcount_warn_saturate+0xf4/0x130 lib/refcount.c:28
Code: cc e8 30 3b 0f fd 48 8d 3d 89 d1 e8 0b 67 48 0f b9 3a e8 1f 3b 0f fd 5b 5d e9 58 4f 94 06 e8 13 3b 0f fd 48 8d 3d 7c d1 e8 0b <67> 48 0f b9 3a e8 02 3b 0f fd 5b 5d c3 cc cc cc cc e8 f6 3a 0f fd
RSP: 0018:ffffc900059ff958 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888052bcdc78 RCX: ffffffff84f96b3b
RDX: ffff888020be8000 RSI: ffffffff84f96bcd RDI: ffffffff90e23d50
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000004
R10: 0000000000000003 R11: 0000000000000000 R12: ffff88802b509000
R13: ffff888052bcdc78 R14: ffffffff86352db0 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff888124472000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fea969ea4c0 CR3: 000000005c73e000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __refcount_sub_and_test include/linux/refcount.h:400 [inline]
 __refcount_dec_and_test include/linux/refcount.h:432 [inline]
 refcount_dec_and_test include/linux/refcount.h:450 [inline]
 kref_put include/linux/kref.h:64 [inline]
 klist_dec_and_del lib/klist.c:206 [inline]
 klist_put+0x18a/0x1d0 lib/klist.c:217
 device_del+0x1b8/0x9b0 drivers/base/core.c:3872
 unregister_netdevice_many_notify+0x179e/0x24f0 net/core/dev.c:12453
 unregister_netdevice_many net/core/dev.c:12481 [inline]
 unregister_netdevice_queue net/core/dev.c:12291 [inline]
 unregister_netdevice_queue+0x30b/0x3c0 net/core/dev.c:12281
 unregister_netdevice include/linux/netdevice.h:3444 [inline]
 unregister_netdev+0x1f/0x60 net/core/dev.c:12499
 bnep_session+0x223f/0x2d90 net/bluetooth/bnep/core.c:532
 kthread+0x370/0x450 kernel/kthread.c:436
 ret_from_fork+0x72b/0xd50 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
----------------
Code disassembly (best guess):
   0:	cc                   	int3
   1:	e8 30 3b 0f fd       	call   0xfd0f3b36
   6:	48 8d 3d 89 d1 e8 0b 	lea    0xbe8d189(%rip),%rdi        # 0xbe8d196
   d:	67 48 0f b9 3a       	ud1    (%edx),%rdi
  12:	e8 1f 3b 0f fd       	call   0xfd0f3b36
  17:	5b                   	pop    %rbx
  18:	5d                   	pop    %rbp
  19:	e9 58 4f 94 06       	jmp    0x6944f76
  1e:	e8 13 3b 0f fd       	call   0xfd0f3b36
  23:	48 8d 3d 7c d1 e8 0b 	lea    0xbe8d17c(%rip),%rdi        # 0xbe8d1a6
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	e8 02 3b 0f fd       	call   0xfd0f3b36
  34:	5b                   	pop    %rbx
  35:	5d                   	pop    %rbp
  36:	c3                   	ret
  37:	cc                   	int3
  38:	cc                   	int3
  39:	cc                   	int3
  3a:	cc                   	int3
  3b:	e8 f6 3a 0f fd       	call   0xfd0f3b36

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/05/11 12:31 upstream 5d6919055dec e6eb7c0b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: refcount bug in bnep_session
* Struck through repros no longer work on HEAD.