OP-TEE double free in shdr_verify_signature
Key facts
- Attack vector
- Local
- Privileges required
- High
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-415 and the CVSS impact.
Summary
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 3.20 and prior to version 3.22, `shdr_verify_signature` can make a double free. `shdr_verify_signature` used to verify a TA binary before it is loaded. To verify a signature of it, allocate a memory for RSA key. RSA key allocate function (`sw_crypto_acipher_alloc_rsa_public_key`) will try to allocate a memory (which is optee’s heap memory). RSA key is consist of exponent and modulus (represent as variable `e`, `n`) and it allocation is not atomic way, so it may succeed in `e` but fail in `n`. In this case sw_crypto_acipher_alloc_rsa_public_key` will free on `e` and return as it is failed but variable ‘e’ is remained as already freed memory address . `shdr_verify_signature` will free again that memory (which is `e`) even it is freed when it failed allocate RSA key. A patch is available in version 3.22. No known workarounds are available.
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| OP-TEE | optee_os | 3.20 to before 3.22 | 3.22 | Patch available | CNA |
- optee_os VendorOP-TEE Affected 3.20 to before 3.22 Fixed in 3.22 Patch available CNA
Remediation
- Fix · CNA optee_os (OP-TEE) Fixed in 3.22
Timeline
- 2026-10-02 Threatist record created from CVE-2023-41325
References
More Op-tee vulnerabilities
- TI-2022-22796 OP-TEE Trusted OS vulnerable to Improper Validation of Array Index in the cleanup_shm_refs function CVSS 3.1HIGH 8.8
- TI-2026-29072 OP-TEE has a Use-After-Free race in FF-A shared-memory teardown CVSS 3.1HIGH 7.8
- 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