OP-TEE Trusted OS vulnerable to Improper Validation of Array Index in the cleanup_shm_refs function
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-129 and the CVSS impact.
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 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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA optee_os (OP-TEE) Fixed in 3.19.0
Timeline
- 2026-10-02 Threatist record created from CVE-2022-46152
References
More Op-tee vulnerabilities
- TI-2026-29072 OP-TEE has a Use-After-Free race in FF-A shared-memory teardown CVSS 3.1HIGH 7.8
- TI-2023-21925 OP-TEE double free in shdr_verify_signature CVSS 3.1HIGH 7.4
- TI-2026-33359 OP-TEE vulnerable to ECDH private key recovery CVSS 3.1MEDIUM 4.7
- TI-2019-16063 Integer overflow in OP-TEE CVSS 3.0CRITICAL 9.8
- TI-2019-16062 Integer overflow in OP-TEE CVSS 3.0CRITICAL 9.8
- TI-2019-16061 Integer overflow in OP-TEE CVSS 3.0CRITICAL 9.8
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences