Skip to main content

OP-TEE OS EUVDEUVD-2026-34139

| CVE-2026-40290 HIGH
Use After Free (CWE-416)
2026-06-03 GitHub_M
7.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local low-priv access on Arm device
  2. Delivery
    Invoke FF-A share/reclaim from normal world
  3. Exploit
    Race sp_mem_remove() against list iteration
  4. Execution
    Dereference freed sp_mem_map_region pointer
  5. Persist
    Corrupt OP-TEE secure-world memory
  6. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

optee_os 3.16.0, < 4.11.0

Affected Packages

euvd optee_os_3_16_0 fix: 4.11.0

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

Vendor (GitHub_M) PRIMARY 7.8 HIGH
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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Jun 03, 2026 - 19:01 EUVD
CVE Published
Jun 03, 2026 - 16:45 nvd
HIGH 7.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 97% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2026-33317 HIGH
8.7 Apr 24

Out-of-bounds read and write in OP-TEE OS PKCS#11 Trusted Application (versions 3.13.0-4.10.0) allows authenticated loca

CVE-2026-71969 HIGH
8.4 Aug 10

Secure-world heap corruption in OP-TEE OS through 4.10.0 allows a malicious Trusted Application to write attacker-contro

CVE-2026-71968 HIGH
8.4 Aug 10

Use-after-free in the OP-TEE OS Trusted Application loader (all versions through 4.10.0) allows an attacker who controls

CVE-2026-33662 HIGH
7.5 Apr 24

Integer overflow in OP-TEE OS RSA signature encoding crashes the Trusted Execution Environment on platforms with RSA har

CVE-2026-71967 MEDIUM
5.7 Aug 10

Null pointer dereference in OP-TEE OS through version 4.10.0 allows a low-privileged Normal World process to crash the e

CVE-2026-44362 MEDIUM
5.5 Jul 06

Subkey rollback protection in OP-TEE OS versions 3.20.0 through 4.10.x is completely non-functional due to a missing fie

CVE-2026-40257 MEDIUM
5.5 Jul 06

Heap overflow in OP-TEE's ARM Crypto Extensions SHA-3 implementation corrupts TEE kernel memory across all platforms bui

CVE-2026-45702 MEDIUM
5.5 Jun 03

Type confusion in OP-TEE OS versions 4.3.0 through 4.10.x allows a highly privileged local attacker operating in the nor

CVE-2026-45614 MEDIUM
4.7 Jun 03

Private ECDH key recovery in OP-TEE prior to version 4.11.0 is achievable by a local attacker who can invoke TEE_DeriveK

CVE-2026-53763 LOW
3.8 Jul 06

Integer overflow in OP-TEE OS's AES-GCM implementation silently corrupts authentication tag computation when a single op

CVE-2026-42546 LOW
3.8 Jul 06

Heap exhaustion in OP-TEE OS (versions 3.3.0 through 4.10.x) allows a low-privileged normal-world local caller to progre

CVE-2026-41434 LOW
3.3 Jul 06

Stack exhaustion via unbounded recursion in the OP-TEE PKCS#11 Trusted Application allows a local low-privileged user to

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy