CVE-2026-139713: usb: gadget: f_mass_storage: ignore class requests while inactive
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: fmassstorage: ignore class requests while inactive
SETCONFIGURATION is handled asynchronously by the mass-storage thread. A class request can arrive after the composite core selects the function but before the thread installs common->fsg, or while the function is being disabled.
fsgsetup() already rejects this state with -EOPNOTSUPP, but checking it through fsgisset() also emits a warning. Check the active function directly so normal requests during a configuration transition are rejected without hiding fsgisset() warnings from other internal paths.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this condition?
The condition is specific to Linux USB gadget configurations using the f_mass_storage function. It occurs while that function is transitioning into or out of an active configuration.
What request timing triggers the issue?
A USB class request can arrive after the composite core selects the mass-storage function but before the mass-storage thread installs common->fsg, or while the function is being disabled. During these inactive states, the request should be rejected with -EOPNOTSUPP without generating the normal fsg_is_set() warning.