Trusted Computing Group tpm2-tss Tss2_RC_SetHandler/Tss2_RC_Decode buffer overflow

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.4$0-$5k0.00

Summaryinfo

A vulnerability identified as critical has been detected in Trusted Computing Group tpm2-tss. This issue affects the function Tss2_RC_SetHandler/Tss2_RC_Decode. This manipulation causes buffer overflow. This vulnerability is registered as CVE-2023-22745. Remote exploitation of the attack is possible. No exploit is available. It is suggested to install a patch to address this issue.

Detailsinfo

A vulnerability classified as critical was found in Trusted Computing Group tpm2-tss (affected version not known). Affected by this vulnerability is the function Tss2_RC_SetHandler/Tss2_RC_Decode. The manipulation with an unknown input leads to a buffer overflow vulnerability. The CWE definition for the vulnerability is CWE-120. The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:

tpm2-tss is an open source software implementation of the Trusted Computing Group (TCG) Trusted Platform Module (TPM) 2 Software Stack (TSS2). In versions prior to 4.1.0-rc0, 4.0.1, and 3.2.2-rc1, `Tss2_RC_SetHandler` and `Tss2_RC_Decode` both index into `layer_handler` with an 8 bit layer number, but the array only has `TPM2_ERROR_TSS2_RC_LAYER_COUNT` entries, so trying to add a handler for higher-numbered layers or decode a response code with such a layer number reads/writes past the end of the buffer. This Buffer overrun, could result in arbitrary code execution. An example attack would be a MiTM bus attack that returns 0xFFFFFFFF for the RC. Given the common use case of TPM modules an attacker must have local access to the target machine with local system privileges which allows access to the TPM system. Usually TPM access requires administrative privilege. Versions 4.1.0-rc0, 4.0.1, and 3.2.2-rc1 fix the issue.

The weakness was published 01/20/2023 as GHSA-4j3v-fh23-vx67. The advisory is shared at github.com. This vulnerability is known as CVE-2023-22745 since 01/06/2023. Technical details are known, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 236580 (Alibaba Cloud Linux 3 : 0006: tpm2-tss (ALINUX3-SA-2024:0006)), which helps to determine the existence of the flaw in a target environment.

Applying the patch 306490c8d848c367faa2d9df81f5e69dab46ffb5 is able to eliminate this problem. The bugfix is ready for download at github.com.

The vulnerability is also documented in the databases at Tenable (236580) and CERT Bund (WID-SEC-2023-2853). Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Affected

  • Open Source CentOS
  • Debian Linux
  • Amazon Linux 2
  • Red Hat Enterprise Linux
  • Ubuntu Linux
  • SUSE Linux
  • Oracle Linux
  • Gentoo Linux
  • Red Hat OpenShift
  • Meinberg LANTIME

Productinfo

Vendor

Name

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.5
VulDB Meta Temp Score: 6.4

VulDB Base Score: 6.6
VulDB Temp Score: 6.3
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 6.4
NVD Vector: 🔍

CNA Base Score: 6.4
CNA Vector (GitHub, Inc.): 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Buffer overflow
CWE: CWE-120 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 236580
Nessus Name: Alibaba Cloud Linux 3 : 0006: tpm2-tss (ALINUX3-SA-2024:0006)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

0-Day Time: 🔍

Patch: 306490c8d848c367faa2d9df81f5e69dab46ffb5

Timelineinfo

01/06/2023 🔍
01/20/2023 +14 days 🔍
01/20/2023 +0 days 🔍
12/30/2025 +1075 days 🔍

Sourcesinfo

Advisory: GHSA-4j3v-fh23-vx67
Status: Confirmed

CVE: CVE-2023-22745 (🔍)
GCVE (CVE): GCVE-0-2023-22745
GCVE (VulDB): GCVE-100-219025
CERT Bund: WID-SEC-2023-2853 - Red Hat Enterprise Linux: Mehrere Schwachstellen

Entryinfo

Created: 01/20/2023 08:34
Updated: 12/30/2025 23:56
Changes: 01/20/2023 08:34 (51), 05/21/2025 16:56 (17), 10/29/2025 16:28 (11), 11/21/2025 22:09 (1), 12/30/2025 23:56 (7)
Complete: 🔍
Cache ID: 216::103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!