CVE-2026-139686

ASoC: SOF: imx: Prevent stack OOB read in DSP panic dump

Published Nov 30, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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 `plat_hdr.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.

Analysis

AI-generated

Technical impact

An out‑of‑bounds read occurs in the Linux kernel sound driver during a DSP panic on i.MX platforms. A helper function iterates over an AR register flexible array whose size is controlled by the numaregs field. On the i.MX IPC3 path the AR block is not allocated, yet numaregs is not validated, so the helper can read beyond the stack‑allocated struct. This read exposes kernel memory, enabling information disclosure and potentially local privilege escalation if an attacker can trigger a DSP panic.

Affected Systems

Affected systems are Linux kernel installations that use the i.MX IPC3 path of the SOF (Sound Open Firmware) driver prior to commit 58bb5081cba1, which clears numaregs for unsupported platforms. Any embedded Linux image on i.MX processors that has an older kernel with the unpatched DSP driver is vulnerable. The patch is part of recent kernel releases, so the specific version range is not listed. Administrators should verify whether their kernel includes this commit.

Risk and Exploitability

Because the flaw triggers during a kernel diagnostic output when a DSP panic occurs, it is inferred that an attacker likely requires a local or privileged user with access to the DSP subsystem or physical access to the device to cause the state. No CVSS score or EPSS value is reported, but the read exposes kernel memory, a high‑impact scenario. The vulnerability is not listed in the CISA KEV catalog, and no public exploitation footage is known. Nevertheless, the risk of information disclosure warrants applying the fix promptly.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that contains commit 58bb5081cba1, which clears numaregs on i.MX platforms.
  • If a kernel upgrade is not feasible, manually apply the patch to the source code by setting numaregs to zero before array access and rebuild the kernel.
  • As a temporary measure, disable DSP features that can trigger a panic or restrict access to the DSP subsystem so that only trusted users can invoke panic conditions.

Generated by OpenCVE AI on December 1, 2026 at 16:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-20
CWE-787
Type Values Removed Values Added
Weaknesses CWE-20
CWE-787
Type Values Removed Values Added
Description 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 `plat_hdr.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.
Title ASoC: SOF: imx: Prevent stack OOB read in DSP panic dump
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:37 PM