🇰🇷 한글 설명
Linux 커널의 ASoC SOF ipc4-control 구성 요소에서 TOCTOU(Time-of-Check to Time-of-Use) 취약점이 발견되었습니다. sof_ipc4_bytes_put() 함수가 새로운 데이터의 크기 대신 기존 버퍼의 크기를 사용하여 데이터를 복사함으로써, 데이터가 잘리거나 오래된 바이트가 복사될 수 있는 문제가 있습니다.
💡 쉬운 설명
데이터를 옮길 때 실제 들어온 양이 아니라 예전에 기록된 양을 기준으로 처리하여 정보가 틀어지는 문제입니다. 이로 인해 데이터가 일부 누락되거나 잘못된 정보가 시스템에 전달될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: ipc4-control: Fix TOCTOU in sof_ipc4_bytes_put
In sof_ipc4_bytes_put(), the copy size is derived from the old
data->size in the buffer rather than the incoming new data's size
field from ucontrol. If the new data has a different size, the copy
uses the wrong length: it may truncate valid data or copy stale bytes.
Fix by validating and using the incoming data's sof_abi_hdr.size from
ucontrol before copying.
📍 영향받는 시스템
Linux kernel (ASoC SOF ipc4-control 모듈 사용 시스템)
⚔️ 공격 벡터
조작된 크기 정보를 가진 IPC4 제어 메시지를 전송하여 데이터 불일치 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인