{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2025-37891", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2025-04-16T04:51:23.963Z", "datePublished": "2025-05-19T07:19:04.583Z", "dateUpdated": "2026-08-05T11:58:06.907Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:58:06.907Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: ump: Fix buffer overflow at UMP SysEx message conversion\n\nThe conversion function from MIDI 1.0 to UMP packet contains an\ninternal buffer to keep the incoming MIDI bytes, and its size is 4, as\nit was supposed to be the max size for a MIDI1 UMP packet data.\nHowever, the implementation overlooked that SysEx is handled in a\ndifferent format, and it can be up to 6 bytes, as found in\ndo_convert_to_ump(). It leads eventually to a buffer overflow, and\nmay corrupt the memory when a longer SysEx message is received.\n\nThe fix is simply to extend the buffer size to 6 to fit with the SysEx\nUMP message." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH" }, "scenarios": [ { "lang": "en", "value": "AV:L - The overflow is triggered by writing a MIDI 1.0 SysEx byte stream to the legacy rawmidi character device (/dev/snd/midiCxDy) that sound/core/ump.c creates for every UMP endpoint, reached via process_legacy_output() from an ordinary write(2). The alternate f_midi2 USB-gadget path is physical, but the local rawmidi path requires only local system access.\nAC:L - The attacker deterministically triggers the overflow by writing 0xF0 followed by five or more data bytes; the fifth byte directly overwrites the low byte of cvt->len, giving the attacker a chosen write offset with no race, no memory-layout guessing, and no retry logic.\nPR:L - Only an unprivileged local account with access to the ALSA MIDI device node is needed (audio group or active-seat uaccess ACL; an app with MIDI access on Android) — no capabilities, no root, and no privileged ioctl on the path.\nUI:N - The attacker writes to the MIDI device directly; no victim action is required. The presence of a UMP endpoint is an environmental precondition the attacker can satisfy themselves by attaching a USB MIDI 2.0 device or using an existing gadget/MIDI 2.0 interface.\nS:U - The corruption is confined to kernel heap memory within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed.\nC:H - Attacker-controlled corruption of adjacent kmalloc-4k slab objects yields a read primitive by overwriting neighbouring length/pointer/index fields, and cvt_legacy_sysex_to_ump() additionally reads far out of bounds past the struct when a huge cvt->len is flushed.\nI:H - This is an unbounded linear out-of-bounds heap write with fully attacker-chosen data (one byte per SysEx byte, at an attacker-chosen starting offset), a classic slab-overflow primitive that can corrupt adjacent kernel objects and be escalated to arbitrary write and control-flow hijack.\nA:H - Walking off the end of the out_cvts allocation reliably corrupts slab metadata and neighbouring objects, causing oops/panic; the same write also destroys the converter's own state, so a trivial long SysEx message crashes the kernel." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "include/sound/ump_convert.h" ], "versions": [ { "version": "0b5288f5fe63eab687c14e5940b9e0d532b129f2", "lessThan": "ce4f77bef276e7d2eb7ab03a5d08bcbaa40710ec", "status": "affected", "versionType": "git" }, { "version": "0b5288f5fe63eab687c14e5940b9e0d532b129f2", "lessThan": "226beac5605afbb33f8782148d188b64396145a4", "status": "affected", "versionType": "git" }, { "version": "0b5288f5fe63eab687c14e5940b9e0d532b129f2", "lessThan": "42ef48dd4ebb082a1a90b5c3feeda2e68a9e32fe", "status": "affected", "versionType": "git" }, { "version": "0b5288f5fe63eab687c14e5940b9e0d532b129f2", "lessThan": "56f1f30e6795b890463d9b20b11e576adf5a2f77", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "include/sound/ump_convert.h" ], "versions": [ { "version": "6.5", "status": "affected" }, { "version": "0", "lessThan": "6.5", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.90", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.28", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.14.6", "lessThanOrEqual": "6.14.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.15", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.5", "versionEndExcluding": "6.6.90" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.5", "versionEndExcluding": "6.12.28" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.5", "versionEndExcluding": "6.14.6" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.5", "versionEndExcluding": "6.15" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/ce4f77bef276e7d2eb7ab03a5d08bcbaa40710ec" }, { "url": "https://git.kernel.org/stable/c/226beac5605afbb33f8782148d188b64396145a4" }, { "url": "https://git.kernel.org/stable/c/42ef48dd4ebb082a1a90b5c3feeda2e68a9e32fe" }, { "url": "https://git.kernel.org/stable/c/56f1f30e6795b890463d9b20b11e576adf5a2f77" } ], "title": "ALSA: ump: Fix buffer overflow at UMP SysEx message conversion", "x_generator": { "engine": "bippy-1.2.0" } } } }