CVE-2026-139713

usb: gadget: f_mass_storage: ignore class requests while inactive

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: f_mass_storage: ignore class requests while inactive

SET_CONFIGURATION 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.

fsg_setup() already rejects this state with -EOPNOTSUPP, but checking it
through fsg_is_set() also emits a warning. Check the active function
directly so normal requests during a configuration transition are rejected
without hiding fsg_is_set() warnings from other internal paths.

Analysis

AI-generated

Technical impact

The vulnerability resides in the Linux kernel USB gadget mass‑storage driver. When a configuration transition occurs, the SET_CONFIGURATION request is handled asynchronously by the mass‑storage thread. If a class request arrives during this transition or while the function is being disabled, the driver incorrectly ignores the request instead of rejecting it decisively. The result is that the gadget can enter an unusable state, leading to a denial of service for USB mass‑storage clients.

Affected Systems

Any Linux system that employs the kernel mass‑storage gadget driver is potentially affected. The vendor is the Linux kernel upstream project; specific affected kernel versions are not listed in the data, so use any kernel where the fsg_is_set path exists before the patch is applied.

Risk and Exploitability

The CVSS score and EPSS are not provided, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The most likely attack vector is a host device sending class requests during a configuration transition, which generally requires an attacker to physically or otherwise control the USB host. While no exploitation is documented, the logic flaw could be used to cause service interruptions on systems exposing a mass‑storage gadget. Mitigation relies on kernel updates that incorporate the described change.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the system’s Linux kernel to a version that includes the fsg_is_set patch.
  • If an update is not immediately possible, disable the mass‑storage gadget function until the update can be applied.
  • Configure system logs to capture any warnings from the fsg_is_set function so that anomalous requests can be identified and investigated promptly.

Generated by OpenCVE AI on December 1, 2026 at 00:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_mass_storage: ignore class requests while inactive SET_CONFIGURATION 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. fsg_setup() already rejects this state with -EOPNOTSUPP, but checking it through fsg_is_set() also emits a warning. Check the active function directly so normal requests during a configuration transition are rejected without hiding fsg_is_set() warnings from other internal paths.
Title usb: gadget: f_mass_storage: ignore class requests while inactive
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM