CVE-2026-64584
published high CVSS 3.1 · 7.8usb: gadget: f_midi: cancel pending IN work before freeing the midi object
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux3635523e9b96213969693c320302d536774d8e9b to < f3c6f2c38062703d3dc7f86958bb0790c6959add · 8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < df18150126f66817e4d3f79f309e9c92d6ff384e · 8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < 620955b222c47332297d6bf38f78541aa699238a · 8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < 380b4bef46c2eb260c7a9c6bb2c5be33ce5a38f9 · 8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < 87bc316dd6fc90072297c635e10b9aa6075ecda1 · 8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < f45089eaad0a083d71d84ff175741d7e157d9b69 · 8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < ac9a51d910bb7465c554c45320cb6c09f3d0b49d · 8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < 5650c18d93a1db7e27cb5a40b394747eb4686d5b · 89019ab7a64fcdf98a2ba7799e5c6aff58d4a05d · 5.10.235 to < 5.10.265 · 5.4.291 to < 5.5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.12 (affected) · 0 to < 5.12 (unaffected · semver) · 5.10.265 through 5.10.* (unaffected · semver) · 5.15.216 through 5.15.* (unaffected · semver) · 6.1.183 through 6.1.* (unaffected · semver) · 6.6.148 through 6.6.* (unaffected · semver) · 6.12.101 through 6.12.* (unaffected · semver) · 6.18.42 through 6.18.* (unaffected · semver) · 7.1.6 through 7.1.* (unaffected · semver) · 7.2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.187-1 | DLA-4777-1 |
| SUSE / openSUSE | SLE-15-SP7 | cluster-md-kmp-defaultaarch64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.101-1~deb12u1 | DLA-4745-1 |
| Debian | trixie | linux | Advisory build | 6.12.101-1 | DSA-6415-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP7 | cluster-md-kmp-defaultppc64le | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | cluster-md-kmp-defaults390x | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | cluster-md-kmp-rtx86_64 | Advisory build | 6.4.0-150700.7.75.1 | SUSE-SU-2026:4120-1 |
| SUSE / openSUSE | SLE-15-SP7 | dlm-kmp-defaultaarch64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | dlm-kmp-defaultppc64le | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | dlm-kmp-defaults390x | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | dlm-kmp-defaultx86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | dlm-kmp-rtx86_64 | Advisory build | 6.4.0-150700.7.75.1 | SUSE-SU-2026:4120-1 |
| SUSE / openSUSE | SLE-15-SP7 | gfs2-kmp-defaultaarch64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | gfs2-kmp-defaultppc64le | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | gfs2-kmp-defaults390x | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | gfs2-kmp-defaultx86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | gfs2-kmp-rtx86_64 | Advisory build | 6.4.0-150700.7.75.1 | SUSE-SU-2026:4120-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-64kbaarch64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-64kb-develaarch64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-azureaarch64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-azurex86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-azure-develaarch64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-azure-develx86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-defaultaarch64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-defaultppc64le | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-defaults390x | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-defaultx86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-baseaarch64 | Advisory build | 6.4.0-150700.53.81.1.150700.17.45.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-baseppc64le | Advisory build | 6.4.0-150700.53.81.1.150700.17.45.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-basex86_64 | Advisory build | 6.4.0-150700.53.81.1.150700.17.45.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-develaarch64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-develppc64le | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-devels390x | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-develx86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-extrax86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-livepatchppc64le | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-livepatchs390x | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-livepatchx86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-livepatch-develppc64le | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-livepatch-devels390x | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-default-livepatch-develx86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-develnoarch | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-devel-rtnoarch | Advisory build | 6.4.0-150700.7.75.1 | SUSE-SU-2026:4120-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-docsnoarch | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-livepatch-6_4_0-150700_53_81-defaultppc64le | Advisory build | 1-150700.15.3.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-livepatch-6_4_0-150700_53_81-defaults390x | Advisory build | 1-150700.15.3.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-livepatch-6_4_0-150700_53_81-defaultx86_64 | Advisory build | 1-150700.15.3.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-livepatch-6_4_0-150700_7_75-rtx86_64 | Advisory build | 1-150700.1.3.1 | SUSE-SU-2026:4120-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-macrosnoarch | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-obs-buildaarch64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-obs-buildppc64le | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-obs-builds390x | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-obs-buildx86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-rtx86_64 | Advisory build | 6.4.0-150700.7.75.1 | SUSE-SU-2026:4120-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-rt-develx86_64 | Advisory build | 6.4.0-150700.7.75.1 | SUSE-SU-2026:4120-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-sourcenoarch | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-source-rtnoarch | Advisory build | 6.4.0-150700.7.75.1 | SUSE-SU-2026:4120-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-symsaarch64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-symsppc64le | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-symss390x | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-symsx86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-syms-rtx86_64 | Advisory build | 6.4.0-150700.7.75.1 | SUSE-SU-2026:4120-1 |
| SUSE / openSUSE | SLE-15-SP7 | kernel-zfcpdumps390x | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | ocfs2-kmp-defaultaarch64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | ocfs2-kmp-defaultppc64le | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | ocfs2-kmp-defaults390x | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | ocfs2-kmp-defaultx86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | ocfs2-kmp-rtx86_64 | Advisory build | 6.4.0-150700.7.75.1 | SUSE-SU-2026:4120-1 |
| SUSE / openSUSE | SLE-15-SP7 | reiserfs-kmp-defaultaarch64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | reiserfs-kmp-defaultppc64le | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | reiserfs-kmp-defaults390x | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-15-SP7 | reiserfs-kmp-defaultx86_64 | Advisory build | 6.4.0-150700.53.81.1 | SUSE-SU-2026:4254-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultppc64le | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23897-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultppc64le | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaults390x | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23897-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23897-1 |
| SUSE / openSUSE | SLE-16 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultppc64le | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23897-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultppc64le | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaults390x | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23897-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23897-1 |
| SUSE / openSUSE | SLE-16 | dlm-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultppc64le | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23897-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultppc64le | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaults390x | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23897-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23897-1 |
| SUSE / openSUSE | SLE-16 | gfs2-kmp-defaultx86_64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | kernel-64kbaarch64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | kernel-64kb-develaarch64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | kernel-64kb-extraaarch64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | kernel-azureaarch64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | kernel-azurex86_64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-develaarch64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-develx86_64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-extraaarch64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-extrax86_64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | kernel-azure-vdsox86_64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaultaarch64 | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| SUSE / openSUSE | SLE-16 | kernel-defaultppc64le | Advisory build | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_midi: cancel pending IN work before freeing the midi object The f_midi driver embeds a work item (midi->work) whose handler, f_midi_in_work(), dereferences the enclosing struct f_midi through container_of(). This work is armed from two sites: f_midi_complete(), on a normal IN-endpoint completion, and f_midi_in_trigger(), on an ALSA rawmidi output-stream start. Neither f_midi_disable() nor f_midi_unbind() cancels midi->work. f_midi_disable() only disables the endpoints and drains the in_req_fifo; it does not synchronize the work item, and the sound card is released asynchronously to the final free of the midi object. The midi object is reference-counted (midi->free_ref) and is freed in f_midi_free() only once both the usb_function reference and the rawmidi private_data reference have been dropped. In f_midi_unbind(), f_midi_disable() runs before the sound card is released, so while the USB endpoints are already disabled the rawmidi device is still usable by an open substream. A concurrent userspace write on such a substream can reach f_midi_in_trigger() and queue midi->work again after f_midi_disable() has returned. A work item armed this way may still be pending when the last reference drops and f_midi_free() proceeds to kfree(midi), letting f_midi_in_work() dereference the struct after it has been freed, a use-after-free. For this reason cancelling midi->work in f_midi_disable() would not be sufficient: the ALSA trigger path can rearm the work after disable() returns. Cancelling at the refcount-zero free site is the boundary after which neither arming source can survive, because by then both references that keep the midi object alive have been dropped: the USB endpoints are already disabled and the rawmidi device has been released. Fix this by calling cancel_work_sync(&midi->work) in the refcount-zero block of f_midi_free(), before the embedded work_struct is freed along with the rest of the structure. opts->lock is a sleeping mutex, so calling cancel_work_sync() under it is permitted, and the handler takes midi->transmit_lock rather than opts->lock, so no self-deadlock can occur while it waits for a running instance of the work to finish. This issue was found by an in-house static analysis tool.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The UAF is reached by local configfs UDC clear or function unlink (unregister_gadget → f_midi_unbind/disable) plus ALSA rawmidi write/close on /dev/snd/midi*; no USB host traffic or cable access is required, and dummy_hcd suffices, matching other gadget teardown UAFs scored AV:L. AC:L - The attacker controls both sides of the race: opening/writing the rawmidi substream to queue midi->work via f_midi_in_trigger after disable, and forcing unbind plus dropping the last free_ref via configfs unlink/close, so the window is freely repeatable. PR:L - Exploitation needs access to the gadget configfs tree and/or the ALSA MIDI node; both are routinely delegated to non-root system/audio accounts on Android and embedded MIDI gadgets, with no capability check on the rawmidi write or UDC store path itself. UI:N - The attacker performs the full sequence—configfs unbind/unlink, rawmidi write to rearm work, and close to free the midi object—without any action by another user or administrator. S:U - The use-after-free corrupts kernel heap within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - f_midi_in_work() container_of()s the freed embedded work_struct and then reads midi->in_ep, fifo, and port/substream fields; reclaiming the freed f_midi slab yields a classic UAF read/disclosure primitive. I:H - Post-free f_midi_transmit()/f_midi_drop_out_substreams() write through the reclaimed object (port state, kfifo, snd_rawmidi_drop_output), giving a heap write-after-free primitive suitable for control-flow hijack. A:H - Dereferencing the freed f_midi from system_highpri_wq reliably produces KASAN reports, oops, or kernel panic even without full exploitation.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 3635523e9b96213969693c320302d536774d8e9b to < f3c6f2c38062703d3dc7f86958bb0790c6959add (affected · git)8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < df18150126f66817e4d3f79f309e9c92d6ff384e (affected · git)8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < 620955b222c47332297d6bf38f78541aa699238a (affected · git)8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < 380b4bef46c2eb260c7a9c6bb2c5be33ce5a38f9 (affected · git)8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < 87bc316dd6fc90072297c635e10b9aa6075ecda1 (affected · git)8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < f45089eaad0a083d71d84ff175741d7e157d9b69 (affected · git)8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < ac9a51d910bb7465c554c45320cb6c09f3d0b49d (affected · git)8653d71ce3763aedcf3d2331f59beda3fecd79e4 to < 5650c18d93a1db7e27cb5a40b394747eb4686d5b (affected · git)89019ab7a64fcdf98a2ba7799e5c6aff58d4a05d (affected · git)5.10.235 to < 5.10.265 (affected · semver)5.4.291 to < 5.5 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 5.12 (affected)0 to < 5.12 (unaffected · semver)5.10.265 through 5.10.* (unaffected · semver)5.15.216 through 5.15.* (unaffected · semver)6.1.183 through 6.1.* (unaffected · semver)6.6.148 through 6.6.* (unaffected · semver)6.12.101 through 6.12.* (unaffected · semver)6.18.42 through 6.18.* (unaffected · semver)7.1.6 through 7.1.* (unaffected · semver)7.2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/380b4bef46c2eb260c7a9c6bb2c5be33ce5a38f9
- https://git.kernel.org/stable/c/5650c18d93a1db7e27cb5a40b394747eb4686d5b
- https://git.kernel.org/stable/c/620955b222c47332297d6bf38f78541aa699238a
- https://git.kernel.org/stable/c/87bc316dd6fc90072297c635e10b9aa6075ecda1
- https://git.kernel.org/stable/c/ac9a51d910bb7465c554c45320cb6c09f3d0b49d
- https://git.kernel.org/stable/c/df18150126f66817e4d3f79f309e9c92d6ff384e
- https://git.kernel.org/stable/c/f3c6f2c38062703d3dc7f86958bb0790c6959add
- https://git.kernel.org/stable/c/f45089eaad0a083d71d84ff175741d7e157d9b69
Provider assertions
1Linux · cna
usb: gadget: f_midi: cancel pending IN work before freeing the midi object
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 45165b73885167d2dd5658a16adc741da26851f1dc6ce9fe6dabd73f8ed645f1
- Ingested
- 23 Sep 2026, 09:26:10 UTC
- Source record
- Official CVE record