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.
CVE-2026-40290
This high-severity CVE scores 7.8 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.2%, top 92% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.8
- EG Score
- 7.8(medium)
- EPSS
- 8.5%
- KEV
- Not listed
Published
June 3, 2026
Last Modified
June 5, 2026
Advisory Details (1)
Auto-updated Jun 4, 2026Use-After-Free race in FF-A shared-memory teardown · Advisory · OP-TEE/optee_os · GitHub
https://github.com/OP-TEE/optee_os/security/advisories/GHSA-332c-xr93-849mWeakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 14× in last 7d / 66× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 107 total refreshes for this CVE.
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-14 16:36 UTCEG score recompute
- 2026-07-14 03:28 UTCEG score recompute
- 2026-07-13 22:30 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-12 01:08 UTCEG score recompute
- 2026-07-11 12:39 UTCEG score recompute
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-09 06:47 UTCEG score recompute
- 2026-07-08 16:22 UTCEG score recompute
- 2026-07-08 15:15 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-03 19:45 UTCEG score recompute
- 2026-07-02 12:30 UTCEG score recompute
Show 75 moreShow fewer
- 2026-07-01 23:21 UTCEG score recompute
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-07-01 10:23 UTCEG score recompute
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-30 21:56 UTCEG score recompute
- 2026-06-29 23:15 UTCEG score recompute
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 10:48 UTCEG score recompute
- 2026-06-28 17:18 UTCEG score recompute
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:44 UTCEG score recompute
- 2026-06-27 16:17 UTCEG score recompute
- 2026-06-27 03:48 UTCEG score recompute
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-26 15:12 UTCEG score recompute
- 2026-06-25 23:20 UTCEG score recompute
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 10:52 UTCEG score recompute
- 2026-06-24 22:20 UTCEG score recompute
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-24 09:19 UTCEG score recompute
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 19:02 UTCEG score recompute
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-20 12:33 UTCEG score recompute
- 2026-06-19 20:36 UTCEG score recompute
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 21:31 UTCEG score recompute
- 2026-06-18 07:47 UTCEG score recompute
- 2026-06-17 18:00 UTCEG score recompute
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-17 05:33 UTCEG score recompute
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-16 17:05 UTCEG score recompute
- 2026-06-16 04:33 UTCEG score recompute
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-15 16:02 UTCEG score recompute
- 2026-06-15 03:34 UTCEG score recompute
- 2026-06-14 15:08 UTCEG score recompute
- 2026-06-14 02:40 UTCEG score recompute
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 14:11 UTCEG score recompute
- 2026-06-13 01:42 UTCEG score recompute
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 13:15 UTCEG score recompute
- 2026-06-12 00:49 UTCEG score recompute
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-11 12:22 UTCEG score recompute
- 2026-06-10 23:54 UTCEG score recompute
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 11:27 UTCEG score recompute
- 2026-06-09 22:59 UTCEG score recompute
- 2026-06-09 10:32 UTCEG score recompute
- 2026-06-08 22:05 UTCEG score recompute
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 09:38 UTCEG score recompute
- 2026-06-07 21:11 UTCEG score recompute
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 08:44 UTCEG score recompute
- 2026-06-06 20:17 UTCEG score recompute
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 07:50 UTCEG score recompute
- 2026-06-05 22:47 UTCEPSS rescore
Frequently asked(5)
What is CVE-2026-40290?
When was CVE-2026-40290 disclosed?
Is CVE-2026-40290 actively exploited?
What is the CVSS score of CVE-2026-40290?
How do I remediate CVE-2026-40290?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-40290
Is Your Infrastructure Affected by CVE-2026-40290?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.