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 funct...
Summary
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...
Original description
The description as published by the source.
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
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
OP-TEE Trusted OS 3.19.0より前のバージョンに配列インデックスの不適切なバリデーションの脆弱性があります。この問題は、配列の境界外のメモリへのアクセスを可能にし、ローカルの権限昇格を引き起こす可能性があります。問題は、バージョン3.19.0で修正されています。
OP-TEE Trusted OSにおける配列インデックスの不適切なバリデーションの脆弱性。
OP-TEE Trusted OSの3.19.0より前のバージョン。
アウトオブバウンズアクセスが可能になり、通常の世界から安全な世界への権限昇格が可能です。
バージョン3.19.0にアップグレードすることで修正されます。
既知のワークアラウンドはありません。
SMC呼び出しを監査し、不正なパラメータが使用されていないか確認する。
References
- advisory github.com
- advisory nvd.nist.gov
- exploit github.com
- patch github.com