Impact
A use‑after‑free flaw exists in the Linux kernel f_midi USB gadget driver. The driver schedules a work item that accesses its parent midi structure. When the driver is released, the work item may still be pending and is not cancelled, causing a dereference of freed memory. This flaw can lead to arbitrary kernel code execution or a crash, allowing an attacker to gain elevated privileges or disrupt system availability. The description does not state how the flaw is triggered; the likely attack vector is inferred from references to USB IN‑endpoints and ALSA rawmidi trigger paths, suggesting that an attacker may be able to rearm the work via crafted USB MIDI packets or by controlling the rawmidi device.
Affected Systems
The vulnerability affects any Linux kernel that includes the f_midi USB gadget driver and has not yet applied the vendor‑supplied patch that cancels pending work before freeing the midi object. This includes all currently supported Linux kernel releases at the time of discovery. No specific kernel version range is supplied, so all affected builds prior to the patch are at risk.
Risk and Exploitability
The CVSS score is 7.8, indicating high severity, and use‑after‑free bugs in kernel code can potentially offer kernel‑level privilege escalation. Based on the description, it is inferred that the attack vector involves sending crafted USB MIDI packets after disabling the device or manipulating the local rawmidi substream to rearm the pending work. The EPSS score is < 1%, and the issue is not listed in CISA's KEV catalog, indicating that no known exploit has been publicly disclosed yet. Nonetheless, due to the kernel nature of the flaw, the potential impact warrants immediate attention.
OpenCVE Enrichment
Debian DLA
Debian DSA