Instituto Nacional de ciberseguridad. Sección Incibe
Instituto Nacional de Ciberseguridad. Sección INCIBE-CERT

CVE-2026-68367

Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
10/08/2026
Última modificación:
23/08/2026

Descripción

*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> usb: gadget: f_tcm: synchronize delayed set_alt with teardown<br /> <br /> The f_tcm set_alt() path defers endpoint setup to a work item and<br /> completes the delayed status response from process context. The delayed<br /> work uses f_tcm private state and may complete the setup request after<br /> disconnect or function teardown has already moved on.<br /> <br /> Cancel and drain the delayed set_alt work when the function is unbound or<br /> freed. For disable paths, which are reached under the composite device<br /> lock, use a small state machine and a non-sleeping cancellation path<br /> instead of cancel_work_sync(). If the work is already running, mark it<br /> cancelled and let the worker own the cleanup; otherwise tcm_disable() can<br /> cancel the queued work and clean up immediately.<br /> <br /> Also serialize the final delayed-status completion with the cancellation<br /> check while holding the composite device lock. This prevents a disconnect<br /> from clearing delayed_status while the worker is about to complete the<br /> control request.<br /> <br /> Validation reproduced this kernel report:<br /> BUG: KASAN: slab-use-after-free in tcm_delayed_set_alt+0x6c/0xef0<br /> <br /> Call Trace:<br /> <br /> dump_stack_lvl+0x66/0xa0<br /> print_report+0xce/0x630<br /> ? tcm_delayed_set_alt+0x6c/0xef0<br /> ? srso_alias_return_thunk+0x5/0xfbef5<br /> ? __virt_addr_valid+0x188/0x320<br /> ? tcm_delayed_set_alt+0x6c/0xef0<br /> kasan_report+0xe0/0x110<br /> ? tcm_delayed_set_alt+0x6c/0xef0<br /> tcm_delayed_set_alt+0x6c/0xef0<br /> ? __pfx_tcm_delayed_set_alt+0x10/0x10<br /> ? process_one_work+0x4cb/0xb90<br /> ? rcu_is_watching+0x20/0x50<br /> ? tcm_delayed_set_alt+0x9/0xef0<br /> process_one_work+0x4d7/0xb90<br /> ? __pfx_process_one_work+0x10/0x10<br /> ? srso_alias_return_thunk+0x5/0xfbef5<br /> ? __list_add_valid_or_report+0x37/0xf0<br /> ? __pfx_tcm_delayed_set_alt+0x10/0x10<br /> ? srso_alias_return_thunk+0x5/0xfbef5<br /> worker_thread+0x2d8/0x570<br /> ? __pfx_worker_thread+0x10/0x10<br /> kthread+0x1ad/0x1f0<br /> ? __pfx_kthread+0x10/0x10<br /> ret_from_fork+0x3c9/0x540<br /> ? __pfx_ret_from_fork+0x10/0x10<br /> ? srso_alias_return_thunk+0x5/0xfbef5<br /> ? __switch_to+0x2e9/0x730<br /> ? __pfx_kthread+0x10/0x10<br /> ret_from_fork_asm+0x1a/0x30<br /> <br /> <br /> Allocated by task 544:<br /> kasan_save_stack+0x33/0x60<br /> kasan_save_track+0x14/0x30<br /> __kasan_kmalloc+0x8f/0xa0<br /> tcm_alloc+0x68/0x180<br /> usb_get_function+0x36/0x60<br /> config_usb_cfg_link+0x125/0x1b0<br /> configfs_symlink+0x322/0x890<br /> vfs_symlink+0xc2/0x270<br /> filename_symlinkat+0x295/0x2f0<br /> __x64_sys_symlinkat+0x62/0x90<br /> do_syscall_64+0x115/0x6a0<br /> entry_SYSCALL_64_after_hwframe+0x77/0x7f<br /> <br /> Freed by task 661:<br /> kasan_save_stack+0x33/0x60<br /> kasan_save_track+0x14/0x30<br /> kasan_save_free_info+0x3b/0x60<br /> __kasan_slab_free+0x43/0x70<br /> kfree+0x2f9/0x530<br /> config_usb_cfg_unlink+0x173/0x1e0<br /> configfs_unlink+0x1fa/0x340<br /> vfs_unlink+0x15c/0x510<br /> filename_unlinkat+0x2ba/0x450<br /> __x64_sys_unlinkat+0x63/0x90<br /> do_syscall_64+0x115/0x6a0<br /> entry_SYSCALL_64_after_hwframe+0x77/0x7f

Impacto