{"id":"CVE-2026-139130","state":"PUBLISHED","title":"ASoC: SOF: Intel: hda: Stop the controller before freeing its DMA buffers","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: SOF: Intel: hda: Stop the controller before freeing its DMA buffers\n\nhda_dsp_probe() starts the CORB/RIRB DMA engines through\nhda_dsp_ctrl_init_chip(), but neither hda_dsp_remove() nor the error\npath of hda_dsp_probe() stops them before hda_dsp_stream_free() frees\nthe CORB/RIRB ring buffer and the position buffer.  Unsolicited\nresponses also stay enabled, so the controller can keep writing RIRB\nentries into the freed page.\n\nUntil commit 9e6966f70404 (\"ASoC: SOF: Intel: hda: Keep non-alt mlinks\npowered at probe on ACE2+\"), hda_init_caps() dropped the initial\nreferences to the non-alternate links, and dropping the last one\nstopped the command DMA, so a probe that failed later, e.g. because\nthe firmware is missing, did not leave it running.  Now it does, and\nas the probe runs from a work item, the device stays bound after the\nfailure, with bus mastering enabled and the DMA engines pointed at\nfreed memory.\n\nNormal removal resumes the device first, which restarts the command\nDMA, so there the ring buffer is freed while the DMA is running until\npci_disable_device() clears bus mastering.\n\nStop the controller with hda_dsp_ctrl_stop_chip() before freeing the\nbuffers, as is done on suspend, and export it for use from hda.c.\n\nThis was reproduced by binding SOF in DSPless mode to a QEMU\nich9-intel-hda: after the probe fails with \"SOF firmware and/or\ntopology file not found\", CORB and RIRB DMA are still running with\nunsolicited responses and bus mastering enabled, and the page they use\nis soon reused as a page table.","publishedAt":"2026-11-30T13:31:51.564Z","updatedAt":"2026-11-30T13:31:51.564Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9e6966f7040451603d4c93341d0205421046d902","status":"affected","lessThan":"83b15cf6a6113d1f7336ad83f520ae36e52e4220","versionType":"git"},{"version":"9e6966f7040451603d4c93341d0205421046d902","status":"affected","lessThan":"11ae63bd9030349a0136fb2edd1622a4a029edc8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/intel/hda-ctrl.c","sound/soc/sof/intel/hda.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/intel/hda-ctrl.c","sound/soc/sof/intel/hda.c"]}],"references":["https://git.kernel.org/stable/c/83b15cf6a6113d1f7336ad83f520ae36e52e4220","https://git.kernel.org/stable/c/11ae63bd9030349a0136fb2edd1622a4a029edc8"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139130.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139130","state":"PUBLISHED","datePublished":"2026-11-30T13:31:51.564Z","dateUpdated":"2026-11-30T13:31:51.564Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.915Z"},"containers":{"cna":{"title":"ASoC: SOF: Intel: hda: Stop the controller before freeing its DMA buffers","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: SOF: Intel: hda: Stop the controller before freeing its DMA buffers\n\nhda_dsp_probe() starts the CORB/RIRB DMA engines through\nhda_dsp_ctrl_init_chip(), but neither hda_dsp_remove() nor the error\npath of hda_dsp_probe() stops them before hda_dsp_stream_free() frees\nthe CORB/RIRB ring buffer and the position buffer.  Unsolicited\nresponses also stay enabled, so the controller can keep writing RIRB\nentries into the freed page.\n\nUntil commit 9e6966f70404 (\"ASoC: SOF: Intel: hda: Keep non-alt mlinks\npowered at probe on ACE2+\"), hda_init_caps() dropped the initial\nreferences to the non-alternate links, and dropping the last one\nstopped the command DMA, so a probe that failed later, e.g. because\nthe firmware is missing, did not leave it running.  Now it does, and\nas the probe runs from a work item, the device stays bound after the\nfailure, with bus mastering enabled and the DMA engines pointed at\nfreed memory.\n\nNormal removal resumes the device first, which restarts the command\nDMA, so there the ring buffer is freed while the DMA is running until\npci_disable_device() clears bus mastering.\n\nStop the controller with hda_dsp_ctrl_stop_chip() before freeing the\nbuffers, as is done on suspend, and export it for use from hda.c.\n\nThis was reproduced by binding SOF in DSPless mode to a QEMU\nich9-intel-hda: after the probe fails with \"SOF firmware and/or\ntopology file not found\", CORB and RIRB DMA are still running with\nunsolicited responses and bus mastering enabled, and the page they use\nis soon reused as a page table."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9e6966f7040451603d4c93341d0205421046d902","status":"affected","lessThan":"83b15cf6a6113d1f7336ad83f520ae36e52e4220","versionType":"git"},{"version":"9e6966f7040451603d4c93341d0205421046d902","status":"affected","lessThan":"11ae63bd9030349a0136fb2edd1622a4a029edc8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/intel/hda-ctrl.c","sound/soc/sof/intel/hda.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/intel/hda-ctrl.c","sound/soc/sof/intel/hda.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/83b15cf6a6113d1f7336ad83f520ae36e52e4220"},{"url":"https://git.kernel.org/stable/c/11ae63bd9030349a0136fb2edd1622a4a029edc8"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:51.564Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}