The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-33317

CVE-2026-33317: Linaro OP-TEE Buffer Overflow Vulnerability

CVE-2026-33317 is a buffer overflow vulnerability in Linaro OP-TEE affecting versions 3.13.0 through 4.10.0. Missing checks allow out-of-bounds reads and writes in the PKCS#11 TA. This article covers technical details, impact, and patches.

Published: April 30, 2026

CVE-2026-33317 Overview

CVE-2026-33317 is an out-of-bounds read vulnerability affecting OP-TEE, a Trusted Execution Environment (TEE) designed as a companion to a non-secure Linux kernel running on Arm Cortex-A cores using TrustZone technology. The vulnerability exists in the entry_get_attribute_value() function within ta/pkcs11/src/object.c, where missing input validation checks allow an attacker to perform out-of-bounds memory reads from the PKCS#11 Trusted Application (TA) heap, potentially causing a crash or information disclosure.

Critical Impact

When exploited, this vulnerability allows attackers with local access to read up to 7 bytes beyond the template buffer boundary and write beyond the buffer's end using PKCS#11 object attribute values, potentially compromising sensitive cryptographic data stored in the secure world.

Affected Products

  • Linaro OP-TEE versions 3.13.0 through 4.10.0
  • Systems running Arm Cortex-A cores with TrustZone using affected OP-TEE versions
  • Devices utilizing PKCS#11 TA functionality within the affected OP-TEE versions

Discovery Timeline

  • 2026-04-24 - CVE-2026-33317 published to NVD
  • 2026-04-27 - Last updated in NVD database

Technical Details for CVE-2026-33317

Vulnerability Analysis

This vulnerability represents a classic boundary validation failure in secure world code, which is particularly concerning given OP-TEE's role in protecting sensitive cryptographic operations. The flaw resides in the entry_get_attribute_value() function that processes PKCS#11 attribute templates. When handling the PKCS11_CMD_GET_ATTRIBUTE_VALUE command, the function fails to properly validate template parameters before accessing memory, creating an opportunity for memory corruption.

The vulnerability is classified as CWE-125 (Out-of-bounds Read), indicating that the software reads data past the end or before the beginning of the intended buffer. In the context of a Trusted Execution Environment, this type of vulnerability is especially severe because it could allow leakage of sensitive data from the secure world to the normal world.

Root Cause

The root cause stems from insufficient bounds checking in the entry_get_attribute_value() function. Specifically, three validation gaps were identified:

  1. Missing template header validation: The code did not verify that the template header structure fits within the buffer before reading it
  2. Missing overflow checks: Arithmetic operations calculating buffer lengths lacked overflow protection, potentially leading to integer wraparound
  3. Missing output buffer size validation: The function did not confirm that the output buffer was large enough to hold the template with updated attribute values

These missing checks allowed a malformed template parameter to trigger reads of up to 7 bytes beyond the template buffer boundary and subsequent writes beyond the buffer end.

Attack Vector

The attack requires local access to the system and the ability to invoke PKCS#11 TA functions through the OP-TEE client interface. An attacker with low privileges in the normal world can craft a malicious template parameter with:

  1. A truncated or malformed attribute header that references memory outside the allocated template buffer
  2. An attribute size value that, when added to the current position, causes integer overflow
  3. Template data that triggers the buffer overread when processed by entry_get_attribute_value()

The following patches address the three validation gaps identified in the vulnerable code:

Patch 1: Template consistency validation

c
	for (; cur < end; cur += len) {
		struct pkcs11_attribute_head *cli_ref = (void *)cur;
		struct pkcs11_attribute_head cli_head = { };
+		uintptr_t cli_end = 0;
		void *data_ptr = NULL;

+		if ((char *)(cli_ref + 1) > end) {
+			rc = PKCS11_CKR_ARGUMENTS_BAD;
+			goto out;
+		}

		/* Make copy of header so that is aligned properly. */
		TEE_MemMove(&cli_head, cli_ref, sizeof(cli_head));

-		len = sizeof(*cli_ref) + cli_head.size;
+		if (ADD_OVERFLOW(sizeof(*cli_ref), cli_head.size, &len) ||
+		    ADD_OVERFLOW((uintptr_t)cur, len, &cli_end) ||
+		    (char *)cli_end > end) {
+			rc = PKCS11_CKR_ARGUMENTS_BAD;
+			goto out;
+		}

		/* Treat hidden attributes as missing attributes */
		if (attribute_is_hidden(&cli_head)) {

Source: GitHub Commit Fix

Patch 2: Output buffer size validation

c
	goto out;
	}

+	/*
+	 * We will update the template with relevant data, without resizing it.
+	 * Upon completion, it will be copied to client output buffer.
+	 */
+	if (out->memref.size < sizeof(*template) + template->attrs_size) {
+		rc = PKCS11_CKR_ARGUMENTS_BAD;
+		goto out;
+	}

	/* Iterate over attributes and set their values */
	/*
	 * 1. If the specified attribute (i.e., the attribute specified by the

Source: GitHub Commit Change

Patch 3: Attribute output size handling

c
			attr_type_invalid = 1;
			break;
		case PKCS11_CKR_BUFFER_TOO_SMALL:
-			if (data_ptr)
+			if (data_ptr) {
+				cli_head.size =
+					PKCS11_CK_UNAVAILABLE_INFORMATION;
				buffer_too_small = 1;
+			}
			break;
		default:
			rc = PKCS11_CKR_GENERAL_ERROR;

Source: GitHub Commit Update

Detection Methods for CVE-2026-33317

Indicators of Compromise

  • Unexpected crashes or faults in the OP-TEE PKCS#11 Trusted Application during cryptographic operations
  • Abnormal memory access patterns in OP-TEE secure world logs indicating out-of-bounds access
  • Unusual invocations of PKCS11_CMD_GET_ATTRIBUTE_VALUE with malformed or oversized template parameters
  • TEE panic events correlated with PKCS#11 attribute retrieval operations

Detection Strategies

  • Monitor OP-TEE logs for PKCS11_CKR_ARGUMENTS_BAD error codes which may indicate exploitation attempts against patched systems
  • Implement runtime memory bounds checking in TEE debugging environments to catch out-of-bounds access attempts
  • Review system logs for repeated PKCS#11 TA invocations with unusual parameter sizes or patterns
  • Deploy memory sanitizers (ASan/MSan) in development builds to detect memory access violations during testing

Monitoring Recommendations

  • Enable verbose logging for PKCS#11 TA operations to capture detailed parameter information for forensic analysis
  • Set up alerts for TEE panic events or secure world exceptions that may indicate exploitation attempts
  • Monitor for applications making unusual numbers of PKCS11_CMD_GET_ATTRIBUTE_VALUE calls with varying template sizes

How to Mitigate CVE-2026-33317

Immediate Actions Required

  • Update OP-TEE to version 4.11.0 or later when available, which will include all three security patches
  • If immediate upgrade is not possible, apply the individual commits e031c4e562023fd9f199e39fd2e85797e4cbdca9, 16926d5a46934c46e6656246b4fc18385a246900, and 149e8d7ecc4ef8bb00ab4a37fd2ccede6d79e1ca to your OP-TEE build
  • Review and audit all applications utilizing the PKCS#11 TA interface for proper input validation
  • Restrict access to the OP-TEE client interface to only trusted applications and services

Patch Information

Three commits have been released to address this vulnerability and are anticipated to be included in OP-TEE version 4.11.0:

CommitDescription
e031c4e5Adds output buffer size validation
16926d5aAdds template consistency and overflow checks
149e8d7eFixes attribute output size handling

For complete details, refer to the GitHub Security Advisory.

Workarounds

  • Disable or restrict access to the PKCS#11 TA if not required for system operation until patching is complete
  • Implement application-level input validation for all PKCS#11 template parameters before passing to the TA
  • Use access control mechanisms to limit which applications can invoke PKCS#11 TA functions
  • Consider deploying additional monitoring and logging around PKCS#11 operations to detect potential exploitation
bash
# Verify OP-TEE version and check for vulnerability
# Check current OP-TEE version in your build configuration
grep -r "CFG_OPTEE_REVISION" /path/to/optee_os/

# If running affected versions 3.13.0-4.10.0, apply patches
cd /path/to/optee_os
git cherry-pick e031c4e562023fd9f199e39fd2e85797e4cbdca9
git cherry-pick 16926d5a46934c46e6656246b4fc18385a246900
git cherry-pick 149e8d7ecc4ef8bb00ab4a37fd2ccede6d79e1ca

# Rebuild and redeploy OP-TEE
make -j$(nproc) all

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLinaro Op Tee

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-125
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Fix

  • GitHub Commit Change

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33662: Linaro OP-TEE DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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