{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2023-41325","published":"2023-09-15T20:15:10.800000Z","last_modified":"2026-06-17T06:21:47.243000Z","status":"Modified","cvss":{"version":"3.1","score":6.7,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-415"],"cpes":[{"criteria":"cpe:2.3:o:trustedfirmware:op-tee:*:*:*:*:*:*:*:*","part":"o","vendor":"trustedfirmware","product":"op-tee","version_start_including":"3.20.0","version_end_excluding":"3.22.0"},{"criteria":"cpe:2.3:o:trustedfirmware:op-tee:3.22.0:rc1:*:*:*:*:*:*","part":"o","vendor":"trustedfirmware","product":"op-tee","version":"3.22.0"}],"cpes_truncated":false,"vendors":["trustedfirmware"],"products":["trustedfirmware/op-tee"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"total"},"epss":{"score":0.00353,"percentile":0.2137,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"os","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":40,"links":{"html_es":"/es/cve/CVE-2023-41325/","html_en":"/en/cve/CVE-2023-41325/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-41325","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-41325"},"untrusted":{"vendor_name":"Trustedfirmware","product_name":"Op-tee","desc_en":"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.","affected":[{"untrusted_vendor":"OP-TEE","untrusted_product":"optee_os","versions":[]}],"references":[{"url":"https://github.com/OP-TEE/optee_os/commit/e2ec831cb07ed0099535c7c140cb6338aa62816a","tags":["Patch"]},{"url":"https://github.com/OP-TEE/optee_os/security/advisories/GHSA-jrw7-63cq-7vhm","tags":["Exploit","Vendor Advisory"]}]}}