AZL-116953: CVE-2026-139203 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ALSA: ump: Drain sequencer callbacks before freeing their client
sequmpclientfree() cancels groupnotifywork while the endpoint still publishes seqops and seqclient. 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 seqclient 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 ------------------------- -------------------- cancelworksync() load seqops and seqclient delete sequencer client clear endpoint binding kfree(client) schedule groupnotifywork read client->seqclient
Cover all calls through seqops 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 seqops with release/acquire ordering so the separately stored seqclient 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux UMP core, protect all calls through seq_ops with SRCU and publish/load seq_ops with release/acquire ordering so seq_client is initialized before callbacks use it. During teardown, clear the endpoint binding, wait for in-flight SRCU callbacks to return, then cancel group_notify_work before deleting the sequencer client and freeing the client.
Event History
Frequently Asked Questions
What conditions are required for exploitation?
The issue requires a USB UMP endpoint that remains able to receive input while its sequencer binding is being removed. A Function Block update must race with sequencer client teardown so that a callback accesses the client after it has been freed.
What is the likely impact of the race?
The described race can cause a sequencer callback or queued group notification work to access a freed client structure. The data does not specify a resulting impact such as crash, information disclosure, or code execution.
How does the resolved implementation prevent the issue?
The fix protects calls through seq_ops with SRCU, withdraws the operations pointer, and waits for in-flight callbacks before canceling work and deleting the client. This prevents callbacks from queuing work after final cancellation and keeps the client and callback code available until active callbacks return.