CVE-2023-22745
published medium CVSS 3.1 · 6.4Buffer Overlow in TSS2_RC_Decode in tpm2-tss
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| tpm2-software | — | tpm2-tss< 4.0.1 · < 3.2.2-rc0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-110 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | tpm2-tss | Advisory build | 2.3.2-5.el8 | ALSA-2023:7166 |
| Oracle Linux | 8 | tpm2-tssaarch64 | Advisory build | 0:2.3.2-5.el8 | ELSA-2023-7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tssaarch64 | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Ubuntu | focal | tpm2-tss | Advisory build | 2.3.2-1ubuntu0.20.04.2 | USN-6796-1 |
| SUSE / openSUSE | SLE-15-SP3 | libtss2-esys0x86_64 | Advisory build | 2.4.5-150300.3.6.1 | SUSE-SU-2023:0613-1 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 9 | tpm2-tss | Advisory build | 3.2.2-2.el9 | ALSA-2023:6685 |
| Oracle Linux | 8 | tpm2-tssx86_64 | Advisory build | 0:2.3.2-5.el8 | ELSA-2023-7166 |
| Oracle Linux | 9 | tpm2-tssaarch64 | Advisory build | 0:3.2.2-2.el9 | ELSA-2023-6685 |
| Oracle Linux | 9 | tpm2-tssx86_64 | Advisory build | 0:3.2.2-2.el9 | ELSA-2023-6685 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tssaarch64 | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tssaarch64 | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tssi686 | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tssi686 | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tssi686 | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tssppc64le | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tssppc64le | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tssppc64le | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tsss390x | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tsss390x | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tsss390x | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tsssrc | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tsssrc | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tsssrc | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tssx86_64 | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tssx86_64 | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tssx86_64 | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tssaarch64 | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tssi686 | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tssppc64le | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tsss390x | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tsssrc | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tssx86_64 | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Ubuntu | jammy | tpm2-tss | Advisory build | 3.2.0-1ubuntu1.1 | USN-6796-1 |
| AlmaLinux | 8 | tpm2-tss-devel | Advisory build | 2.3.2-5.el8 | ALSA-2023:7166 |
| AlmaLinux | 9 | tpm2-tss-devel | Advisory build | 3.2.2-2.el9 | ALSA-2023:6685 |
| Oracle Linux | 8 | tpm2-tss-develaarch64 | Advisory build | 0:2.3.2-5.el8 | ELSA-2023-7166 |
| Oracle Linux | 8 | tpm2-tss-develx86_64 | Advisory build | 0:2.3.2-5.el8 | ELSA-2023-7166 |
| Oracle Linux | 9 | tpm2-tss-develaarch64 | Advisory build | 0:3.2.2-2.el9 | ELSA-2023-6685 |
| Oracle Linux | 9 | tpm2-tss-develx86_64 | Advisory build | 0:3.2.2-2.el9 | ELSA-2023-6685 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfoaarch64 | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfoaarch64 | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfoaarch64 | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfoi686 | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfoi686 | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfoi686 | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfoppc64le | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfoppc64le | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfoppc64le | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfos390x | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfos390x | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfos390x | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfox86_64 | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfox86_64 | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debuginfox86_64 | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsourceaarch64 | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsourceaarch64 | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsourceaarch64 | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsourcei686 | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsourcei686 | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsourcei686 | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsourceppc64le | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsourceppc64le | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsourceppc64le | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsources390x | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsources390x | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsources390x | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsourcex86_64 | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsourcex86_64 | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-debugsourcex86_64 | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-develaarch64 | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-develaarch64 | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-develaarch64 | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-develi686 | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-develi686 | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-develi686 | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-develppc64le | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-develppc64le | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-develppc64le | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-devels390x | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-devels390x | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-devels390x | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-develx86_64 | Advisory build | 2.3.2-5.el8 | RHSA-2023:7166 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-develx86_64 | Advisory build | 2.3.2-5.el8_6 | RHSA-2024:4408 |
| Red Hat Enterprise Linux | RHEL-8 | tpm2-tss-develx86_64 | Advisory build | 2.3.2-5.el8_8 | RHSA-2024:4739 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tss-debuginfoaarch64 | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tss-debuginfoi686 | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tss-debuginfoppc64le | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tss-debuginfos390x | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tss-debuginfox86_64 | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tss-debugsourceaarch64 | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tss-debugsourcei686 | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tss-debugsourceppc64le | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tss-debugsources390x | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| Red Hat Enterprise Linux | RHEL-9 | tpm2-tss-debugsourcex86_64 | Advisory build | 3.2.2-2.el9 | RHSA-2023:6685 |
| SUSE / openSUSE | SLE-15-SP3 | libtss2-fapi0x86_64 | Advisory build | 2.4.5-150300.3.6.1 | SUSE-SU-2023:0613-1 |
| SUSE / openSUSE | SLE-15-SP3 | libtss2-mu0x86_64 | Advisory build | 2.4.5-150300.3.6.1 | SUSE-SU-2023:0613-1 |
| SUSE / openSUSE | SLE-15-SP3 | libtss2-rc0x86_64 | Advisory build | 2.4.5-150300.3.6.1 | SUSE-SU-2023:0613-1 |
| SUSE / openSUSE | SLE-15-SP3 | libtss2-sys0x86_64 | Advisory build | 2.4.5-150300.3.6.1 | SUSE-SU-2023:0613-1 |
| SUSE / openSUSE | SLE-15-SP3 | libtss2-tcti-device0x86_64 | Advisory build | 2.4.5-150300.3.6.1 | SUSE-SU-2023:0613-1 |
| SUSE / openSUSE | SLE-15-SP3 | libtss2-tcti-mssim0x86_64 | Advisory build | 2.4.5-150300.3.6.1 | SUSE-SU-2023:0613-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.4 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| tpm2-software | tpm2-tss | < 4.0.1 (affected)< 3.2.2-rc0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-120 CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
References
4- https://github.com/tpm2-software/tpm2-tss/commit/306490c8d848c367faa2d9df81f5e69dab46ffb5
- https://github.com/tpm2-software/tpm2-tss/commit/49107d65d5c7be430671398416bbd89dae4e34e7
- https://github.com/tpm2-software/tpm2-tss/commit/7ab42953216adec046d000a5e3085f3ee5e9cabf
- https://github.com/tpm2-software/tpm2-tss/security/advisories/GHSA-4j3v-fh23-vx67
Provider assertions
3GitHub_M · cna
Buffer Overlow in TSS2_RC_Decode in tpm2-tss
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1daf95a44135cb40861858e083d387da7936bd108aa3a4a40fa4803493811206
- Ingested
- 23 Sep 2026, 08:06:15 UTC
- Source record
- Official CVE record