Secure-world memory corruption via unlocked teardown race
Published Jun 3, 2026 · Updated Jun 3, 2026
Use-after-free in OP-TEE OS 3.16.0 through 4.10.0 allows local users to corrupt secure-world memory through concurrent FF-A calls. sp_mem_remove() frees receiver and region list entries before removing the shared-memory object under sp_mem_lock, so parallel lookup or sharing paths dereference freed entries. The flaw is reachable only when CFG_SECURE_PARTITION=y configures OP-TEE as an SPMC for S-EL0 secure partitions, and freed-object reads can disclose secure-world data.
Summary
What happened
Use-after-free in OP-TEE OS 3.16.0 through 4.10.0 allows local users to corrupt secure-world memory through concurrent FF-A calls. sp_mem_remove() frees receiver and region list entries before removing the shared-memory object under sp_mem_lock, so parallel lookup or sharing paths dereference freed entries. The flaw is reachable only when CFG_SECURE_PARTITION=y configures OP-TEE as an SPMC for S-EL0 secure partitions, and freed-object reads can disclose secure-world data.
The record
- CVE
- CVE-2026-40290
- Published
- Jun 3, 2026
- Updated
- Jun 3, 2026
- Vendor
- OP-TEE
- Product
- OP-TEE OS
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 3, 2026CVE publishedPublication date reported by the CVE source.
- Jun 3, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 3.16.0, < 4.11.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- GHSA-332c-xr93-849m proof-of-concept race sequenceproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo