{"schemaVersion":3,"id":"CVE-2023-41325","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2023-09-15T19:40:58.065Z","modified":"2024-09-25T18:49:09.428Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.4,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00389,"percentile":0.31556,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00389},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00373,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00389,"percentile":0.31556}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00389,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00389,"percentile":0.31556}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_OP-TEE_OPTEE_OS","name":"Optee Os","source":"github","url":"https://github.com/OP-TEE/optee_os/security/advisories/GHSA-65w8-6mrg-52g7","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-415","name":"Double Free","description":"The product calls free() twice on the same memory address.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/415.html"}],"affected":[{"vendor":"op-tee","product":"optee_os","name":"optee_os","label":"optee_os","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.20, < 3.22","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.20, < 3.22","eol":null,"hubHref":"/vendor/op-tee/optee_os"},{"vendor":"trustedfirmware","product":"op-tee","name":"op-tee","label":"op-tee","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"≥ 3.20.0, < 3.22.0","noFixRecorded":false,"fixedIn":null},{"text":"3.22.0:rc1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.20.0, < 3.22.0 | 3.22.0:rc1","eol":null,"hubHref":"/vendor/trustedfirmware/op-tee"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/OP-TEE/optee_os/security/advisories/GHSA-jrw7-63cq-7vhm","label":"github.com/OP-TEE/optee_os/security/advisories/GHSA-jrw7-63cq-7vhm","hostname":"github.com","tags":["X Refsource CONFIRM","Exploit","Vendor Advisory"]},{"url":"https://github.com/OP-TEE/optee_os/commit/e2ec831cb07ed0099535c7c140cb6338aa62816a","label":"github.com/OP-TEE/optee_os/commit/e2ec831cb07ed0099535c7c140cb6338aa62816a","hostname":"github.com","tags":["X Refsource MISC","Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-09-15T19:40:58.065Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-25T18:49:09.428Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T10:34:07.142Z","stale":false,"partial":false}}