Local privilege escalation via f_midi use-after-free
Published Aug 6, 2026 · Updated Aug 6, 2026
Use-after-free in the Linux kernel f_midi driver allows local users to compromise the kernel through a concurrent rawmidi write. f_midi_free() frees the MIDI object without synchronizing pending midi->work, allowing f_midi_in_work() to dereference the released structure. An open ALSA rawmidi output substream must rearm the work during USB gadget teardown; successful exploitation can disclose or alter kernel data or crash the system.
Summary
What happened
Use-after-free in the Linux kernel f_midi driver allows local users to compromise the kernel through a concurrent rawmidi write. f_midi_free() frees the MIDI object without synchronizing pending midi->work, allowing f_midi_in_work() to dereference the released structure. An open ALSA rawmidi output substream must rearm the work during USB gadget teardown; successful exploitation can disclose or alter kernel data or crash the system.
The record
- CVE
- CVE-2026-64584
- Published
- Aug 6, 2026
- Updated
- Aug 6, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Aug 6, 2026CVE publishedPublication date reported by the CVE source.
- Aug 6, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=3635523e9b96213969693c320302d536774d8e9b
- Affected versionversion=5.10.235 <5.11
- Affected versionversion=5.12
- Affected versionversion=5.4.291 <5.5
- Affected versionversion=8653d71ce3763aedcf3d2331f59beda3fecd79e4 <380b4bef46c2eb260c7a9c6bb2c5be33ce5a38f9
- Affected versionversion=8653d71ce3763aedcf3d2331f59beda3fecd79e4 <5650c18d93a1db7e27cb5a40b394747eb4686d5b
- Affected versionversion=8653d71ce3763aedcf3d2331f59beda3fecd79e4 <87bc316dd6fc90072297c635e10b9aa6075ecda1
- Affected versionversion=8653d71ce3763aedcf3d2331f59beda3fecd79e4 <ac9a51d910bb7465c554c45320cb6c09f3d0b49d
- Affected versionversion=8653d71ce3763aedcf3d2331f59beda3fecd79e4 <f45089eaad0a083d71d84ff175741d7e157d9b69
- Affected versionversion=89019ab7a64fcdf98a2ba7799e5c6aff58d4a05d
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo