Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local privileged configfs access
-
DeliveryConfigure f_midi2 gadget function
-
ExploitConcurrently read and write a string attribute
-
ExecutionWin show-vs-store race on freed pointer
-
PersistUAF read leaks freed memory / oops
-
ImpactDenial of service or marginal info leak
Vulnerability Assessment
| Exploitation Conditions | Requires local privileged access to the USB gadget configfs interface (CONFIG_USB_GADGET with the f_midi2 function configured; mounting and writing gadget attributes needs CAP_SYS_ADMIN). The attacker must concurrently read and write one of the f_midi2 string attributes (iface_name, a block name, or an EP string option) to win the race in which f_midi2_opts_str_store() frees the old string under opts->lock while a caller has already dereferenced opts->info.<field> outside that lock. Limiting factors: root/privileged local access, a device configured in USB gadget/device mode with f_midi2, and successful timing of a narrow race window - this is not remotely reachable and does not affect kernels predating the f_midi2 driver (roughly pre-6.6). |
| Impact | This is a classic configfs attribute-handling race in the USB MIDI 2.0 gadget function driver (f_midi2), tracked as a use-after-free (CWE-416 / CWE-362). The vendor CVSS is 7.8 (AV:L/AC:L/PR:L/C:H/I:H/A:H), but that score is over-stated on several axes. The vulnerable code lives in USB gadget configfs, which is only reachable by a privileged local process (mounting/populating configfs and configuring a gadget function requires CAP_SYS_ADMIN), so PR should be H, not L. Exploitation depends on winning a tight race between the show and store paths on a string attribute, so AC should be H, not L. The primary impact is a UAF read of a freed string that is copied back to userspace - that yields a small, non-deterministic kernel info leak (justifying C:L) and a likely crash/DoS (A:H), rather than full C:H/I:H compromise. Realistically this is a low-to-moderate local DoS with a marginal info-leak, not a high-priority issue. No EPSS, no KEV, and no public POC are present in the input; exploitation status is 'no public exploit identified at time of analysis.' Note the CVSS attack vector (AV:L) is consistent with the description (configfs / local), so there is no network-vs-local conflict to flag. |
| Exploit ScenarioDerived | A local privileged process that manages the USB gadget via configfs repeatedly reads a f_midi2 string attribute (iface_name, a block name, or an endpoint string) while a second thread concurrently writes the same attribute. If the write frees the old string between the caller dereferencing opts->info.<field> and the show routine taking opts->lock, the read touches freed memory - leaking freed kernel bytes to userspace and/or crashing the kernel. No public exploit code is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
Use-after-free in the Linux kernel's USB MIDI 2.0 gadget function driver (f_midi2) allows a local attacker who already holds privileged access to the gadget configfs interface to corrupt or read freed memory by winning a narrow race between a string attribute's show path and a concurrent store. The show handler f_midi2_opts_str_show() dereferences opts->info.<field> before acquiring opts->lock, while f_midi2_opts_str_store() frees the previous string under that same lock, so a colliding read can touch a pointer that has already been released - affecting iface_name, block name, and the EP string option attributes. Exploitation requires CAP_SYS_ADMIN-level local access to configfs on a kernel built with USB gadget support and f_midi2 configured; it is not remotely reachable, and no public exploit code or confirmed active exploitation was identified at time of analysis. NVD scores this at CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), while our independent assessment rates it lower (AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:H) because of the privileged prerequisite and the narrow, timing-dependent race window.
RemediationAI
Apply the vendor-released kernel patches: upgrade to 6.6.157, 6.12.110, 6.18.51, or 7.2.5 depending on your stable branch, or to 7.3-rc2 or later on mainline; the specific upstream commits are f9bdf4c4f6410a1dfafafa383a0e21069372657f, d11f3300b39e2daad2f0d9d66ddcc39a156cb594, e89e30f0b5d3004fe5955250bd8b04f3733e32ce, 49fab5e1bdb205c36c965d0e9677bc40d282d3a2, and fed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b, per https://nvd.nist.gov/vuln/detail/CVE-2026-90022. If immediate patching is not possible, the practical compensating control is to deny the prerequisite privilege rather than to patch code: the race is only reachable by a local process that can mount or already has writable access to the gadget configfs tree (CAP_SYS_ADMIN), so restrict configfs gadget administration to fully trusted root contexts, and consider blocking unprivileged user namespaces or container workloads from reaching the USB gadget subsystem, accepting that this may break legitimate gadget configuration tooling and containers that enumerate configfs. Where the f_midi2 MIDI 2.0 gadget function is not actually used, do not enable it at build time or blacklist/avoid loading the module (e.g., via module deny-listing or trimming the kernel config), which removes the vulnerable attributes entirely at the cost of losing MIDI 2.0 gadget functionality. Because the window is a narrow, timing-dependent race between a show and a concurrent store on iface_name, a block name, or an EP string option, avoiding concurrent attribute churn from multiple admin processes reduces but does not eliminate exposure; input-output is a use-after-free, so memory-corruption hardening such as slab quarantine/init-on-alloc and KASAN only detect or make exploitation harder and are not substitutes for the fix. No public exploit code was identified at time of analysis, and there is no confirmed active exploitation, so the primary urgency is standard patch-cycle prioritization for locally privileged kernel UAFs rather than emergency response.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw lives in the f_midi2 USB gadget function driver, part of the kernel's configfs-based USB gadget subsystem (CONFIG_USB_GADGET plus the f_midi2 function), which lets privileged users describe USB MIDI 2.0 device functions - interface names, block names, and endpoint string options - through writable kernel objects. The root cause is the classic combination of CWE-416 (use-after-free) with CWE-362 (concurrent execution using a shared resource with improper synchronization): the string-show callers read opts->info.<field>, a raw char pointer, outside opts->lock, and only then call f_midi2_opts_str_show(), which itself takes the lock before copying the string. Because f_midi2_opts_str_store() releases the old string under the lock when the attribute is rewritten, the unlocked pre-lock dereference in the show path can observe a pointer that has already been freed. The upstream fix changes f_midi2_opts_str_show() to accept a pointer to the string field rather than the already-dereferenced value, mirroring the existing store-path pattern, and updates the three callers accordingly so the pointer is only resolved once the lock is held. Affected CPE entries resolve to linux:linux; EUVD lists vulnerable ranges as fixed below 6.6.157, 6.12.110, 6.18.51, and 7.2.5, with the fix also landing in 7.3-rc2. This driver is comparatively recent, so kernels predating the f_midi2 function (roughly pre-6.6) are not affected.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Configfs gadget config needs root (PR:H) and the show-vs-store race must be won (AC:H); freed-string copy-to-user gives a marginal leak (C:L) and slab corruption (I:L), with crash-driven DoS (A:H).
AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:L
Primary rating from Vendor (Linux).
CVSS VectorVendor: Linux
Lifecycle Timeline
4DescriptionCVE.org
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f_midi2: fix use-after-free in string attribute show path
f_midi2_opts_str_show() takes the string lock internally, but its callers dereference the opts->info.<field> pointer before calling it, outside the lock. This races with f_midi2_opts_str_store(), which frees the old string under opts->lock when the attribute is written concurrently, the show path can read a pointer that gets freed before the lock inside str_show() is even taken.
Change f_midi2_opts_str_show() to take a pointer to the string field, matching the existing pattern in f_midi2_opts_str_store(), and dereference it only after the lock is held. Update all three callers (iface_name, block name, and the EP string option macro) accordingly.
Executive ViewAI
A high-severity memory corruption vulnerability in the Linux kernel's USB MIDI 2.0 gadget driver (f_midi2) could allow an authenticated local user with elevated privileges to compromise affected systems, potentially exposing sensitive data or disrupting operations. Organizations running Linux-based devices configured as USB MIDI 2.0 gadgets are affected, but exploitation requires local privileged access and no public exploit or confirmed active exploitation was identified at time of analysis. A vendor patch is available and should be applied through regular kernel maintenance to reduce risk.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Same technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Desktop 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP7 | Not-Affected |
| SUSE Linux Enterprise High Availability Extension 15 SP7 | Not-Affected |
| SUSE Linux Enterprise High Availability Extension 15 SP7 | Not-Affected |
| SUSE Linux Enterprise High Availability Extension 16.0 | Affected |
| SUSE Linux Enterprise High Availability Extension 16.0 | Affected |
| SUSE Linux Enterprise High Availability Extension 16.1 | Affected |
| SUSE Linux Enterprise High Availability Extension 16.1 | Affected |
| SUSE Linux Enterprise Micro 5.3 | Not-Affected |
| SUSE Linux Enterprise Micro 5.3 | Not-Affected |
| SUSE Linux Enterprise Micro 5.3 | Not-Affected |
| SUSE Linux Enterprise Micro 5.3 | Not-Affected |
| SUSE Linux Enterprise Micro 5.4 | Not-Affected |
| SUSE Linux Enterprise Micro 5.4 | Not-Affected |
| SUSE Linux Enterprise Micro 5.4 | Not-Affected |
| SUSE Linux Enterprise Micro 5.4 | Not-Affected |
| SUSE Linux Enterprise Micro 5.5 | Not-Affected |
| SUSE Linux Enterprise Micro 5.5 | Not-Affected |
| SUSE Linux Enterprise Micro 5.5 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Not-Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Micro 6.0 | Not-Affected |
| SUSE Linux Micro 6.0 | Not-Affected |
| SUSE Linux Micro 6.0 | Not-Affected |
| SUSE Linux Micro 6.1 | Not-Affected |
| SUSE Linux Micro 6.1 | Not-Affected |
| SUSE Linux Micro 6.1 | Not-Affected |
| SUSE Linux Micro 6.2 | Affected |
| SUSE Linux Micro 6.2 | Affected |
| SUSE Linux Micro Extras 6.0 | Not-Affected |
| SUSE Linux Micro Extras 6.0 | Not-Affected |
| SUSE Linux Micro Extras 6.0 | Not-Affected |
| SUSE Linux Micro Extras 6.1 | Not-Affected |
| SUSE Linux Micro Extras 6.1 | Not-Affected |
| SUSE Real Time Module 15 SP7 | Not-Affected |
| openSUSE Leap 16.0 | Affected |
| SUSE Linux Enterprise High Performance Computing 12 SP5 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP6 | Not-Affected |
| SUSE Linux Enterprise Server 11 SP4 LTSS EXTREME CORE | Not-Affected |
| SUSE Linux Enterprise Server 11 SP4 LTSS EXTREME CORE | Not-Affected |
| SUSE Linux Enterprise Server 12 SP5 | Not-Affected |
| SUSE Linux Enterprise Server 12 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 12 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP6 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Not-Affected |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | Not-Affected |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Not-Affected |
| SUSE CaaS Platform 4.0 | Not-Affected |
| SUSE Enterprise Storage 6 | Not-Affected |
| SUSE Enterprise Storage 7 | Not-Affected |
| SUSE Enterprise Storage 7.1 | Not-Affected |
| SUSE Linux Enterprise Desktop 11 SP4 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Desktop 15 SP6 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Not-Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Not-Affected |
| SUSE Linux Enterprise Micro 5.0 | Not-Affected |
| SUSE Linux Enterprise Micro 5.1 | Not-Affected |
| SUSE Linux Enterprise Micro 5.2 | Not-Affected |
| SUSE Linux Enterprise Micro 5.2 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Module for Basesystem 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Module for Development Tools 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP4 | Not-Affected |
| SUSE Linux Enterprise Real Time 15 SP5 | Not-Affected |
| SUSE Linux Enterprise Server 11 SP4 | Not-Affected |
| SUSE Linux Enterprise Server 11 SP4-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP1-BCL | Not-Affected |
| SUSE Linux Enterprise Server 15 SP1-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP1-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP2-BCL | Not-Affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP2-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP3 | Not-Affected |
| SUSE Linux Enterprise Server 15 SP3-BCL | Not-Affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Not-Affected |
| SUSE Linux Enterprise Server 15 SP3-LTSS | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | Not-Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | Not-Affected |
| SUSE Manager Proxy 4.0 | Not-Affected |
| SUSE Manager Proxy 4.1 | Not-Affected |
| SUSE Manager Proxy 4.2 | Not-Affected |
| SUSE Manager Proxy 4.3 | Not-Affected |
| SUSE Manager Proxy LTS 4.3 | Not-Affected |
| SUSE Manager Retail Branch Server 4.0 | Not-Affected |
| SUSE Manager Retail Branch Server 4.1 | Not-Affected |
| SUSE Manager Retail Branch Server 4.2 | Not-Affected |
| SUSE Manager Retail Branch Server 4.3 | Not-Affected |
| SUSE Manager Retail Branch Server LTS 4.3 | Not-Affected |
| SUSE Manager Server 4.0 | Not-Affected |
| SUSE Manager Server 4.1 | Not-Affected |
| SUSE Manager Server 4.2 | Not-Affected |
| SUSE Manager Server 4.3 | Not-Affected |
| SUSE Manager Server LTS 4.3 | Not-Affected |
| SUSE Real Time Module 15 SP4 | Not-Affected |
| SUSE Real Time Module 15 SP5 | Not-Affected |
| openSUSE Leap 15.3 | Not-Affected |
| openSUSE Leap 15.4 | Not-Affected |
| openSUSE Leap 15.4 | Not-Affected |
| openSUSE Leap 15.5 | Not-Affected |
| openSUSE Leap 15.5 | Not-Affected |
| openSUSE Leap 15.6 | Not-Affected |
EUVD-2026-80630
GHSA-3v5g-8x87-gm3v
NVD
CVE.org
EPSS
Exploit-DB