Linux
ALSA: ump: Fix buffer overflow at UMP SysEx message conversion
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0b5288f5fe63eab687c14e5940b9e0d532b129f2, < ce4f77bef276e7d2eb7ab03a5d08bcbaa40710ec
- >= 0b5288f5fe63eab687c14e5940b9e0d532b129f2, < 226beac5605afbb33f8782148d188b64396145a4
- >= 0b5288f5fe63eab687c14e5940b9e0d532b129f2, < 42ef48dd4ebb082a1a90b5c3feeda2e68a9e32fe
- >= 0b5288f5fe63eab687c14e5940b9e0d532b129f2, < 56f1f30e6795b890463d9b20b11e576adf5a2f77
Fixed in ce4f77bef276e7d2eb7ab03a5d08bcbaa40710ec, 226beac5605afbb33f8782148d188b64396145a4, 42ef48dd4ebb082a1a90b5c3feeda2e68a9e32fe, 56f1f30e6795b890463d9b20b11e576adf5a2f77
- 6.5
Fixed in 0, 6.6.90, 6.12.28, 6.14.6, 6.15
Mitigation
Upgrade Linux to ce4f77bef276e7d2eb7ab03a5d08bcbaa40710ec or 226beac5605afbb33f8782148d188b64396145a4 or 42ef48dd4ebb082a1a90b5c3feeda2e68a9e32fe or 56f1f30e6795b890463d9b20b11e576adf5a2f77 or later.
Upgrade Linux to 0 or 6.6.90 or 6.12.28 or 6.14.6 or 6.15 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.