WARNING: refcount bug in vub300_inactivity_timer_expired

Status: moderation: reported on 2026/09/24 04:50
Subsystems: mmc
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+cef9193dd55edb831438@syzkaller.appspotmail.com
Fix commit: mmc: vub300: Remove the driver for the obsolete HW
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci-upstream-rust-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu-native-arm64-kvm ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root]
First crash: 58d, last: 34d
▶ ▼ ✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision
139d1f6e repro 💥 WARNING: refcount bug in vub300_inactivity_timer_expired 2026/09/24 13:26 2026/09/24 16:53 2026/09/24 17:52 3c3cdf19
7750a4c2 assessment-security DenialOfService: ✅ Exploitable: ✅ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ WARNING: refcount bug in vub300_inactivity_timer_expired 2026/09/22 01:14 2026/09/22 01:14 2026/09/22 02:08 853b104b

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: kworker/1:1H/2012
Modules linked in:
CPU: 1 UID: 0 PID: 2012 Comm: kworker/1:1H Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
Workqueue: events_highpri snd_vmidi_output_work
RIP: 0010:refcount_warn_saturate+0xf4/0x130 lib/refcount.c:28
Code: cc e8 20 d2 df fc 48 8d 3d d9 b2 23 0d 67 48 0f b9 3a e8 0f d2 df fc 5b 5d e9 18 33 ab 06 e8 03 d2 df fc 48 8d 3d cc b2 23 0d <67> 48 0f b9 3a e8 f2 d1 df fc 5b 5d c3 cc cc cc cc e8 e6 d1 df fc
RSP: 0018:ffffc90000a18c18 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888030594910 RCX: 0000000000000101
RDX: ffff88802e2ca580 RSI: ffffffff852c848d RDI: ffffffff92503760
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000004
R10: 0000000000000003 R11: 0000000000000001 R12: ffff888030594910
R13: 0000000000000101 R14: 1ffff9200014318d R15: ffffffff88cc36e0
FS:  0000000000000000(0000) GS:ffff888122a46000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000001e000 CR3: 00000000593ad000 CR4: 00000000003526f0
Call Trace:
 <IRQ>
 __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]
 vub300_inactivity_timer_expired drivers/mmc/host/vub300.c:747 [inline]
 vub300_inactivity_timer_expired+0x446/0x550 drivers/mmc/host/vub300.c:742
 call_timer_fn+0x198/0x5f0 kernel/time/timer.c:1748
 expire_timers kernel/time/timer.c:1799 [inline]
 __run_timers+0x757/0xb00 kernel/time/timer.c:2374
 __run_timer_base kernel/time/timer.c:2386 [inline]
 __run_timer_base kernel/time/timer.c:2378 [inline]
 run_timer_base+0x114/0x190 kernel/time/timer.c:2395
 run_timer_softirq+0x1a/0x50 kernel/time/timer.c:2405
 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645
 __do_softirq kernel/softirq.c:679 [inline]
 invoke_softirq kernel/softirq.c:519 [inline]
 __irq_exit_rcu+0x16a/0x210 kernel/softirq.c:758
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
 sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:221
Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 b6 1a 10 f6 48 89 df e8 3e 71 10 f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 <bf> 01 00 00 00 e8 55 54 ff f5 65 48 83 3d b4 33 b6 09 00 74 16 5b
RSP: 0018:ffffc90006c97b18 EFLAGS: 00000246
RAX: 0000000000000006 RBX: ffff8880353b3f38 RCX: 0000000000000040
RDX: 0000000000000001 RSI: ffffffff8e3e346f RDI: ffffffff8c625580
RBP: 0000000000000293 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000293
R13: ffff8880353b3f38 R14: 0000000000000001 R15: ffff88803543f800
 spin_unlock_irqrestore include/linux/spinlock.h:425 [inline]
 class_spinlock_irqsave_destructor include/linux/spinlock.h:642 [inline]
 snd_rawmidi_transmit+0xf1/0x130 sound/core/rawmidi.c:1489
 snd_vmidi_output_work+0x111/0x390 sound/core/seq/seq_virmidi.c:152
 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
 process_scheduled_works kernel/workqueue.c:3479 [inline]
 worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 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 20 d2 df fc       	call   0xfcdfd226
   6:	48 8d 3d d9 b2 23 0d 	lea    0xd23b2d9(%rip),%rdi        # 0xd23b2e6
   d:	67 48 0f b9 3a       	ud1    (%edx),%rdi
  12:	e8 0f d2 df fc       	call   0xfcdfd226
  17:	5b                   	pop    %rbx
  18:	5d                   	pop    %rbp
  19:	e9 18 33 ab 06       	jmp    0x6ab3336
  1e:	e8 03 d2 df fc       	call   0xfcdfd226
  23:	48 8d 3d cc b2 23 0d 	lea    0xd23b2cc(%rip),%rdi        # 0xd23b2f6
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	e8 f2 d1 df fc       	call   0xfcdfd226
  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 e6 d1 df fc       	call   0xfcdfd226

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/14 11:17 upstream ca3e345926b0 7321cd29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: refcount bug in vub300_inactivity_timer_expired
2026/09/20 04:42 upstream 40288c9206c1 853b104b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: refcount bug in vub300_inactivity_timer_expired
* Struck through repros no longer work on HEAD.