CVE-2026-139686: ASoC: SOF: imx: Prevent stack OOB read in DSP panic dump
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: imx: Prevent stack OOB read in DSP panic dump
Commit 58bb5081cba1 ("ASoC: SOF: Xtensa: dump ar registers to restore call stack") added a shared Xtensa helper that iterates over a flexible array of AR registers (ar[]) controlled by plathdr.numaregs.
While Intel IPC4 allocates dynamic storage for the AR block, the i.MX IPC3 path reads the oops message into a stack-allocated struct without backing storage for ar[], while leaving numaregs unvalidated. This causes a stack out-of-bounds read when printing a DSP panic.
Clear numaregs to 0 on i.MX since the AR block is not fetched or supported on this platform, preventing unsafe out-of-bounds memory accesses in the shared Xtensa helper.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Clear numaregs to 0 on i.MX, where the AR block is not fetched.
Linux kernel ASoC SOF on i.MX numaregs = 0
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The affected path is the Linux kernel ASoC SOF i.MX IPC3 DSP panic-dump handling. It applies when an i.MX DSP panic message is processed; Intel IPC4 uses dynamically allocated storage for the AR register block and is not described as having this specific condition.
What must occur for the out-of-bounds read to be triggered?
A DSP panic dump must be handled on the i.MX IPC3 path with a panic message whose plat_hdr.numaregs value causes the shared Xtensa helper to iterate over AR registers. The i.MX stack-allocated message structure has no backing storage for the flexible ar[] array.
What mitigation is available if the fix cannot be applied immediately?
The provided fix clears numaregs to 0 for i.MX, because that platform does not fetch or support the AR register block. No other workaround is stated in the available information.