================================================================== BUG: KASAN: slab-use-after-free in __mutex_lock_common kernel/locking/mutex.c:625 [inline] BUG: KASAN: slab-use-after-free in __mutex_lock+0x15f5/0x1c10 kernel/locking/mutex.c:821 Read of size 8 at addr ffff888057040160 by task syz.1.284/6633 CPU: 0 UID: 0 PID: 6633 Comm: syz.1.284 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 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+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 __mutex_lock_common kernel/locking/mutex.c:625 [inline] __mutex_lock+0x15f5/0x1c10 kernel/locking/mutex.c:821 dvb_frontend_release+0x28b/0x5d0 drivers/media/dvb-core/dvb_frontend.c:2942 __fput+0x3fb/0xb50 fs/file_table.c:512 fput_close_sync+0x118/0x250 fs/file_table.c:618 filp_close_sync+0x75/0xa0 fs/open.c:1574 close_files fs/file.c:572 [inline] put_files_struct fs/file.c:584 [inline] put_files_struct+0x1f7/0x390 fs/file.c:581 switch_files_struct fs/file.c:598 [inline] exit_files+0x85/0xb0 fs/file.c:604 do_exit+0x896/0x2a00 kernel/exit.c:977 do_group_exit+0xd5/0x2a0 kernel/exit.c:1123 get_signal+0x1f58/0x22e0 kernel/signal.c:3113 arch_do_signal_or_restart+0x91/0x7e0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop+0x139/0x700 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] do_syscall_64+0x661/0x7b0 arch/x86/entry/syscall_64.c:107 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff791da9559 Code: Unable to access opcode bytes at 0x7ff791da952f. RSP: 002b:00007ff792bd50e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007ff792026368 RCX: 00007ff791da9559 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007ff792026368 RBP: 00007ff792026360 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff7920263f8 R14: 00007ffc687c8080 R15: 00007ffc687c8168 Allocated by task 5629: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:351 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:377 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4720 [inline] slab_alloc_node mm/slub.c:5033 [inline] kmem_cache_alloc_node_noprof+0x282/0x6e0 mm/slub.c:5105 kmalloc_reserve+0x148/0x350 net/core/skbuff.c:616 __alloc_skb+0x185/0x710 net/core/skbuff.c:716 skb_copy+0x1c1/0x3b0 net/core/skbuff.c:2197 mac80211_hwsim_tx_frame_no_nl+0xc9c/0x1840 drivers/net/wireless/virtual/mac80211_hwsim_main.c:2027 mac80211_hwsim_tx_frame+0x1b7/0x250 drivers/net/wireless/virtual/mac80211_hwsim_main.c:2440 __mac80211_hwsim_beacon_tx drivers/net/wireless/virtual/mac80211_hwsim_main.c:2453 [inline] mac80211_hwsim_beacon_tx+0x56d/0xa00 drivers/net/wireless/virtual/mac80211_hwsim_main.c:2516 __iterate_interfaces+0x2e6/0x650 net/mac80211/util.c:775 ieee80211_iterate_active_interfaces_atomic+0x71/0x1b0 net/mac80211/util.c:811 mac80211_hwsim_beacon+0xe5/0x2a0 drivers/net/wireless/virtual/mac80211_hwsim_main.c:2548 __run_hrtimer kernel/time/hrtimer.c:2079 [inline] __hrtimer_run_queues+0x448/0x9a0 kernel/time/hrtimer.c:2136 hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2153 handle_softirqs+0x216/0xa20 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x178/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Freed by task 141: 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:264 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6630 [inline] kfree+0x22b/0x6d0 mm/slub.c:6923 skb_kfree_head net/core/skbuff.c:1085 [inline] skb_free_head+0xb9/0x160 net/core/skbuff.c:1097 skb_release_data+0x698/0x860 net/core/skbuff.c:1125 skb_release_all net/core/skbuff.c:1189 [inline] __kfree_skb net/core/skbuff.c:1203 [inline] consume_skb net/core/skbuff.c:1440 [inline] consume_skb+0xc4/0x110 net/core/skbuff.c:1434 ieee80211_iface_work+0x355/0x1070 net/mac80211/iface.c:1864 cfg80211_wiphy_work+0x2b7/0x550 net/wireless/core.c:609 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3495 process_scheduled_works kernel/workqueue.c:3578 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3659 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 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 ffff888057040000 which belongs to the cache skbuff_small_head of size 704 The buggy address is located 352 bytes inside of freed 704-byte region [ffff888057040000, ffff8880570402c0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x57040 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88814040aa00 dead000000000100 dead000000000122 raw: 0000000000000000 0000000200130013 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88814040aa00 dead000000000100 dead000000000122 head: 0000000000000000 0000000200130013 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5629, tgid 5629 (udevd), ts 110726486951 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873 prep_new_page mm/page_alloc.c:1881 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab mm/slub.c:3499 [inline] new_slab+0xb1/0x6d0 mm/slub.c:3550 refill_objects+0xe3/0x410 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] kmem_cache_alloc_node_noprof+0x4ed/0x6e0 mm/slub.c:5105 kmalloc_reserve+0x148/0x350 net/core/skbuff.c:616 __alloc_skb+0x185/0x710 net/core/skbuff.c:716 skb_copy+0x1c1/0x3b0 net/core/skbuff.c:2197 mac80211_hwsim_tx_frame_no_nl+0xc9c/0x1840 drivers/net/wireless/virtual/mac80211_hwsim_main.c:2027 mac80211_hwsim_tx_frame+0x1b7/0x250 drivers/net/wireless/virtual/mac80211_hwsim_main.c:2440 __mac80211_hwsim_beacon_tx drivers/net/wireless/virtual/mac80211_hwsim_main.c:2453 [inline] mac80211_hwsim_beacon_tx+0x56d/0xa00 drivers/net/wireless/virtual/mac80211_hwsim_main.c:2516 __iterate_interfaces+0x2e6/0x650 net/mac80211/util.c:775 ieee80211_iterate_active_interfaces_atomic+0x71/0x1b0 net/mac80211/util.c:811 mac80211_hwsim_beacon+0xe5/0x2a0 drivers/net/wireless/virtual/mac80211_hwsim_main.c:2548 page last free pid 10 tgid 10 ts 110683375503 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971 usb_unbind_interface+0x1dd/0x9b0 drivers/usb/core/driver.c:460 device_remove drivers/base/dd.c:619 [inline] device_remove+0x12a/0x180 drivers/base/dd.c:611 __device_release_driver drivers/base/dd.c:1357 [inline] device_release_driver_internal+0x441/0x610 drivers/base/dd.c:1380 bus_remove_device+0x2bc/0x560 drivers/base/bus.c:678 device_del+0x376/0x9b0 drivers/base/core.c:3967 usb_disable_device+0x367/0x810 drivers/usb/core/message.c:1484 usb_disconnect+0x2e2/0x9a0 drivers/usb/core/hub.c:2355 hub_port_connect drivers/usb/core/hub.c:5425 [inline] hub_port_connect_change drivers/usb/core/hub.c:5725 [inline] port_event drivers/usb/core/hub.c:5889 [inline] hub_event+0x1bb1/0x4420 drivers/usb/core/hub.c:5971 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3495 process_scheduled_works kernel/workqueue.c:3578 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3659 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff888057040000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888057040080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888057040100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888057040180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888057040200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================