CVE-2026-64594: usb: gadget: f_fs: initialize reset_work at allocation time

Published Aug 6, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: ffs: initialize resetwork at allocation time

ffsfskillsb() unconditionally calls cancelworksync() on ffs->resetwork when a functionfs instance is unmounted:

ffsdatareset(ffs); cancelworksync(&ffs->resetwork);

However ffs->resetwork is only ever initialized via INITWORK() in ffsfuncsetalt() and ffsfuncdisable(), and only on the FFSDEACTIVATED path. That state is reached solely by ffsdataclosed() when the instance is mounted with the "nodisconnect" option, so for the common case (no "nodisconnect", or mounted and unmounted without ever being deactivated) resetwork is never initialized.

ffsdatanew() allocates the ffsdata with kzallocobj() and does not initialize resetwork, and ffsdatareset()/ffsdataclear() do not touch it either, so resetwork.func is left NULL. cancelworksync() on such a work then trips the WARNON(!work->func) guard in flushwork():

WARNING: kernel/workqueue.c:4301 at flushwork+0x330/0x360, CPU#3: umount Call trace: flushwork cancelworksync ffsfskillsb [usbffs] deactivatelockedsuper deactivatesuper cleanupmnt cleanupmnt taskworkrun exittousermodeloop el0svc

On older kernels cancelworksync() on a zero-initialized work struct was a silent no-op, which hid the missing initialization.

Initialize resetwork once in ffsdatanew() so it is always valid for the lifetime of the ffsdata, and drop the now-redundant INITWORK() calls from the two deactivation paths.

Affected Software

1 affected component
Linux Kernel

Event History

Aug 6, 2026
CVE Published
via MITRE·07:13 AM
Data Sourced
via MITRE·07:13 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-64594?

CVE-2026-64594 has a risk rating of 17, indicating a significant potential impact.

2

How do I fix CVE-2026-64594?

To address CVE-2026-64594, update to the latest version of the Linux kernel where the vulnerability has been patched.

3

What systems are affected by CVE-2026-64594?

CVE-2026-64594 affects instances of the Linux kernel that utilize the function file system (functionfs) for USB gadgets.

4

What does CVE-2026-64594 involve?

CVE-2026-64594 involves a flaw related to the improper initialization of the reset_work structure in the USB gadget functionality.

5

When was CVE-2026-64594 published?

CVE-2026-64594 was published on August 6, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203