A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40290

CVE-2026-40290: OP-TEE Use-After-Free Vulnerability

CVE-2026-40290 is a use-after-free race condition in OP-TEE's shared memory teardown logic affecting SPMC configurations. This flaw enables cross-thread exploitation. This post covers technical details, affected versions, and mitigation.

Published: June 4, 2026

CVE-2026-40290 Overview

CVE-2026-40290 is a use-after-free (UAF) race condition in OP-TEE, an open-source Trusted Execution Environment (TEE) that runs on Arm Cortex-A cores using TrustZone technology. The flaw exists in the Firmware Framework for Arm (FF-A) shared memory teardown logic within the Secure Partition Manager Core (SPMC) and Secure Partition (SP) flows. It affects OP-TEE versions 3.16.0 through 4.10.x when compiled with CFG_SECURE_PARTITION=y for S-EL0 Secure Partitions. Version 4.11.0 contains the fix. The vulnerability is tracked under [CWE-416: Use After Free].

Critical Impact

A local attacker with low privileges can trigger concurrent operations on shared memory structures to cause use-after-free conditions, potentially leading to memory corruption inside the secure world.

Affected Products

  • OP-TEE OS versions 3.16.0 through 4.10.x
  • Configurations with CFG_SECURE_PARTITION=y acting as SPMC for S-EL0 SPs
  • Arm Cortex-A platforms using TrustZone with FF-A secure partitions

Discovery Timeline

  • 2026-06-03 - CVE-2026-40290 published to NVD
  • 2026-06-03 - Last updated in NVD database

Technical Details for CVE-2026-40290

Vulnerability Analysis

The vulnerability stems from missing lock acquisition during shared memory cleanup in the FF-A SPMC code path. The function sp_mem_remove() is responsible for freeing entries in smem->receivers and smem->regions linked lists. However, it fails to acquire the global sp_mem_lock before calling free() on these entries.

Concurrent code paths interact with the same lists under inconsistent locking discipline. sp_mem_get_receiver() iterates the list without holding any lock. sp_mem_is_shared() iterates while holding sp_mem_lock, but is not serialized against the unprotected free() calls inside sp_mem_remove(). This produces a classic cross-thread race window.

In the affected sequence, one thread acquires a pointer to a struct sp_mem_map_region or struct sp_mem_receiver while iterating. A second thread executes sp_mem_remove() and frees that object. When the first thread resumes and dereferences the pointer, the read or write targets freed memory, producing use-after-free behavior inside the secure world.

Root Cause

The root cause is inconsistent synchronization. sp_mem_remove() mutates shared list structures and frees backing memory without holding sp_mem_lock, while reader paths either run lock-free or rely on the same lock that the destroyer ignores. The locking contract for smem->receivers and smem->regions is not enforced uniformly.

Attack Vector

Exploitation requires local access with low privileges to invoke FF-A memory management calls from a Secure Partition or normal-world client. An attacker schedules concurrent FF-A operations that map, share, and reclaim memory regions to race sp_mem_remove() against sp_mem_get_receiver() or sp_mem_is_shared(). Successful exploitation corrupts secure-world heap state and can be leveraged to undermine confidentiality, integrity, and availability of the TEE. See the OP-TEE GitHub Security Advisory for vendor details.

Detection Methods for CVE-2026-40290

Indicators of Compromise

  • Unexpected OP-TEE panics, aborts, or secure-world crashes during FF-A memory share or reclaim operations
  • Kernel log entries showing SMC errors or SPMC faults correlated with high-frequency memory share or unshare calls
  • Anomalous patterns of FFA_MEM_SHARE, FFA_MEM_RECLAIM, or FFA_MEM_RETRIEVE_REQ invocations from a single client

Detection Strategies

  • Audit build configurations for CFG_SECURE_PARTITION=y and inventory devices running OP-TEE versions 3.16.0 through 4.10.x
  • Instrument OP-TEE with debug builds during testing to surface heap corruption via address sanitizers or guard pages
  • Correlate secure-world crash telemetry with normal-world FF-A call traces to identify race-triggering sequences

Monitoring Recommendations

  • Collect and centralize OP-TEE serial console logs and kernel TEE driver logs for anomaly review
  • Monitor for repeated client-driven FF-A memory operations that target the same handle from multiple threads
  • Track device firmware versions across the fleet to confirm OP-TEE 4.11.0 or later is deployed

How to Mitigate CVE-2026-40290

Immediate Actions Required

  • Upgrade OP-TEE OS to version 4.11.0 or later, which serializes sp_mem_remove() under sp_mem_lock
  • Rebuild and redeploy firmware images for all Arm TrustZone devices using CFG_SECURE_PARTITION=y
  • Restrict which normal-world clients and Secure Partitions can issue FF-A memory management calls

Patch Information

The OP-TEE project fixed the vulnerability in version 4.11.0 by acquiring the global sp_mem_lock before freeing entries in smem->receivers and smem->regions. Build images from the patched release and validate the change against the OP-TEE Security Advisory GHSA-332c-xr93-849m.

Workarounds

  • If patching is not immediately feasible, disable CFG_SECURE_PARTITION in the OP-TEE build configuration where S-EL0 SPs are not required
  • Limit FF-A endpoints to trusted Secure Partitions and reduce concurrency of memory share and reclaim operations
  • Apply defense-in-depth by restricting normal-world access to the TEE driver to privileged services only
bash
# Verify deployed OP-TEE version and rebuild from a patched tag
git clone https://github.com/OP-TEE/optee_os.git
cd optee_os
git checkout 4.11.0
make CFG_SECURE_PARTITION=y PLATFORM=<your_platform>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechOp Tee

  • SeverityHIGH

  • CVSS Score7.8

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-45614: OP-TEE Information Disclosure Vulnerability

  • CVE-2026-45702: OP-TEE Privilege Escalation Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English