🇰🇷 한글 설명
OP-TEE의 Hisilicon HPRE 암호화 드라이버 내 RSA PKCS#1 v1.5 복호화 구현에서 취약점이 발견되었습니다. 레이블 해시 검증 시 비상수 시간 memcmp()를 사용하고 오류 경로가 구분되어, 공격자가 Bleichenbacher 방식의 패딩 오라클 공격을 통해 RSA 평문을 복구할 수 있습니다.
💡 쉬운 설명
암호화된 데이터를 해독하는 과정에서 발생하는 미세한 시간 차이나 오류 메시지를 이용해 비밀 정보를 알아낼 수 있는 결함입니다. 공격자가 암호화된 내용을 몰라도 반복적인 질문을 통해 원래의 내용을 유추해낼 수 있습니다.
🇺🇸 원문 (English)
OP-TEE is a Trusted Execution Environment (TEE) designed as companion to a non-secure Linux kernel running on Arm; Cortex-A cores using the TrustZone technology. Starting in version 4.5.0 and prior to version 4.11.0, the RSA PKCS#1 v1.5 decryption implementation in the Hisilicon HPRE crypto driver uses non-constant-time `memcmp()` for label hash verification and has multiple distinguishable error paths. This creates a Bleichenbacher-style padding oracle that allows an attacker to recover RSA PKCS#1 v1.5 plaintext. Version 4.11.0 contains a patch. As a workaround, disable Hisilicon HPRE RSA driver with `CFG_HISILICON_ACC_V3=n`.
📍 영향받는 시스템
OP-TEE version 4.5.0 to 4.10.x (Hisilicon HPRE crypto driver 사용 시)
⚔️ 공격 벡터
Bleichenbacher-style padding oracle attack via non-constant-time memcmp() and distinguishable error paths
🛡️ 대응 방법
OP-TEE를 4.11.0 버전 이상으로 업데이트하거나, 설정에서 CFG_HISILICON_ACC_V3=n을 통해 Hisilicon HPRE RSA 드라이버를 비활성화하십시오.
🔧 검증 코드
출력된 OP-TEE 버전이 4.5.0 이상 4.11.0 미만인지 확인하십시오.
optee_version_cmd 2>/dev/null || echo 'Check OP-TEE version manually'