🇰🇷 한글 설명
리눅스 커널의 tpm_tis_spi 구성 요소에서 TPM SPI 전송 버퍼를 할당할 때 SPI 헤더 크기를 고려하지 않는 취약점이 발견되었습니다. 이로 인해 데이터 프레임 앞에 붙는 4바이트 헤더로 인해 경계 외 메모리 접근(Out-of-bounds access)이 발생할 수 있습니다.
💡 쉬운 설명
데이터를 담는 그릇을 만들 때 실제 데이터보다 약간 더 큰 헤더 크기를 계산에 넣지 않아, 데이터가 그릇 밖으로 넘쳐흐를 수 있는 문제입니다. 이로 인해 시스템의 메모리 영역이 오염되거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buffer
The TPM SPI transfer mechanism uses MAX_SPI_FRAMESIZE for computing the
maximum transfer length and the size of the transfer buffer. As such, it
does not account for the 4 bytes of header that prepends the SPI data
frame. This can result in out-of-bounds accesses and was confirmed with
KASAN.
Introduce SPI_HDRSIZE to account for the header and use to allocate the
transfer buffer.
📍 영향받는 시스템
SPI 기반 TPM을 사용하는 리눅스 커널 시스템
⚔️ 공격 벡터
조작된 SPI 데이터 프레임을 통해 메모리 경계 외 접근 유도
🛡️ 대응 방법
SPI_HDRSIZE를 반영하여 버퍼 할당 로직이 수정된 최신 리눅스 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 패치된 버전인지 확인합니다.