CVE-2026-80525: ASoC: SOF: ipc4-topology: Refresh copier IPC payload before widget setup
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: ipc4-topology: Refresh copier IPC payload before widget setup
The ipcconfigdata buffer for copier widgets is built once during ipcprepare (called from sofpcmsetupconnectedwidgets) and cached for reuse. For host copiers this buffer contains the copierdata with gtwcfg.nodeid (host DMA ID). For DAI copiers it additionally includes a dmaconfigtlv trailer with streamid and dmachannelid for HDA link DMA.
On suspend/resume, both host and link DMA streams are released and re-allocated with potentially different stream tags. The underlying copierdata and dmaconfigtlv structures are correctly updated by hostconfig and sdwhdadaihwparams respectively. However, since the widget list (spcm->stream[].list) persists across suspend, sofpcmhwparams skips sofpcmsetupconnectedwidgets and ipcprepare never runs again to rebuild ipcconfigdata. The stale cached payload is then sent to firmware with boot-time DMA channel assignments, causing DMA channel conflicts that lead to firmware errors and crashes.
Fix this by refreshing copierdata and dmaconfigtlv portions of ipcconfigdata in sofipc4widgetsetup right before the IPC message is sent. This ensures the payload always reflects the current DMA state regardless of whether ipcprepare ran.
For DAI copiers, the gtwcfg.configlength in copierdata is temporarily inflated to include the TLV size (matching the ipcconfigdata layout) before copying, then restored, mirroring what sofipc4preparecopiermodule does when first building the buffer.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Implement the resolved behavior: refresh copier_data and dma_config_tlv portions of ipc_config_data immediately before the IPC message is sent in sof_ipc4_widget_setup (using updated DMA state after suspend/resume). This ensures the payload reflects current DMA channel/stream assignments even if ipc_prepare no longer runs and the widget list persists across suspend/resume.
Linux kernel (ASoC: SOF ipc4 topology copier IPC payload handling) Refresh cached copier IPC payload by rebuilding ipc_config_data (copier_data and dma_config_tlv portions) right before sending IPC message in sof_ipc4_widget_setup / sof_ipc4_prepare_copier_module = Ensure copier_data and dma_config_tlv are rebuilt/refreshed before the IPC message is sent (instead of reusing stale cached payload built during ipc_prepare during boot)