================================================================== ================================================================== BUG: KASAN: slab-use-after-free in vhci_send_cmd_submit drivers/usb/usbip/vhci_tx.c:69 [inline] BUG: KASAN: slab-use-after-free in vhci_tx_loop+0x3e9/0x1c70 drivers/usb/usbip/vhci_tx.c:241 Read of size 8 at addr ffff888032cb9820 by task vhci_tx/6090 CPU: 1 UID: 0 PID: 6090 Comm: vhci_tx Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 vhci_send_cmd_submit drivers/usb/usbip/vhci_tx.c:69 [inline] vhci_tx_loop+0x3e9/0x1c70 drivers/usb/usbip/vhci_tx.c:241 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 5714: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x3c8/0x6c0 mm/slub.c:5512 _kmalloc_noprof include/linux/slab.h:969 [inline] _kzalloc_noprof include/linux/slab.h:1287 [inline] vhci_tx_urb drivers/usb/usbip/vhci_hcd.c:674 [inline] vhci_urb_enqueue+0x5c2/0xe00 drivers/usb/usbip/vhci_hcd.c:829 usb_hcd_submit_urb+0x322/0x1b40 drivers/usb/core/hcd.c:1542 usb_start_wait_urb+0x13f/0x5b0 drivers/usb/core/message.c:62 usb_internal_control_msg drivers/usb/core/message.c:117 [inline] usb_control_msg+0x234/0x3e0 drivers/usb/core/message.c:167 get_bMaxPacketSize0 drivers/usb/core/hub.c:4851 [inline] hub_port_init+0xb0b/0x28b0 drivers/usb/core/hub.c:5047 hub_port_connect drivers/usb/core/hub.c:5496 [inline] hub_port_connect_change drivers/usb/core/hub.c:5707 [inline] port_event drivers/usb/core/hub.c:5871 [inline] hub_event+0x24e2/0x4cf0 drivers/usb/core/hub.c:5953 process_one_work+0x93a/0x12b0 kernel/workqueue.c:3326 process_scheduled_works kernel/workqueue.c:3409 [inline] worker_thread+0xb05/0x10d0 kernel/workqueue.c:3490 kthread+0x388/0x470 kernel/kthread.c:436 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 6089: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2703 [inline] slab_free mm/slub.c:6402 [inline] kfree+0x1c5/0x6c0 mm/slub.c:6717 pickup_urb_and_free_priv+0x225/0x3f0 drivers/usb/usbip/vhci_rx.c:46 vhci_recv_ret_submit drivers/usb/usbip/vhci_rx.c:65 [inline] vhci_rx_pdu drivers/usb/usbip/vhci_rx.c:242 [inline] vhci_rx_loop+0x3c5/0xa00 drivers/usb/usbip/vhci_rx.c:265 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 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 ffff888032cb9800 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 32 bytes inside of freed 64-byte region [ffff888032cb9800, ffff888032cb9840) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x32cb9 flags: 0x80000000000000(node=0|zone=1) page_type: f5(slab) raw: 0080000000000000 ffff88813fe248c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800200020 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4975, tgid 4975 (udevadm), ts 26285978989, free_ts 22802300514 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0x2639/0x26b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5304 alloc_slab_page mm/slub.c:3292 [inline] allocate_slab+0x79/0x5e0 mm/slub.c:3406 new_slab mm/slub.c:3452 [inline] refill_objects+0x2d8/0x350 mm/slub.c:7335 refill_sheaf mm/slub.c:2830 [inline] __pcs_replace_empty_main+0x330/0x690 mm/slub.c:4701 alloc_from_pcs mm/slub.c:4799 [inline] slab_alloc_node mm/slub.c:4931 [inline] __do_kmalloc_node mm/slub.c:5358 [inline] __kmalloc_noprof+0x55b/0x7d0 mm/slub.c:5384 _kmalloc_noprof include/linux/slab.h:973 [inline] _kzalloc_noprof include/linux/slab.h:1287 [inline] tomoyo_encode2 security/tomoyo/realpath.c:45 [inline] tomoyo_encode+0x2ad/0x570 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x5fa/0x640 security/tomoyo/realpath.c:283 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x283/0x560 security/tomoyo/file.c:827 security_inode_getattr+0x12b/0x310 security/security.c:1895 vfs_getattr+0x23/0x70 fs/stat.c:259 vfs_statx_path+0x2b/0x230 fs/stat.c:299 vfs_statx+0x12e/0x200 fs/stat.c:356 vfs_fstatat+0x11b/0x170 fs/stat.c:373 __do_sys_newfstatat fs/stat.c:538 [inline] __se_sys_newfstatat fs/stat.c:532 [inline] __x64_sys_newfstatat+0x151/0x200 fs/stat.c:532 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x10de/0x11c0 mm/page_alloc.c:2950 kasan_depopulate_vmalloc_pte+0x6d/0x90 mm/kasan/shadow.c:484 apply_to_pte_range mm/memory.c:3338 [inline] apply_to_pmd_range mm/memory.c:3382 [inline] apply_to_pud_range mm/memory.c:3418 [inline] apply_to_p4d_range mm/memory.c:3454 [inline] __apply_to_page_range+0xbd8/0x1420 mm/memory.c:3490 __kasan_release_vmalloc+0xa2/0xd0 mm/kasan/shadow.c:602 kasan_release_vmalloc include/linux/kasan.h:593 [inline] kasan_release_vmalloc_node mm/vmalloc.c:2284 [inline] purge_vmap_node+0x220/0x960 mm/vmalloc.c:2306 __purge_vmap_area_lazy+0x783/0xb40 mm/vmalloc.c:2396 _vm_unmap_aliases+0x73b/0x7f0 mm/vmalloc.c:2990 change_page_attr_set_clr+0x307/0xf60 arch/x86/mm/pat/set_memory.c:2101 change_page_attr_set arch/x86/mm/pat/set_memory.c:2142 [inline] set_memory_nx+0xd6/0x110 arch/x86/mm/pat/set_memory.c:2318 free_init_pages arch/x86/mm/init.c:933 [inline] free_kernel_image_pages+0x85/0x100 arch/x86/mm/init.c:952 kernel_init+0x31/0x1d0 init/main.c:1557 ret_from_fork+0x514/0xb70 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: ffff888032cb9700: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888032cb9780: 00 00 00 00 00 00 07 fc fc fc fc fc fc fc fc fc >ffff888032cb9800: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff888032cb9880: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ffff888032cb9900: 00 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc ==================================================================