ALSA: usb-audio: Cancel pending work at closing a MIDI substream
Summary
GSD-2022-1003427: ALSA: usb-audio: Cancel pending work at closing a MIDI substream. Affects Kernel versions < 11868ca21585561659c2575b0d6508ef8e9c4291. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The ALSA (Advanced Linux Sound Architecture) is a software framework and part of the Linux kernel that provides an API for sound card device drivers. It allows multiple sound sources to be played on a single sound card simultaneously. The usb-audio driver is a part of ALSA that enables USB audio devices to be used with Linux. MIDI (Musical Instrument Digital Interface) is a protocol used for communicating musical information between electronic devices. A substream in the context of usb-audio refers to a specific stream of MIDI data. This vulnerability affects the usb-audio driver in the Linux kernel.
Vulnerability Detail
The vulnerability in the ALSA usb-audio driver allows an attacker to exploit a race condition when closing a MIDI substream. By sending specially crafted MIDI data while a substream is being closed, an attacker can trigger a use-after-free vulnerability, potentially leading to arbitrary code execution or a denial of service. This vulnerability has been fixed in Linux Kernel version v5.15.46 by commit 11868ca21585561659c2575b0d6508ef8e9c4291.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no known workaround for this vulnerability.
Conclusion
The ALSA usb-audio driver in the Linux Kernel is vulnerable to a race condition when closing a MIDI substream. This can be exploited to achieve arbitrary code execution or a denial of service. It is recommended to update the Linux Kernel to version v5.15.46 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
ALSA (Advanced Linux Sound Architecture) is a software framework and part of the Linux kernel that provides an API for sound card device drivers.
The usb-audio driver is a part of ALSA that enables USB audio devices to be used with Linux.
MIDI (Musical Instrument Digital Interface) is a protocol used for communicating musical information between electronic devices.
In the context of usb-audio, a substream refers to a specific stream of MIDI data.
To fix this vulnerability, update the Linux Kernel to version v5.15.46 or later.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.