Description
In the Linux kernel, the following vulnerability has been resolved:

ALSA: ump: fix double free of out_cvts on rawmidi error

snd_ump_attach_legacy_rawmidi() allocates the legacy conversion array
ump->out_cvts and, on the snd_rawmidi_new() error path, frees it with
kfree() but leaves ump->out_cvts pointing at the freed memory. When the
endpoint is later torn down, snd_ump_endpoint_free() frees ump->out_cvts
a second time, resulting in a double free.

The host snd-usb-audio driver attaches the legacy rawmidi for any USB
MIDI 2.0 (UMP) device, so a device that makes snd_rawmidi_new() fail
reaches this path on enumeration.

Clear ump->out_cvts after freeing it on the error path so it is not
freed again during teardown.

Discovered by XBOW, triaged by Baul Lee <baul.lee@xbow.com>
Published: 2026-08-15
Score: 7.0 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a double free in the ALSA ump component of the Linux kernel. When a USB MIDI 2.0 device fails to allocate its legacy rawmidi conversion array, the array is freed but its pointer is left dangling. Subsequent teardown frees the same memory again, causing a double‑free followed by a use‑after‑free. This flaw can lead to arbitrary kernel memory corruption, potentially resulting in a system crash. The weaknesses correspond to CWE‑1341 (Double Free).

Affected Systems

The issue occurs in the Linux kernel where the ALSA sound subsystem’s ump driver attaches legacy rawmidi for USB MIDI 2.0 devices. All kernel versions that contain the old snd_ump_attach_legacy_rawmidi implementation and have the snd_usb_audio module active are potentially affected. The fix is applied in the upstream kernel; systems running a kernel version prior to the patch must update.

Risk and Exploitability

The CVSS score is 7.0, and the EPSS score is < 1%. The vulnerability is not listed in the CISA KEV catalog, so no known widespread exploitation is reported. However, the double free can be triggered by feeding a malicious USB MIDI device that causes snd_rawmidi_new to fail, which is within physical access of an attacker. The likely attack vector is a malicious USB MIDI device attached to the system. Given the potential for kernel crashes, the risk is high. The exploit is local in nature and requires device enumeration; no network‑based attack vector is documented.

Generated by OpenCVE AI on August 21, 2026 at 23:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to or after the commit that resolves the double free in snd_ump.
  • Rebuild or reinstall the kernel if using a custom distribution to ensure the patch is applied and the system restarts into the updated kernel.
  • As a temporary workaround, disable the snd_usb_audio kernel module or prevent the legacy rawmidi attachment for USB MIDI 2.0 devices until the patch is applied.
  • Optionally, block or restrict USB MIDI devices via udev rules to reduce exposure.

Generated by OpenCVE AI on August 21, 2026 at 23:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6466-1 linux security update
History

Fri, 21 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 21 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1341
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important


Sat, 15 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 15 Aug 2026 12:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ALSA: ump: fix double free of out_cvts on rawmidi error snd_ump_attach_legacy_rawmidi() allocates the legacy conversion array ump->out_cvts and, on the snd_rawmidi_new() error path, frees it with kfree() but leaves ump->out_cvts pointing at the freed memory. When the endpoint is later torn down, snd_ump_endpoint_free() frees ump->out_cvts a second time, resulting in a double free. The host snd-usb-audio driver attaches the legacy rawmidi for any USB MIDI 2.0 (UMP) device, so a device that makes snd_rawmidi_new() fail reaches this path on enumeration. Clear ump->out_cvts after freeing it on the error path so it is not freed again during teardown. Discovered by XBOW, triaged by Baul Lee <baul.lee@xbow.com>
Title ALSA: ump: fix double free of out_cvts on rawmidi error
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:20:40.831Z

Reserved: 2026-08-15T05:44:03.907Z

Link: CVE-2026-74502

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T13:17:55.197

Modified: 2026-08-17T06:19:46.693

Link: CVE-2026-74502

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-74502 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T23:45:03Z

Weaknesses
  • CWE-1341

    Multiple Releases of Same Resource or Handle