Out-of-bounds memory access via unchecked layer index
Published Jan 19, 2023 · Updated Nov 21, 2025
Out-of-bounds memory access in tpm2-tss through 4.0.0 allows local users to crash a process through a crafted TSS2 layer number. Tss2_RC_SetHandler and Tss2_RC_Decode use an 8-bit layer number to index layer_handler without checking its smaller entry count, causing out-of-bounds reads or writes. Exploitation requires local privileged access to the TPM path or control of TPM bus responses; consequences include process termination and code execution.
Summary
What happened
Out-of-bounds memory access in tpm2-tss through 4.0.0 allows local users to crash a process through a crafted TSS2 layer number. Tss2_RC_SetHandler and Tss2_RC_Decode use an 8-bit layer number to index layer_handler without checking its smaller entry count, causing out-of-bounds reads or writes. Exploitation requires local privileged access to the TPM path or control of TPM bus responses; consequences include process termination and code execution.
The record
- CVE
- CVE-2023-22745
- Published
- Jan 19, 2023
- Updated
- Nov 21, 2025
- Vendor
- TPM2 Software
- Product
- tpm2-tss
- Classifications
- Unavailable
- Attack vector
- local
- Privileges
- admin
Timeline
How it unfolded
- Jan 19, 2023CVE publishedPublication date reported by the CVE source.
- Nov 21, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 3.2.2-rc0
- Affected versionversion=< 4.0.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
No sourced classifications are available.
Public exploit references
- Tss2_RC_Decode 0xffffffff crash reproducerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo