CVE-2026-139130

ASoC: SOF: Intel: hda: Stop the controller before freeing its DMA buffers

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

ASoC: SOF: Intel: hda: Stop the controller before freeing its DMA buffers

hda_dsp_probe() starts the CORB/RIRB DMA engines through
hda_dsp_ctrl_init_chip(), but neither hda_dsp_remove() nor the error
path of hda_dsp_probe() stops them before hda_dsp_stream_free() frees
the CORB/RIRB ring buffer and the position buffer. Unsolicited
responses also stay enabled, so the controller can keep writing RIRB
entries into the freed page.

Until commit 9e6966f70404 ("ASoC: SOF: Intel: hda: Keep non-alt mlinks
powered at probe on ACE2+"), hda_init_caps() dropped the initial
references to the non-alternate links, and dropping the last one
stopped the command DMA, so a probe that failed later, e.g. because
the firmware is missing, did not leave it running. Now it does, and
as the probe runs from a work item, the device stays bound after the
failure, with bus mastering enabled and the DMA engines pointed at
freed memory.

Normal removal resumes the device first, which restarts the command
DMA, so there the ring buffer is freed while the DMA is running until
pci_disable_device() clears bus mastering.

Stop the controller with hda_dsp_ctrl_stop_chip() before freeing the
buffers, as is done on suspend, and export it for use from hda.c.

This was reproduced by binding SOF in DSPless mode to a QEMU
ich9-intel-hda: after the probe fails with "SOF firmware and/or
topology file not found", CORB and RIRB DMA are still running with
unsolicited responses and bus mastering enabled, and the page they use
is soon reused as a page table.

Analysis

AI-generated

Technical impact

During the probe of an Intel HDA DSP device, the kernel driver starts DMA engines but, if the probe fails or an error path is taken, it fails to stop those DMA engines before releasing the memory buffers that hold the command and response rings. The remaining DMA activity happily writes into freed pages, which may be immediately reclaimed for other purposes, such as page tables. This reuse of memory can corrupt kernel data structures, causing a crash or providing an opportunity for arbitrary kernel memory writes and privilege escalation. The vulnerability is a classic use‑after‑free scenario involving DMA buffers.

Affected Systems

The kernel module in question is part of the Linux kernel’s ALSA System on Chip framework and is used on Intel platforms supporting Sound Open Firmware (SOF). All Linux kernel releases that did not incorporate the commit that stops the DMA engines before freeing the buffers (pre‑commit 9e6966f70404) are affected. Systems running newer kernels containing that commit are not vulnerable. Any distribution that shipped such kernels before the patch would be impacted.

Risk and Exploitability

The CVSS score is not provided and the EPSS score is unavailable, but the nature of the flaw suggests a high severity: failure to stop a bus‑mastering device while freeing its memory can lead to kernel corruption. The flaw is exploitable on systems that load the failing driver at boot or on‑demand, providing local or privileged‑user access to trigger the bug. Attacker must cause the probe to fail or otherwise trigger the error path; once this happens, memory corruption may occur immediately as the DMA continues to write to the reclaimed pages. The vulnerability is listed as not being part of the CISA KEV catalog, indicating that known exploits have not been observed in the wild yet, though the risk remains significant due to the kernel‑level impact.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes commit 9e6966f70404 or later, which stops the DMA engines before freeing the buffers
  • If an immediate upgrade is not possible, disable loading of the SOF or Intel HDA driver modules (e.g., by adding "blacklist snd_sof_hda" and "blacklist snd_hda_intel" to /etc/modprobe.d/blacklist.conf) to prevent the faulting probe from executing
  • As a temporary workaround on systems that must load the driver, patch the driver locally to call hda_dsp_ctrl_stop_chip() before freeing the DMA buffers, mirroring the fix performed in the upstream commit

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: Intel: hda: Stop the controller before freeing its DMA buffers hda_dsp_probe() starts the CORB/RIRB DMA engines through hda_dsp_ctrl_init_chip(), but neither hda_dsp_remove() nor the error path of hda_dsp_probe() stops them before hda_dsp_stream_free() frees the CORB/RIRB ring buffer and the position buffer. Unsolicited responses also stay enabled, so the controller can keep writing RIRB entries into the freed page. Until commit 9e6966f70404 ("ASoC: SOF: Intel: hda: Keep non-alt mlinks powered at probe on ACE2+"), hda_init_caps() dropped the initial references to the non-alternate links, and dropping the last one stopped the command DMA, so a probe that failed later, e.g. because the firmware is missing, did not leave it running. Now it does, and as the probe runs from a work item, the device stays bound after the failure, with bus mastering enabled and the DMA engines pointed at freed memory. Normal removal resumes the device first, which restarts the command DMA, so there the ring buffer is freed while the DMA is running until pci_disable_device() clears bus mastering. Stop the controller with hda_dsp_ctrl_stop_chip() before freeing the buffers, as is done on suspend, and export it for use from hda.c. This was reproduced by binding SOF in DSPless mode to a QEMU ich9-intel-hda: after the probe fails with "SOF firmware and/or topology file not found", CORB and RIRB DMA are still running with unsolicited responses and bus mastering enabled, and the page they use is soon reused as a page table.
Title ASoC: SOF: Intel: hda: Stop the controller before freeing its DMA buffers
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

No weakness.

Sources

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