KASAN: slab-use-after-free Read in vhci_tx_loop

Status: upstream: reported on 2025/12/22 02:03
Subsystems: usb
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+549021d06a2b557303bd@syzkaller.appspotmail.com
First crash: 328d, last: 12d
▶ ▼ ✨ AI Jobs (4)
ID Workflow Result Correct Bug Created Started Finished Revision
2d26f65c repro-c Reproduced: ✅ ❓ KASAN: slab-use-after-free Read in vhci_tx_loop 2026/08/15 11:46 2026/08/15 13:23 2026/08/15 16:59 746171ee
b4bc2c68 assessment-security DenialOfService: ✅ Exploitable: ✅ FilesystemTrigger: ❌ NetworkTrigger: ✅ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ KASAN: slab-use-after-free Read in vhci_tx_loop 2026/05/31 07:24 2026/05/31 07:24 2026/05/31 08:30 6b4a8443
9f043f06 assessment-security 💥 KASAN: slab-use-after-free Read in vhci_tx_loop 2026/05/14 14:40 2026/05/14 14:40 2026/05/14 14:42 6ccb967e
a22cff4a repro ❓ KASAN: slab-use-after-free Read in vhci_tx_loop 2026/03/06 21:56 2026/03/06 21:56 2026/03/06 22:06 31e9c887
▶ ▼ Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [usb?] KASAN: slab-use-after-free Read in vhci_tx_loop 0 (1) 2025/12/22 02:03
▶ ▼ Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in vhci_tx_loop usb 2 1 682d 678d 0/29 auto-obsoleted due to no activity on 2025/03/28 12:39
linux-5.15 KASAN: use-after-free Read in vhci_tx_loop 19 1 589d 589d 0/3 auto-obsoleted due to no activity on 2025/07/09 17:53
▶ ▼ Last patch testing requests (1)
Created Duration User Patch Repo Result
2026/08/16 13:30 14m nogikh@google.com upstream report job log log

Sample crash report:
==================================================================
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/0x1c60 drivers/usb/usbip/vhci_tx.c:241
Read of size 8 at addr ffff88802ef95620 by task vhci_tx/6972

CPU: 1 UID: 0 PID: 6972 Comm: vhci_tx Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
Call Trace:
 <TASK>
 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/0x1c60 drivers/usb/usbip/vhci_tx.c:241
 kthread+0x38b/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
 </TASK>

Allocated by task 5863:
 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:409 [inline]
 __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:426
 kasan_kmalloc include/linux/kasan.h:263 [inline]
 __kmalloc_cache_noprof+0x3d0/0x670 mm/slub.c:5680
 _kmalloc_noprof include/linux/slab.h:991 [inline]
 _kzalloc_noprof include/linux/slab.h:1312 [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:4869 [inline]
 hub_port_init+0xb0b/0x28b0 drivers/usb/core/hub.c:5065
 hub_port_connect drivers/usb/core/hub.c:5514 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5725 [inline]
 port_event drivers/usb/core/hub.c:5889 [inline]
 hub_event+0x24e2/0x4cf0 drivers/usb/core/hub.c:5971
 process_one_work kernel/workqueue.c:3495 [inline]
 process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578
 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659
 kthread+0x38b/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 6970:
 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:264 [inline]
 __kasan_slab_free+0x5c/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+0x1c5/0x6d0 mm/slub.c:6923
 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+0x38b/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 ffff88802ef95600
 which belongs to the cache kmalloc-64 of size 64
The buggy address is located 32 bytes inside of
 freed 64-byte region [ffff88802ef95600, ffff88802ef95640)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2ef95
flags: 0x80000000000000(node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000000 ffff88813ff118c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000200020 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 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 16917419559
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1856
 prep_new_page mm/page_alloc.c:1864 [inline]
 get_page_from_freelist+0x258b/0x2600 mm/page_alloc.c:3935
 __alloc_frozen_pages_noprof+0x227/0x440 mm/page_alloc.c:5444
 alloc_slab_page mm/slub.c:3384 [inline]
 allocate_slab+0x7d/0x5e0 mm/slub.c:3499
 new_slab mm/slub.c:3550 [inline]
 refill_objects+0x2d8/0x350 mm/slub.c:7539
 refill_sheaf mm/slub.c:2917 [inline]
 __pcs_replace_empty_main+0x339/0x690 mm/slub.c:4811
 alloc_from_pcs mm/slub.c:4887 [inline]
 slab_alloc_node mm/slub.c:5021 [inline]
 __do_kmalloc_node mm/slub.c:5530 [inline]
 __kmalloc_noprof+0x546/0x790 mm/slub.c:5556
 _kmalloc_noprof include/linux/slab.h:995 [inline]
 _kzalloc_noprof include/linux/slab.h:1312 [inline]
 handler_new_ref+0x244/0x930 drivers/media/v4l2-core/v4l2-ctrls-core.c:1966
 v4l2_ctrl_add_handler+0x19f/0x290 drivers/media/v4l2-core/v4l2-ctrls-core.c:2527
 vivid_create_controls+0x343c/0x3c40 drivers/media/test-drivers/vivid/vivid-ctrls.c:2092
 vivid_create_instance drivers/media/test-drivers/vivid/vivid-core.c:1934 [inline]
 vivid_probe+0x4112/0x70d0 drivers/media/test-drivers/vivid/vivid-core.c:2096
 platform_probe+0xf9/0x190 drivers/base/platform.c:1508
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x254/0xae0 drivers/base/dd.c:707
 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:869
 driver_probe_device+0x4f/0x240 drivers/base/dd.c:899
 __driver_attach+0x34e/0x630 drivers/base/dd.c:1300
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88802ef95500: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc
 ffff88802ef95580: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
>ffff88802ef95600: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
                               ^
 ffff88802ef95680: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc
 ffff88802ef95700: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
==================================================================

Crashes (37):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/29 06:21 upstream c339f4010dea b1d00f76 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/10/01 23:07 upstream d24e8ac715de 6d32eb1f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/09/29 04:09 upstream 72d3fcf802c4 7bf4ea23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/08/28 13:49 upstream 1b78070aaef6 bcbc8ceb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/08/27 07:14 upstream 73e3f0710014 a2b77b9e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/08/22 15:48 upstream 26260251022f 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/08/13 18:13 upstream 3aa1dcaa4f6f a9ede23c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/07/17 12:33 upstream fce2dfa773ce 7f27c57a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/07/14 05:27 upstream 0f26556c5eee 2130f682 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/07/02 00:39 upstream 665159e24674 27192279 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/06/29 11:56 upstream dc59e4fea9d8 6a0c72dc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/06/04 18:20 upstream ba3e43a9e601 197909be .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/05/14 09:00 upstream e1914add2799 6ccb967e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/05/06 08:18 upstream 9207d47f966b 26da2c66 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/04/17 17:38 upstream 43cfbdda5af6 24ecfc1e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2025/12/31 01:00 upstream dbf8fe85a16a d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2025/12/17 19:07 upstream ea1013c15392 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/07/19 00:43 linux-next cc2b5f627e8c 72524a66 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/07/16 13:00 linux-next cc2b5f627e8c 27a8bd60 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/07/10 13:48 linux-next 34cf6dafc474 99e64375 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/07/06 23:43 linux-next 8e9685d3c41c 88b240e4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in vhci_tx_loop
2026/07/06 09:28 linux-next 2b763db0c276 fcece630 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in vhci_tx_loop
2026/06/26 17:56 linux-next 30ffa8de54e5 7ff32d8b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/06/20 17:50 linux-next 3ce97bd3c4f1 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/06/14 16:39 linux-next c425609d6ac4 1d2f3589 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/06/04 20:52 linux-next f7af91adc230 197909be .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: slab-use-after-free Read in vhci_tx_loop
2026/05/15 01:19 linux-next e98d21c170b0 6ccb967e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/05/08 16:31 linux-next e98d21c170b0 5633175a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/05/07 17:12 linux-next 17c7841d09ee e358bca5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/04/21 06:59 linux-next 97e797263a5e 3f2e655b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in vhci_tx_loop
2026/09/22 19:51 upstream f0100363d8c3 3e2106e5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in vhci_tx_loop
2026/06/07 02:29 upstream 8e65320d91cd cc095639 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in vhci_tx_loop
2026/07/11 09:18 linux-next bee763d5f341 d78ea535 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in vhci_tx_loop
2026/05/15 00:53 linux-next e98d21c170b0 6ccb967e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in vhci_tx_loop
2026/05/14 20:16 linux-next e98d21c170b0 6ccb967e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in vhci_tx_loop
2026/05/08 18:44 linux-next e98d21c170b0 0c5a8d8f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in vhci_tx_loop
2026/01/15 07:10 linux-next 9b7977f9e39b d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in vhci_tx_loop
* Struck through repros no longer work on HEAD.