CVE-2026-64594
Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
06/08/2026
Última modificación:
06/08/2026
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
usb: gadget: f_fs: initialize reset_work at allocation time<br />
<br />
ffs_fs_kill_sb() unconditionally calls cancel_work_sync() on<br />
ffs->reset_work when a functionfs instance is unmounted:<br />
<br />
ffs_data_reset(ffs);<br />
cancel_work_sync(&ffs->reset_work);<br />
<br />
However ffs->reset_work is only ever initialized via INIT_WORK() in<br />
ffs_func_set_alt() and ffs_func_disable(), and only on the<br />
FFS_DEACTIVATED path. That state is reached solely by ffs_data_closed()<br />
when the instance is mounted with the "no_disconnect" option, so for the<br />
common case (no "no_disconnect", or mounted and unmounted without ever<br />
being deactivated) reset_work is never initialized.<br />
<br />
ffs_data_new() allocates the ffs_data with kzalloc_obj() and does not<br />
initialize reset_work, and ffs_data_reset()/ffs_data_clear() do not touch<br />
it either, so reset_work.func is left NULL. cancel_work_sync() on such a<br />
work then trips the WARN_ON(!work->func) guard in __flush_work():<br />
<br />
WARNING: kernel/workqueue.c:4301 at __flush_work+0x330/0x360, CPU#3: umount<br />
Call trace:<br />
__flush_work<br />
cancel_work_sync<br />
ffs_fs_kill_sb [usb_f_fs]<br />
deactivate_locked_super<br />
deactivate_super<br />
cleanup_mnt<br />
__cleanup_mnt<br />
task_work_run<br />
exit_to_user_mode_loop<br />
el0_svc<br />
<br />
On older kernels cancel_work_sync() on a zero-initialized work struct was<br />
a silent no-op, which hid the missing initialization.<br />
<br />
Initialize reset_work once in ffs_data_new() so it is always valid for<br />
the lifetime of the ffs_data, and drop the now-redundant INIT_WORK()<br />
calls from the two deactivation paths.
Impacto
Referencias a soluciones, herramientas e información
- https://git.kernel.org/stable/c/0de6ebbabfbbc9c28350283dc97d8a519d5c6dd7
- https://git.kernel.org/stable/c/3137b243c93982fe3460335e12f9247739766e10
- https://git.kernel.org/stable/c/69faa3779250df14f51d5084f938a99809546e52
- https://git.kernel.org/stable/c/7fe895e0a9651518c4fc082487da770ff9c14c7f
- https://git.kernel.org/stable/c/ba1867999dbc4085e6d8c52ac5266005b8b2bf07
- https://git.kernel.org/stable/c/c36393b0d14e1e9783888f821ffe29381b8f46dc
- https://git.kernel.org/stable/c/cb19e54ebe9baf3c3243083ade65c937339ccb7b
- https://git.kernel.org/stable/c/d5631081be07f20e764d3cb5c98ac0a1004fba51



