syzbot


WARNING: refcount bug in dvb_device_open (3)

Status: upstream: reported on 2026/02/17 16:08
Subsystems: media
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+2e428058cafb408fb695@syzkaller.appspotmail.com
First crash: 154d, last: 6d05h
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
1965d065-54e6-4633-842a-59e3428972df assessment-security DenialOfService: ✅ Exploitable: ✅ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ WARNING: refcount bug in dvb_device_open (3) 2026/05/25 20:16 2026/05/25 20:16 2026/05/25 20:18 c69befb30ac10e158cc9d1557b508ee3f0eca1de

			
		
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] media: dvb-core: publish device minors after registration succeeds 1 (1) 2026/06/28 10:00
[syzbot] [media?] WARNING: refcount bug in dvb_device_open (3) 0 (1) 2026/02/17 16:08
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING: refcount bug in dvb_device_open 13 1 159d 159d 0/3 auto-obsoleted due to no activity on 2026/05/20 03:53
linux-5.15 WARNING: refcount bug in dvb_device_open (2) 13 2 20d 22d 0/3 upstream: reported on 2026/06/26 07:08
upstream WARNING: refcount bug in dvb_device_open (2) media 13 1 260d 256d 0/29 auto-obsoleted due to no activity on 2026/01/28 21:06
upstream WARNING: refcount bug in dvb_device_open media 13 1 462d 457d 0/29 auto-obsoleted due to no activity on 2025/07/21 00:17
linux-6.1 WARNING: refcount bug in dvb_device_open 13 5 9d21h 68d 0/3 upstream: reported on 2026/05/11 11:02

Sample crash report:
------------[ cut here ]------------
refcount_t: saturated; leaking memory.
WARNING: lib/refcount.c:22 at refcount_warn_saturate+0x8c/0x110 lib/refcount.c:22, CPU#0: syz.6.4051/19298
Modules linked in:
CPU: 0 UID: 0 PID: 19298 Comm: syz.6.4051 Tainted: G             L      syzkaller #0 PREEMPT_{RT,(full)} 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
RIP: 0010:refcount_warn_saturate+0x8c/0x110 lib/refcount.c:22
Code: 75 68 e8 d7 1b 03 fd 48 8d 3d 80 2a f8 0a 67 48 0f b9 3a eb 66 85 db 74 3e 83 fb 01 75 4c e8 bb 1b 03 fd 48 8d 3d 74 2a f8 0a <67> 48 0f b9 3a eb 4a e8 a8 1b 03 fd 48 8d 3d 71 2a f8 0a 67 48 0f
RSP: 0018:ffffc90004cc7858 EFLAGS: 00010283
RAX: ffffffff84c21cb5 RBX: 0000000000000001 RCX: 0000000000080000
RDX: ffffc90018934000 RSI: 00000000000007d2 RDI: ffffffff8fba4730
RBP: 00000000ffffffff R08: ffff888037be3e00 R09: 0000000000000005
R10: 0000000000000100 R11: 0000000000000004 R12: ffff88802ca02018
R13: ffffffff99a8aa60 R14: ffff88802ca02010 R15: ffff88802ca02000
FS:  00007f25413466c0(0000) GS:ffff888125c49000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c25352e CR3: 000000005bc9c000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __refcount_add include/linux/refcount.h:-1 [inline]
 __refcount_inc include/linux/refcount.h:366 [inline]
 refcount_inc include/linux/refcount.h:383 [inline]
 kref_get include/linux/kref.h:45 [inline]
 dvb_device_get drivers/media/dvb-core/dvbdev.c:621 [inline]
 dvb_device_open+0x30a/0x350 drivers/media/dvb-core/dvbdev.c:106
 chrdev_open+0x4dc/0x600 fs/char_dev.c:411
 do_dentry_open+0x849/0x1420 fs/open.c:947
 vfs_open+0x3b/0x350 fs/open.c:1052
 do_open fs/namei.c:4700 [inline]
 path_openat+0x2e60/0x3850 fs/namei.c:4863
 do_file_open+0x23e/0x4a0 fs/namei.c:4892
 do_sys_openat2+0x115/0x200 fs/open.c:1368
 do_sys_open fs/open.c:1374 [inline]
 __do_sys_openat fs/open.c:1390 [inline]
 __se_sys_openat fs/open.c:1385 [inline]
 __x64_sys_openat+0x138/0x170 fs/open.c:1385
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f25430ae68e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f2541345b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f25413466c0 RCX: 00007f25430ae68e
RDX: 0000000000040002 RSI: 00007f2541345c00 RDI: ffffffffffffff9c
RBP: 00007f2541345c00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd
R13: 00007f2543376038 R14: 00007f2543375fa0 R15: 00007ffffed696e8
 </TASK>
----------------
Code disassembly (best guess):
   0:	75 68                	jne    0x6a
   2:	e8 d7 1b 03 fd       	call   0xfd031bde
   7:	48 8d 3d 80 2a f8 0a 	lea    0xaf82a80(%rip),%rdi        # 0xaf82a8e
   e:	67 48 0f b9 3a       	ud1    (%edx),%rdi
  13:	eb 66                	jmp    0x7b
  15:	85 db                	test   %ebx,%ebx
  17:	74 3e                	je     0x57
  19:	83 fb 01             	cmp    $0x1,%ebx
  1c:	75 4c                	jne    0x6a
  1e:	e8 bb 1b 03 fd       	call   0xfd031bde
  23:	48 8d 3d 74 2a f8 0a 	lea    0xaf82a74(%rip),%rdi        # 0xaf82a9e
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	eb 4a                	jmp    0x7b
  31:	e8 a8 1b 03 fd       	call   0xfd031bde
  36:	48 8d 3d 71 2a f8 0a 	lea    0xaf82a71(%rip),%rdi        # 0xaf82aae
  3d:	67                   	addr32
  3e:	48                   	rex.W
  3f:	0f                   	.byte 0xf

Crashes (21):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/12 05:52 upstream cab9e339cfbc d78ea535 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING: refcount bug in dvb_device_open
2026/06/30 07:46 upstream dc59e4fea9d8 fff8d0a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING: refcount bug in dvb_device_open
2026/05/06 23:55 upstream adc1e5c6203c cbcd9ea0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING: refcount bug in dvb_device_open
2026/04/30 01:41 upstream 57b8e2d666a3 005438fc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING: refcount bug in dvb_device_open
2026/04/05 15:36 upstream 3aae9383f42f 4440e7c2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING: refcount bug in dvb_device_open
2026/03/24 10:50 upstream c369299895a5 baf8bf12 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING: refcount bug in dvb_device_open
2026/03/06 10:11 upstream 5ee8dbf54602 31e9c887 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING: refcount bug in dvb_device_open
2026/02/17 14:55 upstream c22e26bd0906 e439b951 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING: refcount bug in dvb_device_open
2026/02/13 15:20 upstream c22e26bd0906 6a673c50 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING: refcount bug in dvb_device_open
2026/07/08 00:59 upstream 0e35b9b6ec0f 88a4b44c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in dvb_device_open
2026/06/26 22:13 upstream 51cb1aa1250c fb92f11c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in dvb_device_open
2026/06/20 22:56 upstream 1a3746ccbb0a 43bfcdb0 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in dvb_device_open
2026/06/19 20:32 upstream 9ecfb2f7287a 023e42b5 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in dvb_device_open
2026/06/23 00:51 linux-next 948efecf22e4 5a630be6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in dvb_device_open
2026/06/23 00:40 linux-next 948efecf22e4 5a630be6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in dvb_device_open
2026/05/11 04:12 linux-next e98d21c170b0 29233ece .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in dvb_device_open
2026/04/25 15:23 linux-next 7080e32d3f09 9c2d0995 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING: refcount bug in dvb_device_open
2026/04/14 11:24 linux-next 1c7cc4904160 362d1323 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING: refcount bug in dvb_device_open
2026/04/10 17:58 linux-next cc13002a9f98 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING: refcount bug in dvb_device_open
2026/03/29 22:39 linux-next 3b058d1aeeef 356bdfc9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: refcount bug in dvb_device_open
2026/02/23 05:16 linux-next d4906ae14a5f 6e7b5511 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce WARNING: refcount bug in dvb_device_open
* Struck through repros no longer work on HEAD.