🇰🇷 한글 설명
Linux 커널의 ASoC SDCA 드라이버에서 ge_put_enum_double() 함수가 사용자로부터 입력받은 열거형(enum) 인덱스의 범위를 검증하지 않는 취약점이 발견되었습니다. 이로 인해 잘못된 인덱스를 사용할 경우 힙 메모리의 경계를 벗어나 데이터를 읽는 Out-of-bounds Read가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터 프로그램이 정해진 목록의 범위를 벗어난 번호를 요청했을 때, 이를 확인하지 않고 메모리를 읽어버리는 문제입니다. 공격자는 이를 이용해 시스템의 민감한 정보를 훔쳐볼 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SDCA: Validate written enum value in ge_put_enum_double()
ge_put_enum_double() passes the user-supplied enumeration index
item[0] to snd_soc_enum_item_to_val() without checking it against the
number of items in the enum:
ret = snd_soc_enum_item_to_val(e, item[0]);
snd_soc_enum_item_to_val() indexes the heap-allocated e->values[] array
with that index (e->values is set from a devm_kcalloc() of e->items
entries), so a control write with an out-of-range item[0] reads past the
end of the values buffer. The bounds check in
snd_soc_dapm_put_enum_double() only runs afterwards, so it does not
prevent the read here.
Reject an out-of-range item before using it, matching the other enum put
handlers.
This issue was pointed out by the Sashiko AI review bot while reviewing a
related enum-validation series:
https://lore.kernel.org/all/
[email protected]/
📍 영향받는 시스템
Linux Kernel (ASoC SDCA 드라이버 포함 버전)
⚔️ 공격 벡터
사용자 제어 가능한 열거형 인덱스 값을 통해 경계를 벗어난 메모리 읽기 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 인덱스 범위 검증 로직 적용
🔧 검증 코드
출력된 커널 버전이 취약점이 수정된 패치 버전 이후인지 확인합니다.