cve.bz

CVE-2023-22745 tpm2 software stack project tpm2 software stack: Classic Buffer Overflow

6.4 mediumExploit referenceEPSS 0.5%Fix available

Medium (6.4) in tpm2 software stack project tpm2 software stack. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.4 medium
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 46th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2025-03-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-22745 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-22745?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-22745?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-22745 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
tpm2_software_stack_project:tpm2_software_stackbefore 3.2.2
tpm2_software_stack_project:tpm2_software_stackfrom 4.0.0 before 4.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14tpm2-tss3.2.1-3DEBIAN-CVE-2023-22745
Ubuntu20.04:LTStpm2-tss2.3.2-1ubuntu0.20.04.2UBUNTU-CVE-2023-22745 USN-6796-1
Ubuntu22.04:LTStpm2-tss3.2.0-1ubuntu1.1UBUNTU-CVE-2023-22745 USN-6796-1
Ubuntu24.04:LTStpm2-tss4.0.1-7.1ubuntu5.1USN-6796-1
Red Hatenterprise_linux:8::baseostpm2-tss, tpm2-tss-devel, tpm2-tss-debuginfo and 1 more0:2.3.2-5.el8RHSA-2023:7166
Red Hatenterprise_linux:9::baseostpm2-tss, tpm2-tss-debuginfo, tpm2-tss-debugsource0:3.2.2-2.el9RHSA-2023:6685
Red Hatenterprise_linux:9::crbtpm2-tss-devel, tpm2-tss-debuginfo, tpm2-tss-debugsource0:3.2.2-2.el9RHSA-2023:6685
Red Hatrhel_aus:8.6::baseos, rhel_e4s:8.6::baseos, rhel_tus:8.6::baseostpm2-tss, tpm2-tss-devel, tpm2-tss-debuginfo and 1 more0:2.3.2-5.el8_6RHSA-2024:4408
Red Hatrhel_eus:8.8::baseostpm2-tss, tpm2-tss-devel, tpm2-tss-debuginfo and 1 more0:2.3.2-5.el8_8RHSA-2024:4739
SUSELinux Enterprise Micro 5.3, Linux Enterprise Module for Basesystem 15 SP4tpm2-0-tss3.1.0-150400.3.3.1SUSE-SU-2023:0526-1
SUSELinux Enterprise Real Time 15 SP3tpm2-0-tss2.4.5-150300.3.6.1SUSE-SU-2023:0613-1
openSUSELeap 15.4tpm2-0-tss2.4.5-150300.3.6.1SUSE-SU-2023:0613-1
openSUSELeap 15.4, Leap Micro 5.3tpm2-0-tss3.1.0-150400.3.3.1SUSE-SU-2023:0526-1
AlmaLinux8tpm2-tss, tpm2-tss-devel2.3.2-5.el8ALSA-2023:7166
AlmaLinux9tpm2-tss, tpm2-tss-devel3.2.2-2.el9ALSA-2023:6685
Azure Linux2tpm2-tss2.4.6-2AZL-13055
Azure Linux3tpm2-tss4.0.1-1AZL-69129
Alpaquita23tpm2-tss3.2.2-r0BELL-CVE-2023-22745
Alpaquitastreamtpm2-tss4.0.1-r0BELL-CVE-2023-22745

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8tpm2-tss-0:2.3.2-5.el8Fixed 2023-11-14RHSA-2023:7166
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supporttpm2-tss-0:2.3.2-5.el8_6Fixed 2024-07-09RHSA-2024:4408
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicetpm2-tss-0:2.3.2-5.el8_6Fixed 2024-07-09RHSA-2024:4408
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionstpm2-tss-0:2.3.2-5.el8_6Fixed 2024-07-09RHSA-2024:4408
Red Hat Enterprise Linux 8.8 Extended Update Supporttpm2-tss-0:2.3.2-5.el8_8Fixed 2024-07-23RHSA-2024:4739
Red Hat Enterprise Linux 9tpm2-tss-0:3.2.2-2.el9Fixed 2023-11-07RHSA-2023:6685
Red Hat Enterprise Linux 7tpm2-tssOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-22745.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON