ALSA: usb: Fix UAF at delayed release of MIDI2 EPs
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
ALSA: usb: Fix UAF at delayed release of MIDI2 EPs
The recent fix for UAF in ump_to_endpoint() caused another UAF because it tries to dereference the UMP endpoint object, but this might be executed at a delayed context where the endpoint has been already released.
Add private_free to clear the associated data for avoiding the further dereference for delayed releases.
From the CVE record · Linux
The Linux kernel’s ALSA USB code can dereference a MIDI2 UMP endpoint after it has been released during a delayed operation, causing a use-after-free. The input does not establish how an attacker could trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel with ALSA USB MIDI2 support should check their versions; affected versions are not specified.