================================================================== BUG: KFENCE: use-after-free read in string_nocheck lib/vsprintf.c:648 [inline] BUG: KFENCE: use-after-free read in string+0x1c9/0x4d0 lib/vsprintf.c:730 Use-after-free read at 0xffff88823befcf58 (in kfence-#125): string_nocheck lib/vsprintf.c:648 [inline] string+0x1c9/0x4d0 lib/vsprintf.c:730 vsnprintf+0x422/0x1300 lib/vsprintf.c:2949 add_uevent_var+0x183/0x3a0 lib/kobject_uevent.c:682 rc_dev_uevent+0x17d/0x1c0 drivers/media/rc/rc-main.c:1632 dev_uevent+0x2f1/0x870 drivers/base/core.c:2783 uevent_show+0x1ca/0x3a0 drivers/base/core.c:2830 dev_attr_show+0x52/0xa0 drivers/base/core.c:2491 sysfs_kf_seq_show+0x217/0x3f0 fs/sysfs/file.c:65 seq_read_iter+0x32f/0x1270 fs/seq_file.c:231 kernfs_fop_read_iter+0x46c/0x610 fs/kernfs/file.c:290 new_sync_read fs/read_write.c:493 [inline] vfs_read+0x82e/0xb40 fs/read_write.c:574 ksys_read+0x12a/0x250 fs/read_write.c:716 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f kfence-#125: 0xffff88823befc800-0xffff88823befcfd7, size=2008, cache=kmalloc-2k allocated by task 30 on cpu 1 at 329.347907s (5.228319s ago): _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] redrat3_dev_probe+0x326/0x2b50 drivers/media/rc/redrat3.c:1023 usb_probe_interface+0x386/0x9b0 drivers/usb/core/driver.c:399 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:706 __driver_probe_device+0x210/0x460 drivers/base/dd.c:868 driver_probe_device+0x4a/0x140 drivers/base/dd.c:898 __device_attach_driver+0x1df/0x320 drivers/base/dd.c:1026 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4d0 drivers/base/dd.c:1098 device_initial_probe+0xaf/0xd0 drivers/base/dd.c:1153 bus_probe_device+0x64/0x160 drivers/base/bus.c:620 device_add+0x121d/0x1970 drivers/base/core.c:3776 usb_set_configuration+0xd97/0x1c60 drivers/usb/core/message.c:2268 usb_generic_driver_probe+0xa1/0xe0 drivers/usb/core/generic.c:250 usb_probe_device+0xef/0x400 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:706 __driver_probe_device+0x210/0x460 drivers/base/dd.c:868 driver_probe_device+0x4a/0x140 drivers/base/dd.c:898 __device_attach_driver+0x1df/0x320 drivers/base/dd.c:1026 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4d0 drivers/base/dd.c:1098 device_initial_probe+0xaf/0xd0 drivers/base/dd.c:1153 bus_probe_device+0x64/0x160 drivers/base/bus.c:620 device_add+0x121d/0x1970 drivers/base/core.c:3776 usb_new_device.part.0+0xcc2/0x1686 drivers/usb/core/hub.c:2708 usb_new_device include/linux/workqueue.h:715 [inline] hub_port_connect drivers/usb/core/hub.c:5580 [inline] hub_port_connect_change drivers/usb/core/hub.c:5720 [inline] port_event drivers/usb/core/hub.c:5884 [inline] hub_event.cold+0x1e3/0xe90 drivers/usb/core/hub.c:5966 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 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 freed by task 30 on cpu 1 at 334.411917s (0.165768s ago): redrat3_delete drivers/media/rc/redrat3.c:466 [inline] redrat3_dev_probe+0x107a/0x2b50 drivers/media/rc/redrat3.c:1124 usb_probe_interface+0x386/0x9b0 drivers/usb/core/driver.c:399 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:706 __driver_probe_device+0x210/0x460 drivers/base/dd.c:868 driver_probe_device+0x4a/0x140 drivers/base/dd.c:898 __device_attach_driver+0x1df/0x320 drivers/base/dd.c:1026 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4d0 drivers/base/dd.c:1098 device_initial_probe+0xaf/0xd0 drivers/base/dd.c:1153 bus_probe_device+0x64/0x160 drivers/base/bus.c:620 device_add+0x121d/0x1970 drivers/base/core.c:3776 usb_set_configuration+0xd97/0x1c60 drivers/usb/core/message.c:2268 usb_generic_driver_probe+0xa1/0xe0 drivers/usb/core/generic.c:250 usb_probe_device+0xef/0x400 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:628 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:706 __driver_probe_device+0x210/0x460 drivers/base/dd.c:868 driver_probe_device+0x4a/0x140 drivers/base/dd.c:898 __device_attach_driver+0x1df/0x320 drivers/base/dd.c:1026 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:500 __device_attach+0x1e4/0x4d0 drivers/base/dd.c:1098 device_initial_probe+0xaf/0xd0 drivers/base/dd.c:1153 bus_probe_device+0x64/0x160 drivers/base/bus.c:620 device_add+0x121d/0x1970 drivers/base/core.c:3776 usb_new_device.part.0+0xcc2/0x1686 drivers/usb/core/hub.c:2708 usb_new_device include/linux/workqueue.h:715 [inline] hub_port_connect drivers/usb/core/hub.c:5580 [inline] hub_port_connect_change drivers/usb/core/hub.c:5720 [inline] port_event drivers/usb/core/hub.c:5884 [inline] hub_event.cold+0x1e3/0xe90 drivers/usb/core/hub.c:5966 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 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 CPU: 1 UID: 0 PID: 4981 Comm: udevd Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2026 RIP: 0010:string_nocheck lib/vsprintf.c:648 [inline] RIP: 0010:string+0x1c9/0x4d0 lib/vsprintf.c:730 Code: 83 c5 01 48 b9 00 00 00 00 00 fc ff df 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 0f b6 04 08 38 d0 7f 08 84 c0 0f 85 a3 02 00 00 <44> 0f b6 65 ff 31 ff 44 89 e6 e8 28 51 3f f6 45 84 e4 0f 85 55 ff RSP: 0018:ffffc900034ef788 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88802a14e244 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: ffffffff8bccb6db RDI: ffff88823befcf58 RBP: ffff88823befcf59 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000001 R12: ffff88823befbf58 R13: ffff88802a14ea1c R14: ffff88823befcf58 R15: 0000000000000000 FS: 00007f3d4c959880(0000) GS:ffff888123c56000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff88823befcf58 CR3: 000000007fe2f000 CR4: 0000000000350ef0 Call Trace: vsnprintf+0x422/0x1300 lib/vsprintf.c:2949 add_uevent_var+0x183/0x3a0 lib/kobject_uevent.c:682 rc_dev_uevent+0x17d/0x1c0 drivers/media/rc/rc-main.c:1632 dev_uevent+0x2f1/0x870 drivers/base/core.c:2783 uevent_show+0x1ca/0x3a0 drivers/base/core.c:2830 dev_attr_show+0x52/0xa0 drivers/base/core.c:2491 sysfs_kf_seq_show+0x217/0x3f0 fs/sysfs/file.c:65 seq_read_iter+0x32f/0x1270 fs/seq_file.c:231 kernfs_fop_read_iter+0x46c/0x610 fs/kernfs/file.c:290 new_sync_read fs/read_write.c:493 [inline] vfs_read+0x82e/0xb40 fs/read_write.c:574 ksys_read+0x12a/0x250 fs/read_write.c:716 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3d4c2a7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffd8d1b9af0 EFLAGS: 00000202 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f3d4c959880 RCX: 00007f3d4c2a7407 RDX: 0000000000001000 RSI: 0000557a3b815920 RDI: 000000000000000c RBP: 00007f3d4c3efff0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000000a R13: 00007f3d4c3efea0 R14: 0000000000000000 R15: 0000557a3b7e52f0 ================================================================== ---------------- Code disassembly (best guess): 0: 83 c5 01 add $0x1,%ebp 3: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx a: fc ff df d: 48 89 f8 mov %rdi,%rax 10: 48 89 fa mov %rdi,%rdx 13: 48 c1 e8 03 shr $0x3,%rax 17: 83 e2 07 and $0x7,%edx 1a: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax 1e: 38 d0 cmp %dl,%al 20: 7f 08 jg 0x2a 22: 84 c0 test %al,%al 24: 0f 85 a3 02 00 00 jne 0x2cd * 2a: 44 0f b6 65 ff movzbl -0x1(%rbp),%r12d <-- trapping instruction 2f: 31 ff xor %edi,%edi 31: 44 89 e6 mov %r12d,%esi 34: e8 28 51 3f f6 call 0xf63f5161 39: 45 84 e4 test %r12b,%r12b 3c: 0f .byte 0xf 3d: 85 55 ff test %edx,-0x1(%rbp)