AZL-117307: CVE-2026-139715 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
firmware: armscmi: Protect xfer->asyncdone with xfer->lock
Asynchronous SCMI commands are completed by a delayed response. The RX path signals the response with complete(xfer->asyncdone). Unlike xfer->done, xfer->asyncdone is a pointer to a completion owned by whoever is waiting for the delayed response, and it stays valid only for as long as that waiter is still waiting. In doxferwithresponse() it is a DECLARECOMPLETIONONSTACK() in the caller's stack frame.
Nothing serialises the RX path against a waiter that gives up on a timeout. scmimsgresponsevalidate() does read xfer->asyncdone under xfer->lock, and documents that as a requirement, but the lock is dropped again before scmihandleresponse() dereferences the pointer, and neither the arming nor the disarming side takes it at all. So a delayed response arriving just as the wait times out can be signalled on a completion that is already gone:
waiter RX path (IRQ context) ------ --------------------- doxferwithresponse(): xfer->asyncdone = &asyncresponse doxfer(xfer) waitforcompletiontimeout(xfer->asyncdone, tmo) / returns 0, gives up / / response receive interrupt / scmihandleresponse(): scmixfercommandacquire() lock xfer->lock validate: asyncdone != NULL unlock xfer->lock xfer->asyncdone = NULL return -ETIMEDOUT / asyncresponse goes out of scope / complete(xfer->asyncdone)
That last complete() has two possible bad outcomes: it either dereferences the NULL just stored by the waiter or - if that store is not yet visible on the RX CPU - it takes a lock and writes to a stack frame that the waiter may already have returned from.
Fix this by making xfer->lock cover xfer->asyncdone end-to-end. Add helpers to arm and disarm it under the lock, use them on both the regular and the raw paths, and have the RX path read and signal the completion under that same lock. A waiter that is timing out then either completes its disarm before the RX path looks, in which case the delayed response is dropped, or blocks in the disarm until the RX path is done with the completion, in which case the completion is still alive.
Log the dropped case, so every path where a delayed response that was matched to a pending xfer and then discarded produces an error. (This is the same treatment scmimsgresponsevalidate() already gives a delayed response that arrives after the waiter has disarmed the xfer)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In Linux kernel firmware arm_scmi, protect xfer->async_done end-to-end with xfer->lock: use helpers to arm and disarm it under the lock, and have the RX path read and signal the completion under the same lock.
Event History
Frequently Asked Questions
What conditions are needed to trigger this issue?
An asynchronous SCMI command must receive a delayed response at the same time that the waiting caller times out. The race can cause the receive path, running in IRQ context, to signal a completion object after the waiting caller's stack-based completion is no longer valid.
Which systems are exposed?
Systems using the Azure Linux kernel package identified as version 6.6.161.1-1 and exercising the ARM SCMI asynchronous command path are the systems described by this record. The provided data does not state whether SCMI asynchronous commands are enabled or used by default.
How can I determine whether I am affected?
Check whether the installed Azure Linux kernel package is version 6.6.161.1-1. The record does not provide a fixed package version, configuration check, log signature, or runtime detection method.
Is a mitigation available if an update cannot be applied immediately?
No workaround or mitigation is provided in the available data. The issue is described as resolved upstream, but no remediated Azure Linux kernel package version is specified.