CVE-2023-22745: Buffer Overlow in TSS2_RC_Decode in tpm2-tss

Published Jan 19, 2023
·
Updated

Last updated 24 July 2024

Other sources

tpm2-tss is an open source software implementation of the Trusted Computing Group (TCG) Trusted Platform Module (TPM) 2 Software Stack (TSS2). In affected versions Tss2RCSetHandler and Tss2RCDecode both index into layerhandler with an 8 bit layer number, but the array only has TPM2ERRORTSS2RCLAYERCOUNT 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.

Launchpad

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, Tss2RCSetHandler and Tss2RCDecode both index into layerhandler with an 8 bit layer number, but the array only has TPM2ERRORTSS2RCLAYERCOUNT 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.

MITRE

tpm2-tss is vulnerable to a buffer overflow, caused by improper bounds checking by the Tss2RCSetHandler and Tss2RCDecode function. By sending a specially-crafted request, a local authenticated attacker could overflow a buffer and execute arbitrary code on the system.

IBM

Affected Software

7 affected componentsFixes available
debian/tpm2-tss<=3.0.3-2
3.2.1-34.0.1-7.24.1.3-1
Tpm2 Software Stack Project Tpm2 Software Stack<=4.0.0
IBM R10.0<=10.1.3.0 10.0.245.0
IBM R9.4<=89.42.18.0 89.41.25.0 89.40.83.0
IBM R9.3<=89.33.52.0 89.33.45.0
Tpm2 Software Stack Project Tpm2 Software Stack<3.2.2
Tpm2 Software Stack Project Tpm2 Software Stack>=4.0.0<4.1.0

Event History

Jan 19, 2023
CVE Published
via MITRE·10:12 PM
Data Sourced
via MITRE·10:12 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 20, 2023
Data Sourced
via Red Hat·07:21 AM
DescriptionSeverityAffected Software
May 29, 2024
Data Sourced
via Launchpad·04:47 PM
Description
Sep 14, 2024
Data Sourced
via Ubuntu·05:05 PM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-22745?

CVE-2023-22745 has been classified with a moderate severity level due to potential memory corruption issues.

2

How do I fix CVE-2023-22745?

To fix CVE-2023-22745, upgrade to tpm2-tss versions 3.2.1-3, 4.0.1-7.2, or 4.1.3-1.

3

What vulnerabilities does CVE-2023-22745 affect?

CVE-2023-22745 affects the tpm2-tss versions up to and including 4.0.0 for the Trusted Platform Module 2 Software Stack.

4

What are the symptoms of CVE-2023-22745 exploitation?

Exploitation of CVE-2023-22745 may lead to application crashes or unexpected behavior due to memory corruption.

5

Is CVE-2023-22745 a remote attack vulnerability?

CVE-2023-22745 does not specifically indicate remote exploitation capabilities, focusing instead on local memory handling issues.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203