Read the docs
TI-2022-22796 Aliases CVE-2022-46152

OP-TEE Trusted OS vulnerable to Improper Validation of Array Index in the cleanup_shm_refs function

Priority HIGH 73CWE-129Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00491 42nd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed optee_os (OP-TEE): 3.19.0

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

VendorProductAffected versionsFixed inStatusSource
OP-TEEoptee_osbefore 3.19.03.19.0Patch availableCNA
  • optee_os VendorOP-TEE Affected before 3.19.0 Fixed in 3.19.0 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:o:trustedfirmware:op-tee:*:*:*:*:*:*:*:*before 3.19.0VulnerableOP-TEE
  • cpe:2.3:o:trustedfirmware:op-tee:*:*:*:*:*:*:*:* Versions before 3.19.0 Vulnerable ·OP-TEE

Remediation

  • Fix · CNA optee_os (OP-TEE) Fixed in 3.19.0

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-46152

References

  • 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
See all 28 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences