🇰🇷 한글 설명
Linux 커널의 ASoC SOF 구성 요소에서 시스템 절전 모드 해제 시 IPC 페이로드가 최신 DMA 상태를 반영하지 못하는 취약점이 발견되었습니다. 이로 인해 오래된 캐시 데이터가 펌웨어로 전송되어 DMA 채널 충돌이 발생하고, 결과적으로 펌웨어 오류 및 시스템 충돌을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터가 잠시 잠들었다가 깨어날 때, 소리 관련 장치가 예전 정보를 그대로 사용하여 충돌이 일어나는 문제입니다. 이 충돌 때문에 시스템이 멈추거나 소리 관련 기능이 제대로 작동하지 않을 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: ipc4-topology: Refresh copier IPC payload before widget setup
The ipc_config_data buffer for copier widgets is built once during
ipc_prepare (called from sof_pcm_setup_connected_widgets) and cached
for reuse. For host copiers this buffer contains the copier_data with
gtw_cfg.node_id (host DMA ID). For DAI copiers it additionally includes
a dma_config_tlv trailer with stream_id and dma_channel_id 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
copier_data and dma_config_tlv structures are correctly updated by
host_config and sdw_hda_dai_hw_params respectively. However, since the
widget list (spcm->stream[].list) persists across suspend,
sof_pcm_hw_params skips sof_pcm_setup_connected_widgets and ipc_prepare
never runs again to rebuild ipc_config_data. 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 copier_data and dma_config_tlv portions of
ipc_config_data in sof_ipc4_widget_setup right before the IPC message
is sent. This ensures the payload always reflects the current DMA state
regardless of whether ipc_prepare ran.
For DAI copiers, the gtw_cfg.config_length in copier_data is temporarily
inflated to include the TLV size (matching the ipc_config_data layout)
before copying, then restored, mirroring what
sof_ipc4_prepare_copier_module does when first building the buffer.
📍 영향받는 시스템
Linux Kernel (ASoC SOF component)
⚔️ 공격 벡터
로컬 시스템의 절전 모드(Suspend/Resume) 전환을 통한 시스템 불안정 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 ipc_config_data를 갱신하도록 수정해야 합니다.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인합니다.