================================================================== BUG: KASAN: slab-use-after-free in dvb_device_open+0xca/0x370 drivers/media/dvb-core/dvbdev.c:99 Read of size 8 at addr ffff888026222418 by task syz.1.2766/15860 CPU: 0 PID: 15860 Comm: syz.1.2766 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 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 RIP: 0033:0x7f2940b5cfce 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:00007f2941988b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f29419896c0 RCX: 00007f2940b5cfce RDX: 0000000000000002 RSI: 00007f2941988c00 RDI: ffffffffffffff9c RBP: 00007f2941988c00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: cccccccccccccccd R13: 00007f2940e16218 R14: 00007f2940e16180 R15: 00007ffc7450ef98 Allocated by task 6121: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc+0xb4/0x230 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] kzalloc include/linux/slab.h:721 [inline] new_dir fs/proc/proc_sysctl.c:969 [inline] get_subdir fs/proc/proc_sysctl.c:1013 [inline] sysctl_mkdir_p fs/proc/proc_sysctl.c:1308 [inline] __register_sysctl_table+0xac9/0x1240 fs/proc/proc_sysctl.c:1389 __addrconf_sysctl_register+0x27a/0x3f0 net/ipv6/addrconf.c:7210 addrconf_sysctl_register+0x15c/0x1b0 net/ipv6/addrconf.c:7258 ipv6_add_dev+0xc42/0x11e0 net/ipv6/addrconf.c:451 addrconf_notify+0x67b/0x1010 net/ipv6/addrconf.c:3640 notifier_call_chain+0x197/0x380 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2077 [inline] call_netdevice_notifiers net/core/dev.c:2091 [inline] register_netdevice+0x16a5/0x1bb0 net/core/dev.c:10339 register_vlan_dev+0x397/0x810 net/8021q/vlan.c:180 vlan_newlink+0x446/0x590 net/8021q/vlan_netlink.c:195 rtnl_newlink_create net/core/rtnetlink.c:3517 [inline] __rtnl_newlink net/core/rtnetlink.c:3737 [inline] rtnl_newlink+0x1542/0x20a0 net/core/rtnetlink.c:3750 rtnetlink_rcv_msg+0x869/0xfa0 net/core/rtnetlink.c:6472 netlink_rcv_skb+0x241/0x4d0 net/netlink/af_netlink.c:2545 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_sendto+0x4a9/0x6b0 net/socket.c:2200 __do_sys_sendto net/socket.c:2212 [inline] __se_sys_sendto net/socket.c:2208 [inline] __x64_sys_sendto+0xde/0xf0 net/socket.c:2208 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 12837: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x2e/0x50 mm/kasan/generic.c:522 ____kasan_slab_free+0x126/0x1e0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1811 [inline] slab_free_freelist_hook+0x130/0x1a0 mm/slub.c:1837 slab_free mm/slub.c:3830 [inline] kmem_cache_free_bulk+0x33b/0x450 mm/slub.c:3948 kfree_bulk include/linux/slab.h:517 [inline] kvfree_rcu_bulk+0x1eb/0x470 kernel/rcu/tree.c:3032 kvfree_rcu_drain_ready kernel/rcu/tree.c:3216 [inline] kfree_rcu_monitor+0x7fe/0xf70 kernel/rcu/tree.c:3234 process_one_work kernel/workqueue.c:2653 [inline] process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2730 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2811 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:46 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 kvfree_call_rcu+0xee/0x790 kernel/rcu/tree.c:3452 drop_sysctl_table+0x394/0x540 fs/proc/proc_sysctl.c:1515 drop_sysctl_table+0x3ab/0x540 fs/proc/proc_sysctl.c:1518 unregister_sysctl_table+0x41/0x60 fs/proc/proc_sysctl.c:1536 __addrconf_sysctl_unregister net/ipv6/addrconf.c:7240 [inline] addrconf_sysctl_unregister net/ipv6/addrconf.c:7268 [inline] addrconf_ifdown+0x1536/0x18c0 net/ipv6/addrconf.c:3996 addrconf_notify+0x6c6/0x1010 net/ipv6/addrconf.c:-1 notifier_call_chain+0x197/0x380 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2077 [inline] call_netdevice_notifiers net/core/dev.c:2091 [inline] unregister_netdevice_many_notify+0x100d/0x1900 net/core/dev.c:11112 unregister_netdevice_many net/core/dev.c:11168 [inline] default_device_exit_batch+0x9ee/0xa80 net/core/dev.c:11646 ops_exit_list net/core/net_namespace.c:178 [inline] cleanup_net+0x795/0xbb0 net/core/net_namespace.c:652 process_one_work kernel/workqueue.c:2653 [inline] process_scheduled_works+0xa5d/0x15d0 kernel/workqueue.c:2730 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2811 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 The buggy address belongs to the object at ffff888026222400 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 24 bytes inside of freed 256-byte region [ffff888026222400, ffff888026222500) The buggy address belongs to the physical page: page:ffffea0000988880 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x26222 head:ffffea0000988880 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888017c41b40 ffffea000085c280 0000000000000005 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 15812007973, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1581 prep_new_page mm/page_alloc.c:1588 [inline] get_page_from_freelist+0x1951/0x19e0 mm/page_alloc.c:3220 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4500 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2120 alloc_slab_page+0x5d/0x160 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2d0 mm/slub.c:2081 ___slab_alloc+0xc5d/0x12f0 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] __kmem_cache_alloc_node+0x19e/0x250 mm/slub.c:3534 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] bus_add_driver+0x162/0x630 drivers/base/bus.c:659 driver_register+0x23a/0x310 drivers/base/driver.c:246 i2c_register_driver+0xba/0x160 drivers/i2c/i2c-core-base.c:2016 do_one_initcall+0x242/0x790 init/main.c:1250 do_initcall_level+0x137/0x1f0 init/main.c:1312 do_initcalls+0x69/0xd0 init/main.c:1328 kernel_init_freeable+0x3ed/0x580 init/main.c:1565 page_owner free stack trace missing Memory state around the buggy address: ffff888026222300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888026222380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888026222400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888026222480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888026222500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================