CVE-2026-139203

ALSA: ump: Drain sequencer callbacks before freeing their client

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ALSA: ump: Drain sequencer callbacks before freeing their client

seq_ump_client_free() cancels group_notify_work while the endpoint still
publishes seq_ops and seq_client. A received Function Block update can
enter the sequencer callback after cancellation and queue the work again.
Even disabling the work cannot protect a callback that already loaded
seq_client and then resumes after the client has been freed.

A USB UMP endpoint can continue receiving while its sequencer binding
is removed. The following order uses the same endpoint and client:

Sequencer binding removal UMP input completion
------------------------- --------------------
cancel_work_sync()
load seq_ops and seq_client
delete sequencer client
clear endpoint binding
kfree(client)
schedule group_notify_work
read client->seq_client

Cover all calls through seq_ops with SRCU in the UMP core. Withdraw the
operations pointer and wait for those callbacks before canceling work
and deleting the client. No producer can then queue work after the final
cancellation, and both the client and callback code remain available
until the last in-flight callback returns.

Publish seq_ops with release/acquire ordering so the separately stored
seq_client is initialized before any callback uses it. Use SRCU because
sequencer notification delivery can sleep; no callback needs to change
its existing execution context or allocation behavior.

Analysis

AI-generated

Technical impact

The vulnerability is a race condition in the ALSA Universal MIDI Port (UMP) subsystem of the Linux kernel. During client teardown, the driver cancels group_notify_work while the endpoint can still publish seq_ops and seq_client. A callback may be queued after the client has been freed, leading to a use‑after‑free that can corrupt kernel memory and cause a panic. This can abruptly halt system operation, denying all services that rely on the kernel.

Affected Systems

All Linux kernel releases that include the ALSA UMP implementation but have not incorporated the patch that drains sequencer callbacks before freeing their client are affected. The exact version range is not specified in the data; any kernel lacking the update introduced by commit 257c999b0a11912f08daeee86078b2139cdeb79f should be considered vulnerable.

Risk and Exploitability

No CVSS score is provided, and the EPSS data is not available. The vulnerability is not listed in the CISA KEV catalog. The exploit requires a malicious USB device or elevated privileges to interact with the UMP endpoint. Although no public exploits have been reported, the use‑after‑free nature means a successful exploitation would result in a kernel panic, a high‑impact outcome. The lack of exploitation data makes the real-world risk uncertain, but the potential impact warrants immediate action.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the ALSA UMP race‑condition fix referenced by commit 257c999b0a11912f08daeee86078b2139cdeb79f or newer.
  • If a kernel update is not immediately possible, disable the ALSA UMP subsystem by removing the module or setting appropriate kernel boot parameters to prevent the binding of UMP endpoints.
  • Restrict USB device access to trusted devices using udev rules or device Whitelisting so that only authorized devices can expose UMP endpoints.

Generated by OpenCVE AI on December 1, 2026 at 09:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ALSA: ump: Drain sequencer callbacks before freeing their client seq_ump_client_free() cancels group_notify_work while the endpoint still publishes seq_ops and seq_client. A received Function Block update can enter the sequencer callback after cancellation and queue the work again. Even disabling the work cannot protect a callback that already loaded seq_client and then resumes after the client has been freed. A USB UMP endpoint can continue receiving while its sequencer binding is removed. The following order uses the same endpoint and client: Sequencer binding removal UMP input completion ------------------------- -------------------- cancel_work_sync() load seq_ops and seq_client delete sequencer client clear endpoint binding kfree(client) schedule group_notify_work read client->seq_client Cover all calls through seq_ops with SRCU in the UMP core. Withdraw the operations pointer and wait for those callbacks before canceling work and deleting the client. No producer can then queue work after the final cancellation, and both the client and callback code remain available until the last in-flight callback returns. Publish seq_ops with release/acquire ordering so the separately stored seq_client is initialized before any callback uses it. Use SRCU because sequencer notification delivery can sleep; no callback needs to change its existing execution context or allocation behavior.
Title ALSA: ump: Drain sequencer callbacks before freeing their client
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM