Vulnérabilité dans OP-TEE Trusted OS (CVE-2022-46152)
Résumé
Vulnérabilité dans OP-TEE Trusted OS (CVE-2022-46152). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via OPTEE_MSG_CMD_OPEN_SESSION.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
OP-TEE Trusted OS is the secure side implementation of OP-TEE project, a Trusted Execution Environment. Versions prior to 3.19.0, contain an Improper Validation of Array Index vulnerability. The function cleanup_shm_refs() is called by both entry_invoke_command() and entry_open_session(). The commands OPTEE_MSG_CMD_OPEN_SESSION and OPTEE_MSG_CMD_INVOKE_COMMAND can be executed from the normal world via an OP-TEE SMC. This function is not validating the num_params argument, which is only limited to OPTEE_MSG_MAX_NUM_PARAMS (127) in the function get_cmd_buffer(). Therefore, an attacker in the normal world can craft an SMC call that will cause out-of-bounds reading in cleanup_shm_refs and potentially freeing of fake-objects in the function mobj_put(). A normal-world attacker with permission to execute SMC instructions may exploit this flaw. Maintainers believe this problem permits local privilege escalation from the normal world to the secure world. Version 3.19.0 contains a fix for this issue. There are no known workarounds.
Source: NIST National Vulnerability Database NVD
Résumé IA
Rédigé par une IA externe ; il peut contenir des erreurs. Vérifiez la description d'origine et les références ci-dessous avant d'agir.
Une vulnérabilité référencée CVE-2022-46152 a été découverte dans privilege-escalation.
Des attaquants peuvent cibler un point d'entrée spécifique comme OPTEE_MSG_CMD_OPEN_SESSION à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système. Score CVSS : 8.2/10.
Action : appliquez le correctif officiel de l'éditeur.
En cas de doute, contactez votre service informatique ou cherchez « privilege-escalation CVE-2022-46152 » sur le site de l'éditeur.
CVE-2022-46152 (privilege-escalation) — CWE-129 / CVSS v3 8.2
Vecteur d'attaque : local / sans interaction utilisateur
Surface d'attaque : OPTEE_MSG_CMD_OPEN_SESSION / OPTEE_MSG_CMD_INVOKE_COMMAND / num_params / OPTEE_MSG_MAX_NUM_PARAMS
Versions affectées : <= 3.18.0
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
OP-TEE Trusted OSにおける配列インデックスの不適切なバリデーションの脆弱性。
OP-TEE Trusted OSの3.19.0より前のバージョン。
アウトオブバウンズアクセスが可能になり、通常の世界から安全な世界への権限昇格が可能です。
バージョン3.19.0にアップグレードすることで修正されます。
既知のワークアラウンドはありません。
SMC呼び出しを監査し、不正なパラメータが使用されていないか確認する。
Références
- advisory github.com
- advisory nvd.nist.gov
- exploit github.com
- patch github.com