em28xx 3-1:0.132: Closing input extension ================================================================== BUG: KASAN: slab-use-after-free in media_device_unregister drivers/media/mc/mc-device.c:833 [inline] BUG: KASAN: slab-use-after-free in media_device_unregister+0x59d/0x610 drivers/media/mc/mc-device.c:811 Read of size 8 at addr ffff88812f9ec218 by task kworker/0:3/5225 CPU: 0 UID: 0 PID: 5225 Comm: kworker/0:3 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x156/0x4c9 mm/kasan/report.c:482 kasan_report+0xdf/0x1e0 mm/kasan/report.c:595 media_device_unregister drivers/media/mc/mc-device.c:833 [inline] media_device_unregister+0x59d/0x610 drivers/media/mc/mc-device.c:811 em28xx_unregister_media_device+0x4e/0xe0 drivers/media/usb/em28xx/em28xx-cards.c:3511 em28xx_release_resources+0x79/0x1b0 drivers/media/usb/em28xx/em28xx-cards.c:3532 em28xx_usb_disconnect.cold+0x17d/0x253 drivers/media/usb/em28xx/em28xx-cards.c:4201 usb_unbind_interface+0x1dd/0x9e0 drivers/usb/core/driver.c:458 device_remove drivers/base/dd.c:633 [inline] device_remove+0x12a/0x180 drivers/base/dd.c:625 __device_release_driver drivers/base/dd.c:1344 [inline] device_release_driver_internal+0x44e/0x620 drivers/base/dd.c:1367 bus_remove_device+0x2bc/0x560 drivers/base/bus.c:657 device_del+0x376/0x9b0 drivers/base/core.c:3880 usb_disable_device+0x367/0x810 drivers/usb/core/message.c:1478 usb_disconnect+0x2e2/0x9a0 drivers/usb/core/hub.c:2345 hub_port_connect drivers/usb/core/hub.c:5407 [inline] hub_port_connect_change drivers/usb/core/hub.c:5707 [inline] port_event drivers/usb/core/hub.c:5871 [inline] hub_event+0x1d0c/0x4af0 drivers/usb/core/hub.c:5953 process_one_work+0xa23/0x19a0 kernel/workqueue.c:3276 process_scheduled_works kernel/workqueue.c:3359 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3440 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x6c3/0xcb0 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 7123: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:415 kmalloc_noprof include/linux/slab.h:950 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] em28xx_v4l2_init.cold+0x94/0x3503 drivers/media/usb/em28xx/em28xx-video.c:2532 em28xx_init_extension+0x13a/0x200 drivers/media/usb/em28xx/em28xx-core.c:1117 request_module_async+0x61/0x80 drivers/media/usb/em28xx/em28xx-cards.c:3457 process_one_work+0xa23/0x19a0 kernel/workqueue.c:3276 process_scheduled_works kernel/workqueue.c:3359 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3440 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x6c3/0xcb0 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 7123: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x43/0x70 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2685 [inline] slab_free mm/slub.c:6165 [inline] kfree+0x1dc/0x640 mm/slub.c:6483 kref_put.isra.0+0x56/0x90 include/linux/kref.h:65 em28xx_v4l2_init.cold+0x280/0x3503 drivers/media/usb/em28xx/em28xx-video.c:2901 em28xx_init_extension+0x13a/0x200 drivers/media/usb/em28xx/em28xx-core.c:1117 request_module_async+0x61/0x80 drivers/media/usb/em28xx/em28xx-cards.c:3457 process_one_work+0xa23/0x19a0 kernel/workqueue.c:3276 process_scheduled_works kernel/workqueue.c:3359 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3440 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x6c3/0xcb0 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff88812f9ec000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 536 bytes inside of freed 8192-byte region [ffff88812f9ec000, ffff88812f9ee000) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12f9e8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x200000000000040(head|node=0|zone=2) page_type: f5(slab) raw: 0200000000000040 ffff888100042280 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800020002 00000000f5000000 0000000000000000 head: 0200000000000040 ffff888100042280 dead000000000100 dead000000000122 head: 0000000000000000 0000000800020002 00000000f5000000 0000000000000000 head: 0200000000000003 ffffea0004be7a01 00000000ffffffff 00000000ffffffff head: ffff88812f9e9690 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 20580, tgid 20580 (kworker/0:4), ts 2421055245824, free_ts 2416874177966 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0xf10/0x39f0 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x273/0x2860 mm/page_alloc.c:5250 alloc_slab_page mm/slub.c:3292 [inline] allocate_slab mm/slub.c:3481 [inline] new_slab+0xa6/0x6c0 mm/slub.c:3539 refill_objects+0x26b/0x400 mm/slub.c:7175 refill_sheaf mm/slub.c:2812 [inline] __pcs_replace_empty_main+0x1ab/0x660 mm/slub.c:4615 alloc_from_pcs mm/slub.c:4717 [inline] slab_alloc_node mm/slub.c:4851 [inline] __do_kmalloc_node mm/slub.c:5259 [inline] __kmalloc_noprof+0x645/0x810 mm/slub.c:5272 kmalloc_noprof include/linux/slab.h:954 [inline] hcd_buffer_alloc+0x1f5/0x290 drivers/usb/core/buffer.c:134 usb_alloc_coherent+0x5f/0xa0 drivers/usb/core/usb.c:1011 usb_allocate_stream_buffers+0x1ae/0x310 drivers/media/usb/dvb-usb/usb-urb.c:121 usb_bulk_urb_init drivers/media/usb/dvb-usb/usb-urb.c:142 [inline] usb_urb_init+0x771/0x1150 drivers/media/usb/dvb-usb/usb-urb.c:229 dvb_usb_adapter_stream_init+0x132/0x3d0 drivers/media/usb/dvb-usb/dvb-usb-urb.c:108 dvb_usb_adapter_init drivers/media/usb/dvb-usb/dvb-usb-init.c:82 [inline] dvb_usb_init drivers/media/usb/dvb-usb/dvb-usb-init.c:186 [inline] dvb_usb_device_init.cold+0xbb1/0x14be drivers/media/usb/dvb-usb/dvb-usb-init.c:310 cxusb_probe+0x12b/0x610 drivers/media/usb/dvb-usb/cxusb.c:1633 usb_probe_interface+0x303/0x8f0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:643 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:721 page last free pid 17048 tgid 17048 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x7b1/0xfb0 mm/page_alloc.c:2978 __folio_put+0x278/0x3c0 mm/swap.c:112 folio_put include/linux/mm.h:1817 [inline] put_page include/linux/mm.h:1886 [inline] put_netmem include/net/netmem.h:420 [inline] skb_page_unref include/linux/skbuff_ref.h:43 [inline] __skb_frag_unref include/linux/skbuff_ref.h:56 [inline] skb_release_data+0x667/0x9d0 net/core/skbuff.c:1122 skb_release_all net/core/skbuff.c:1203 [inline] __kfree_skb+0x4f/0x70 net/core/skbuff.c:1217 tcp_wmem_free_skb include/net/tcp.h:336 [inline] tcp_rtx_queue_unlink_and_free include/net/tcp.h:2269 [inline] tcp_clean_rtx_queue net/ipv4/tcp_input.c:3698 [inline] tcp_ack+0x1f8c/0x72a0 net/ipv4/tcp_input.c:4366 tcp_rcv_established+0x1175/0x3970 net/ipv4/tcp_input.c:6608 tcp_v4_do_rcv+0x5e4/0xad0 net/ipv4/tcp_ipv4.c:1884 tcp_v4_rcv+0x2d34/0x3fd0 net/ipv4/tcp_ipv4.c:2319 ip_protocol_deliver_rcu+0xba/0x4d0 net/ipv4/ip_input.c:207 ip_local_deliver_finish+0x404/0x6f0 net/ipv4/ip_input.c:241 NF_HOOK include/linux/netfilter.h:318 [inline] NF_HOOK include/linux/netfilter.h:312 [inline] ip_local_deliver+0x1a6/0x580 net/ipv4/ip_input.c:262 dst_input include/net/dst.h:480 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:584 [inline] ip_list_rcv_finish+0x94e/0xbf0 net/ipv4/ip_input.c:636 ip_sublist_rcv net/ipv4/ip_input.c:644 [inline] ip_list_rcv+0x338/0x450 net/ipv4/ip_input.c:678 __netif_receive_skb_list_ptype net/core/dev.c:6224 [inline] __netif_receive_skb_list_core+0x74c/0x940 net/core/dev.c:6271 __netif_receive_skb_list net/core/dev.c:6323 [inline] netif_receive_skb_list_internal+0x722/0xd40 net/core/dev.c:6414 gro_normal_list include/net/gro.h:523 [inline] gro_normal_list include/net/gro.h:519 [inline] gro_flush_normal include/net/gro.h:531 [inline] napi_complete_done+0x221/0x940 net/core/dev.c:6782 Memory state around the buggy address: ffff88812f9ec100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88812f9ec180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88812f9ec200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88812f9ec280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88812f9ec300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================