ALSA: ump: Fix buffer overflow at UMP SysEx message conversion
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: ump: Fix buffer overflow at UMP SysEx message conversion
The conversion function from MIDI 1.0 to UMP packet contains an internal buffer to keep the incoming MIDI bytes, and its size is 4, as it was supposed to be the max size for a MIDI1 UMP packet data. However, the implementation overlooked that SysEx is handled in a different format, and it can be up to 6 bytes, as found in do_convert_to_ump(). It leads eventually to a buffer overflow, and may corrupt the memory when a longer SysEx message is received.
The fix is simply to extend the buffer size to 6 to fit with the SysEx UMP message.
From the CVE record · Linux
The Linux kernel's ALSA MIDI 1.0-to-UMP conversion uses a four-byte buffer for SysEx data that can be up to six bytes. A longer SysEx message can overflow the buffer and corrupt memory. The input does not specify access or authentication requirements.
Engineers running Linux kernels with ALSA UMP support should check their kernel versions; affected versions are not specified.