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-2023-22745

CVE-2023-22745: TPM2 Software Stack Buffer Overflow Flaw

CVE-2023-22745 is a buffer overflow vulnerability in TPM2 Software Stack that could enable arbitrary code execution through improper array indexing. This article covers technical details, affected versions, and mitigation.

Published: February 4, 2026

CVE-2023-22745 Overview

CVE-2023-22745 is a buffer overrun vulnerability affecting tpm2-tss, the open source software implementation of the Trusted Computing Group (TCG) Trusted Platform Module (TPM) 2 Software Stack (TSS2). The vulnerability exists in the Tss2_RC_SetHandler and Tss2_RC_Decode functions, which improperly index into the layer_handler array using an 8-bit layer number without proper bounds checking. Since the array only has TPM2_ERROR_TSS2_RC_LAYER_COUNT entries, attempting to add a handler for higher-numbered layers or decode a response code with such a layer number results in reads/writes past the end of the buffer.

Critical Impact

This buffer overrun vulnerability could result in arbitrary code execution. An example attack scenario involves a Man-in-the-Middle (MiTM) bus attack that returns 0xFFFFFFFF for the response code, triggering the out-of-bounds access.

Affected Products

  • tpm2_software_stack versions prior to 4.1.0-rc0
  • tpm2_software_stack versions prior to 4.0.1
  • tpm2_software_stack versions prior to 3.2.2-rc1

Discovery Timeline

  • 2023-01-19 - CVE CVE-2023-22745 published to NVD
  • 2025-11-21 - Last updated in NVD database

Technical Details for CVE-2023-22745

Vulnerability Analysis

The vulnerability stems from insufficient bounds checking when handling TPM response codes. The layer_handler array is designed to store handler functions for different TSS2 error layers, but the code assumes that the 8-bit layer number extracted from response codes will always be within valid bounds. When a malicious or malformed response code contains a layer number exceeding TPM2_ERROR_TSS2_RC_LAYER_COUNT, both Tss2_RC_SetHandler (when registering handlers) and Tss2_RC_Decode (when processing responses) will access memory outside the allocated array.

Given that TPM modules are typically used for security-critical operations including secure boot, disk encryption, and credential storage, exploitation requires an attacker to have local access to the target machine with local system privileges. TPM access usually requires administrative privilege, which limits the attack surface but does not eliminate the risk for systems where attackers have already achieved privilege escalation.

Root Cause

The root cause is a classic buffer overflow due to insufficient input validation (CWE-120: Buffer Copy without Checking Size of Input). The layer_handler array has a fixed number of entries defined by TPM2_ERROR_TSS2_RC_LAYER_COUNT, but the layer number extracted from response codes is an 8-bit value (0-255), creating a mismatch between the possible input range and the array bounds.

Attack Vector

The attack vector requires local access with elevated privileges. An attacker could exploit this vulnerability through a Man-in-the-Middle attack on the TPM communication bus. By intercepting and modifying TPM response codes to include layer numbers outside the valid range (e.g., returning 0xFFFFFFFF), an attacker can trigger out-of-bounds memory access. Depending on the memory layout and system configuration, this could lead to:

  1. Information disclosure through out-of-bounds reads
  2. Denial of service through memory corruption
  3. Arbitrary code execution through controlled out-of-bounds writes
c
/* SPDX-License-Identifier: BSD-2-Clause */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <assert.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>

Source: GitHub Commit - The patch adds bounds checking by including assert.h and implementing proper validation of layer numbers before array access.

Detection Methods for CVE-2023-22745

Indicators of Compromise

  • Unexpected crashes or segmentation faults in applications using tpm2-tss libraries
  • Abnormal TPM response codes with high layer numbers (particularly 0xFFFFFFFF)
  • Memory access violations in processes interacting with TPM modules
  • Suspicious modifications to TPM bus communication

Detection Strategies

  • Monitor system logs for TPM-related errors and crashes in tpm2-tss dependent applications
  • Implement runtime memory protection tools to detect out-of-bounds access attempts
  • Use intrusion detection systems to monitor for unusual TPM bus activity
  • Deploy application whitelisting to detect unauthorized code execution following potential exploitation

Monitoring Recommendations

  • Enable verbose logging for TPM-related services and applications
  • Monitor for processes accessing TPM with unusual response code patterns
  • Implement file integrity monitoring on tpm2-tss library files to detect tampering
  • Review system audit logs for privilege escalation attempts preceding TPM access

How to Mitigate CVE-2023-22745

Immediate Actions Required

  • Update tpm2-tss to version 4.1.0-rc0, 4.0.1, or 3.2.2-rc1 or later immediately
  • Review systems using TPM for signs of compromise
  • Restrict physical access to systems with TPM modules
  • Ensure administrative access to TPM-enabled systems is properly controlled and audited

Patch Information

The tpm2-software project has released patches in versions 4.1.0-rc0, 4.0.1, and 3.2.2-rc1. The fix ensures that the layer number is validated against TPM2_ERROR_TSS2_RC_LAYER_COUNT before being used to index into the layer_handler array. For detailed patch information, refer to:

  • GitHub Security Advisory GHSA-4j3v-fh23-vx67
  • Commit 306490c8d848c367faa2d9df81f5e69dab46ffb5

Workarounds

  • Limit local access to systems with TPM modules to trusted administrators only
  • Implement physical security controls for TPM bus connections to prevent MiTM attacks
  • Use hardware security modules with additional integrity verification for critical systems
  • Consider disabling TPM functionality temporarily on highly sensitive systems until patching is complete
bash
# Check installed tpm2-tss version
pkg-config --modversion tss2-sys

# Update tpm2-tss on Debian/Ubuntu systems
sudo apt update && sudo apt install libtss2-dev

# Verify the patched version is installed
pkg-config --modversion tss2-sys

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechTpm2 Software Stack

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-120
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory
  • Vendor Resources
  • GitHub Commit Update
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server CSRF 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