================================================================== BUG: KFENCE: use-after-free read in dvb_device_open+0xc4/0x340 drivers/media/dvb-core/dvbdev.c:99 Use-after-free read at 0xffff88823bffc018 (in kfence-#253): dvb_device_open+0xc4/0x340 drivers/media/dvb-core/dvbdev.c:99 chrdev_open+0x4d9/0x600 fs/char_dev.c:413 do_dentry_open+0x80e/0x1360 fs/open.c:1000 vfs_open_consume+0x4a/0x350 fs/open.c:1131 do_open fs/namei.c:4845 [inline] path_openat+0x1700/0x20f0 fs/namei.c:5010 do_file_open+0x23e/0x4a0 fs/namei.c:5039 do_sys_openat2+0x115/0x200 fs/open.c:1442 do_sys_open fs/open.c:1448 [inline] __do_compat_sys_openat fs/open.c:1510 [inline] __se_compat_sys_openat fs/open.c:1508 [inline] __ia32_compat_sys_openat+0x131/0x160 fs/open.c:1508 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:79 [inline] do_int80_emulation+0x198/0x500 arch/x86/entry/syscall_32.c:166 asm_int80_emulation+0x1a/0x20 arch/x86/include/asm/idtentry.h:598 kfence-#253: 0xffff88823bffc000-0xffff88823bffc0d7, size=216, cache=kmalloc-256 allocated by task 1 on cpu 0 at 22.640787s (88.785036s ago): _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] dvb_register_device+0x309/0x1dd0 drivers/media/dvb-core/dvbdev.c:472 dvb_register_frontend+0x603/0x900 drivers/media/dvb-core/dvb_frontend.c:3074 vidtv_bridge_dvb_init drivers/media/test-drivers/vidtv/vidtv_bridge.c:438 [inline] vidtv_bridge_probe+0x9d5/0xf60 drivers/media/test-drivers/vidtv/vidtv_bridge.c:510 platform_probe+0xf9/0x190 drivers/base/platform.c:1507 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:706 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898 __driver_attach+0x339/0x600 drivers/base/dd.c:1292 bus_for_each_dev+0x23b/0x2c0 drivers/base/bus.c:383 bus_add_driver+0x345/0x670 drivers/base/bus.c:763 driver_register+0x23a/0x320 drivers/base/driver.c:174 vidtv_bridge_init+0x3d/0x60 drivers/media/test-drivers/vidtv/vidtv_bridge.c:602 do_one_initcall+0x250/0x870 init/main.c:1362 do_initcall_level+0x10a/0x1a0 init/main.c:1424 do_initcalls+0x59/0xa0 init/main.c:1440 kernel_init_freeable+0x29d/0x3e0 init/main.c:1675 kernel_init+0x22/0x1d0 init/main.c:1565 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 freed by task 5885 on cpu 1 at 111.392154s (0.034007s ago): dvb_free_device drivers/media/dvb-core/dvbdev.c:616 [inline] kref_put include/linux/kref.h:65 [inline] dvb_device_put drivers/media/dvb-core/dvbdev.c:629 [inline] dvb_device_open+0x2b8/0x340 drivers/media/dvb-core/dvbdev.c:113 chrdev_open+0x4d9/0x600 fs/char_dev.c:413 do_dentry_open+0x80e/0x1360 fs/open.c:1000 vfs_open_consume+0x4a/0x350 fs/open.c:1131 do_open fs/namei.c:4845 [inline] path_openat+0x1700/0x20f0 fs/namei.c:5010 do_file_open+0x23e/0x4a0 fs/namei.c:5039 do_sys_openat2+0x115/0x200 fs/open.c:1442 do_sys_open fs/open.c:1448 [inline] __do_compat_sys_openat fs/open.c:1510 [inline] __se_compat_sys_openat fs/open.c:1508 [inline] __ia32_compat_sys_openat+0x131/0x160 fs/open.c:1508 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:79 [inline] do_int80_emulation+0x198/0x500 arch/x86/entry/syscall_32.c:166 asm_int80_emulation+0x1a/0x20 arch/x86/include/asm/idtentry.h:598 CPU: 0 UID: 0 PID: 5887 Comm: syz.0.19 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 RIP: 0010:dvb_device_open+0xc4/0x340 drivers/media/dvb-core/dvbdev.c:99 Code: e8 11 3d 1e fa 4d 8b 3f 4d 85 ff 0f 84 09 01 00 00 4d 8d 67 18 4c 89 e0 48 c1 e8 03 80 3c 18 00 74 08 4c 89 e7 e8 ec 3c 1e fa <4d> 8b 2c 24 4d 85 ed 0f 84 ea 00 00 00 4c 89 e8 48 c1 e8 03 80 3c RSP: 0000:ffffc900035f7910 EFLAGS: 00010246 RAX: 1ffff110477ff803 RBX: dffffc0000000000 RCX: ffffffff9b9f9501 RDX: 0000000000000001 RSI: 0000000000000008 RDI: 00000000ffffffff RBP: ffff8880333d1340 R08: ffffffff90d49eaf R09: 1ffffffff21a93d5 R10: dffffc0000000000 R11: fffffbfff21a93d6 R12: ffff88823bffc018 R13: dffffc0000000000 R14: ffff88802d910148 R15: ffff88823bffc000 FS: 0000000000000000(0000) GS:ffff888123abb000(0063) knlGS:00000000578c6480 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: ffff88823bffc018 CR3: 000000007a048000 CR4: 00000000003526f0 Call Trace: chrdev_open+0x4d9/0x600 fs/char_dev.c:413 ---------------- Code disassembly (best guess): 0: e8 11 3d 1e fa call 0xfa1e3d16 5: 4d 8b 3f mov (%r15),%r15 8: 4d 85 ff test %r15,%r15 b: 0f 84 09 01 00 00 je 0x11a 11: 4d 8d 67 18 lea 0x18(%r15),%r12 15: 4c 89 e0 mov %r12,%rax 18: 48 c1 e8 03 shr $0x3,%rax 1c: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1) 20: 74 08 je 0x2a 22: 4c 89 e7 mov %r12,%rdi 25: e8 ec 3c 1e fa call 0xfa1e3d16 * 2a: 4d 8b 2c 24 mov (%r12),%r13 <-- trapping instruction 2e: 4d 85 ed test %r13,%r13 31: 0f 84 ea 00 00 00 je 0x121 37: 4c 89 e8 mov %r13,%rax 3a: 48 c1 e8 03 shr $0x3,%rax 3e: 80 .byte 0x80 3f: 3c .byte 0x3c