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.
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 not provided, but use‑after‑free bugs in kernel code are typically regarded as high‑severity, potentially offering kernel‑level privilege escalation. Because the flaw is triggered by either a normal USB IN‑endpoint completion or an ALSA rawmidi output‑stream start, an attacker can trigger the work after disabling the device by sending crafted USB MIDI packets or by opening a rawmidi substream locally. The EPSS score is unavailable, 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 DSA