🇰🇷 한글 설명
Linux 커널의 tpm2-sessions 구성 요소에서 name_size 변수에 대한 범위 검사가 누락되어 발생하는 취약점입니다. TPM_ALG_ID를 사용하여 인덱싱할 때 범위를 벗어난 메모리에 접근하여 메모리 오염을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터의 보안 칩(TPM)을 다루는 과정에서 잘못된 숫자를 입력받아 시스템의 중요한 메모리 영역을 망가뜨릴 수 있는 문제입니다. 이로 인해 시스템이 멈추거나 보안이 뚫릴 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
tpm2-sessions: Fix out of range indexing in name_size
'name_size' does not have any range checks, and it just directly indexes
with TPM_ALG_ID, which could lead into memory corruption at worst.
Address the issue by only processing known values and returning -EINVAL for
unrecognized values.
Make also 'tpm_buf_append_name' and 'tpm_buf_fill_hmac_session' fallible so
that errors are detected before causing any spurious TPM traffic.
End also the authorization session on failure in both of the functions, as
the session state would be then by definition corrupted.
📍 영향받는 시스템
TPM2 세션을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
조작된 TPM 알고리즘 ID를 전달하여 커널 메모리 오염 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 최신 패치 버전인지 확인