Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local low-priv access on Arm device
-
DeliveryInvoke FF-A share/reclaim from normal world
-
ExploitRace sp_mem_remove() against list iteration
-
ExecutionDereference freed sp_mem_map_region pointer
-
PersistCorrupt OP-TEE secure-world memory
-
ImpactExecute code inside TrustZone TEE
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | OP-TEE must be built with CFG_SECURE_PARTITION=y and deployed as an FF-A SPMC hosting S-EL0 Secure Partitions - builds without secure-partition support do not expose the vulnerable sp_mem_remove() path. The attacker needs local low-privilege access (CVSS PR:L, AV:L) capable of invoking FF-A shared-memory share and reclaim operations to drive sp_mem_remove() concurrently with sp_mem_get_receiver() or sp_mem_is_shared(), and must win a cross-thread timing race on the unlocked free, so reliable exploitation depends on the platform's scheduling and SMP behavior. No user interaction is required (UI:N), but the bug is not reachable remotely and is absent from OP-TEE versions before 3.16.0 or at/after 4.11.0. |
| Impact | The CVSS 3.1 score of 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) accurately reflects that this is a local, low-complexity, low-privilege flaw with high impact across all three dimensions inside the TEE, which is consistent with a UAF that can corrupt secure-world memory. No EPSS score, KEV listing, SSVC decision, or public POC was provided in the intelligence, so this is no public exploit identified at time of analysis and likely not under broad opportunistic attack. The real-world exposure is constrained: the flaw only manifests when OP-TEE is compiled with CFG_SECURE_PARTITION=y and used as an FF-A SPMC hosting S-EL0 SPs, which is a specific deployment profile not present in every OP-TEE build, and exploitation requires winning a race between concurrent secure-world threads. Despite these constraints, because successful exploitation undermines the TEE trust boundary itself (where keys, DRM, and attestation material live), defenders running affected configurations should treat this as a high priority even though EPSS and KEV signals are absent. |
| Exploit ScenarioDerived | A local attacker with low privileges in the normal world (for example a compromised user-space process able to issue FF-A memory share/reclaim calls, or a malicious Trusted Application) triggers concurrent FF-A shared-memory operations so that one thread iterates smem->receivers or smem->regions via sp_mem_get_receiver() while another thread invokes sp_mem_remove() and frees the same entry. By winning the race and controlling reallocation of the freed sp_mem_map_region or sp_mem_receiver slab memory, the attacker turns the dangling pointer dereference into secure-world memory corruption, potentially escalating to code execution inside OP-TEE and breaching the TrustZone boundary. No public POC was referenced in the intelligence provided. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 03, 2026
Use-after-free race condition in OP-TEE OS versions 3.16.0 through 4.10.x enables local low-privileged attackers to corrupt memory within the secure world when OP-TEE is built as an FF-A Secure Partition Manager Core (SPMC) for S-EL0 Secure Partitions. The flaw stems from missing lock acquisition in sp_mem_remove() during shared-memory teardown, allowing concurrent threads to dereference freed sp_mem_map_region or sp_mem_receiver objects. No public exploit identified at time of analysis, but successful exploitation yields high confidentiality, integrity, and availability impact inside the Trusted Execution Environment.
RemediationAI
Vendor-released patch: OP-TEE OS 4.11.0, which adds proper sp_mem_lock acquisition around the free operations in sp_mem_remove(); upgrade affected builds to 4.11.0 or later as described in https://github.com/OP-TEE/optee_os/security/advisories/GHSA-332c-xr93-849m. If immediate upgrade is not feasible, the most direct compensating control is to rebuild OP-TEE with CFG_SECURE_PARTITION=n to remove the vulnerable SPMC/SP code path entirely, with the trade-off that any S-EL0 Secure Partitions hosted by OP-TEE will no longer function and FF-A-based SP workloads must be migrated or disabled. Additionally restrict which non-secure-world components and TAs can invoke FF-A shared-memory share/reclaim operations to reduce the set of actors able to drive concurrent sp_mem_remove() versus iteration paths, accepting that this narrows but does not eliminate the race window.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OP-TEE OS is the open-source Trusted Execution Environment that runs in Arm TrustZone secure world alongside a non-secure Linux kernel on Cortex-A cores. The bug lives in the Firmware Framework for Arm (FF-A) shared-memory handling, specifically the SPMC/SP code path activated only when CFG_SECURE_PARTITION=y, used for hosting S-EL0 Secure Partitions. The root cause is CWE-416 (Use After Free) caused by a locking discipline violation: sp_mem_remove() frees entries from smem->receivers and smem->regions without holding the global sp_mem_lock, while sp_mem_get_receiver() iterates these lists without any lock and sp_mem_is_shared() holds the lock but is not serialized against the unprotected free, producing a classic time-of-check / time-of-use dangling-pointer race across concurrent secure-world threads. The affected CPE is cpe:2.3:a:op-tee:optee_os:*:*:*:*:*:*:*:* covering all builds from 3.16.0 up to but not including 4.11.0.
Know when Optee Os gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.16.0 and prior to 4.11.0, a user-after-free (UAF) race condition exists in the shared memory teardown logic of FF-A within OP-TEE SPMC/SP flows. This only applies when OP-TEE is configured as an SPMC for S-EL0 SPs, that is, with CFG_SECURE_PARTITION=y. The function sp_mem_remove(), responsible for freeing entries in smem->receivers and smem->regions, fails to acquire the global sp_mem_lock before performing the free() operations. Concurrently, other code paths, such as sp_mem_get_receiver(), iterate over these same lists without holding a lock, or, like sp_mem_is_shared(), iterate while holding the lock but are not serialized against the unprotected free() in sp_mem_remove(). This creates a cross-thread race where a thread iterating the list can acquire a pointer to an entry (e.g., struct sp_mem_map_region or struct sp_mem_receiver), and then another thread calls sp_mem_remove(), freeing the object. When the first thread resumes and dereferences the pointer, it results in a Use-After-Free vulnerability. Version 4.11.0 fixes the issue.
Executive ViewAI
OP-TEE OS versions 3.16.0 through 4.10.x contain a use-after-free race condition affecting the Trusted Execution Environment that allows local low-privileged attackers to corrupt memory in the secure world, resulting in high impact to confidentiality, integrity, and availability. This vulnerability affects hundreds of millions of ARM-based devices including smartphones, IoT platforms, and embedded systems that rely on OP-TEE for security operations. Organizations must immediately assess exposure across their device fleet, as no vendor patch is currently available.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict local system access to trusted users and processes, enforce mandatory access control at kernel level, disable S-EL0 Secure Partitions if operationally unnecessary, implement monitoring for unusual TEE behavior or exception patterns, and maintain upgrade readiness for OP-TEE 4.11.0 or later when patch becomes available.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Out-of-bounds read and write in OP-TEE OS PKCS#11 Trusted Application (versions 3.13.0-4.10.0) allows authenticated loca
Secure-world heap corruption in OP-TEE OS through 4.10.0 allows a malicious Trusted Application to write attacker-contro
Use-after-free in the OP-TEE OS Trusted Application loader (all versions through 4.10.0) allows an attacker who controls
Integer overflow in OP-TEE OS RSA signature encoding crashes the Trusted Execution Environment on platforms with RSA har
Null pointer dereference in OP-TEE OS through version 4.10.0 allows a low-privileged Normal World process to crash the e
Subkey rollback protection in OP-TEE OS versions 3.20.0 through 4.10.x is completely non-functional due to a missing fie
Heap overflow in OP-TEE's ARM Crypto Extensions SHA-3 implementation corrupts TEE kernel memory across all platforms bui
Type confusion in OP-TEE OS versions 4.3.0 through 4.10.x allows a highly privileged local attacker operating in the nor
Private ECDH key recovery in OP-TEE prior to version 4.11.0 is achievable by a local attacker who can invoke TEE_DeriveK
Integer overflow in OP-TEE OS's AES-GCM implementation silently corrupts authentication tag computation when a single op
Heap exhaustion in OP-TEE OS (versions 3.3.0 through 4.10.x) allows a low-privileged normal-world local caller to progre
Stack exhaustion via unbounded recursion in the OP-TEE PKCS#11 Trusted Application allows a local low-privileged user to
EUVD-2026-34139
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB