================================================================== BUG: KFENCE: use-after-free read in dvb_device_open+0xca/0x370 drivers/media/dvb-core/dvbdev.c:99 Use-after-free read at 0xffff88823bc86018 (in kfence-#66): dvb_device_open+0xca/0x370 drivers/media/dvb-core/dvbdev.c:99 chrdev_open+0x5cc/0x6a0 fs/char_dev.c:414 do_dentry_open+0x8c6/0x1500 fs/open.c:929 do_open fs/namei.c:3640 [inline] path_openat+0x27f1/0x3230 fs/namei.c:3797 do_filp_open+0x1f5/0x430 fs/namei.c:3824 do_sys_openat2+0x134/0x1d0 fs/open.c:1421 do_sys_open fs/open.c:1436 [inline] __do_sys_openat fs/open.c:1452 [inline] __se_sys_openat fs/open.c:1447 [inline] __x64_sys_openat+0x139/0x160 fs/open.c:1447 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 kfence-#66: 0xffff88823bc86000-0xffff88823bc8603f, size=64, cache=kmalloc-64 allocated by task 7724 on cpu 0 at 399.937422s: kmalloc include/linux/slab.h:604 [inline] kzalloc include/linux/slab.h:721 [inline] hash_netport4_add+0x1d13/0x26e0 net/netfilter/ipset/ip_set_hash_gen.h:949 hash_netport4_uadt+0xba3/0xf30 net/netfilter/ipset/ip_set_hash_netport.c:255 call_ad+0x38d/0xb40 net/netfilter/ipset/ip_set_core.c:1751 ip_set_ad+0x81a/0x9c0 net/netfilter/ipset/ip_set_core.c:1841 nfnetlink_rcv_msg+0xbf0/0x12b0 net/netfilter/nfnetlink.c:302 netlink_rcv_skb+0x241/0x4d0 net/netlink/af_netlink.c:2545 nfnetlink_rcv+0x2c9/0x24a0 net/netfilter/nfnetlink.c:659 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x751/0x8d0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8d0/0xbf0 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0x5ba/0x960 net/socket.c:2594 ___sys_sendmsg+0x2a6/0x360 net/socket.c:2648 __sys_sendmsg net/socket.c:2677 [inline] __do_sys_sendmsg net/socket.c:2686 [inline] __se_sys_sendmsg+0x1c2/0x2b0 net/socket.c:2684 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 freed by task 7724 on cpu 1 at 400.241111s: hash_netport4_ahash_destroy net/netfilter/ipset/ip_set_hash_gen.h:440 [inline] hash_netport4_resize+0x1895/0x1b40 net/netfilter/ipset/ip_set_hash_gen.h:780 call_ad+0x454/0xb40 net/netfilter/ipset/ip_set_core.c:1757 ip_set_ad+0x81a/0x9c0 net/netfilter/ipset/ip_set_core.c:1841 nfnetlink_rcv_msg+0xbf0/0x12b0 net/netfilter/nfnetlink.c:302 netlink_rcv_skb+0x241/0x4d0 net/netlink/af_netlink.c:2545 nfnetlink_rcv+0x2c9/0x24a0 net/netfilter/nfnetlink.c:659 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x751/0x8d0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8d0/0xbf0 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0x5ba/0x960 net/socket.c:2594 ___sys_sendmsg+0x2a6/0x360 net/socket.c:2648 __sys_sendmsg net/socket.c:2677 [inline] __do_sys_sendmsg net/socket.c:2686 [inline] __se_sys_sendmsg+0x1c2/0x2b0 net/socket.c:2684 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 CPU: 1 PID: 7754 Comm: syz.0.560 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 RIP: 0010:dvb_device_open+0xca/0x370 drivers/media/dvb-core/dvbdev.c:99 Code: 8b 3f 4d 85 ff 0f 84 83 01 00 00 4c 89 64 24 08 4d 8d 67 18 4c 89 e5 48 c1 ed 03 80 7c 1d 00 00 74 08 4c 89 e7 e8 06 3f dd fa <4d> 8b 2c 24 4d 85 ed 0f 84 5e 01 00 00 4c 89 e8 48 c1 e8 03 80 3c RSP: 0018:ffffc900033577f0 EFLAGS: 00010246 RAX: 1ffffffff2ec5de7 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000008 RDI: 00000000ffffffff RBP: 1ffff11047790c03 R08: ffffffff8deff2ef R09: 1ffffffff1bdfe5d R10: dffffc0000000000 R11: fffffbfff1bdfe5e R12: ffff88823bc86018 R13: 1ffff9200066af0c R14: ffff88802698f3e0 R15: ffff88823bc86000 FS: 00007f3b9a1bf6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff88823bc86018 CR3: 000000001df18000 CR4: 00000000003506e0 Call Trace: chrdev_open+0x5cc/0x6a0 fs/char_dev.c:414 do_dentry_open+0x8c6/0x1500 fs/open.c:929 do_open fs/namei.c:3640 [inline] path_openat+0x27f1/0x3230 fs/namei.c:3797 do_filp_open+0x1f5/0x430 fs/namei.c:3824 do_sys_openat2+0x134/0x1d0 fs/open.c:1421 do_sys_open fs/open.c:1436 [inline] __do_sys_openat fs/open.c:1452 [inline] __se_sys_openat fs/open.c:1447 [inline] __x64_sys_openat+0x139/0x160 fs/open.c:1447 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f3b9935cfce 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 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f3b9a1beb28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f3b9a1bf6c0 RCX: 00007f3b9935cfce RDX: 0000000000000e82 RSI: 00007f3b9a1bec00 RDI: ffffffffffffff9c RBP: 00007f3b9a1bec00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd R13: 00007f3b99616128 R14: 00007f3b99616090 R15: 00007ffdb3036158 ================================================================== ---------------- Code disassembly (best guess): 0: 8b 3f mov (%rdi),%edi 2: 4d 85 ff test %r15,%r15 5: 0f 84 83 01 00 00 je 0x18e b: 4c 89 64 24 08 mov %r12,0x8(%rsp) 10: 4d 8d 67 18 lea 0x18(%r15),%r12 14: 4c 89 e5 mov %r12,%rbp 17: 48 c1 ed 03 shr $0x3,%rbp 1b: 80 7c 1d 00 00 cmpb $0x0,0x0(%rbp,%rbx,1) 20: 74 08 je 0x2a 22: 4c 89 e7 mov %r12,%rdi 25: e8 06 3f dd fa call 0xfadd3f30 * 2a: 4d 8b 2c 24 mov (%r12),%r13 <-- trapping instruction 2e: 4d 85 ed test %r13,%r13 31: 0f 84 5e 01 00 00 je 0x195 37: 4c 89 e8 mov %r13,%rax 3a: 48 c1 e8 03 shr $0x3,%rax 3e: 80 .byte 0x80 3f: 3c .byte 0x3c