cve.bz

CVE-2024-29040 tpm2-software tpm2-tss: Deserialization of Untrusted Data

4.3 mediumEPSS 0.3%

Medium (4.3) in tpm2-software tpm2-tss. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
This repository hosts source code implementing the Trusted Computing Group's (TCG) TPM2 Software Stack (TSS). The JSON Quote Info returned by Fapi_Quote has to be deserialized by Fapi_VerifyQuote to the TPM Structure `TPMS_ATTEST`. For the field `TPM2_GENERATED magic` of this structure any number can be used in the JSON structure. The verifier can receive a state which does not represent the actual, possibly malicious state of the device under test. The malicious device might get access to data it shouldn't, or can use services it shouldn't be able to. This issue has been patched in version 4.1.0.

Severity

CVSS 3.1

4.3 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 27th 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: partial, assessed 2024-07-02. 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-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-29040 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-29040?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-29040?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-2024-29040 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 CNA's record in the CVE List.

ProductAffected
tpm2-software tpm2-tss< 4.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12tpm2-tssno fix listedDEBIAN-CVE-2024-29040
Debian13, 14tpm2-tss4.1.0-1DEBIAN-CVE-2024-29040
Ubuntu20.04:LTStpm2-tss2.3.2-1ubuntu0.20.04.2USN-6796-1
Ubuntu22.04:LTStpm2-tss3.2.0-1ubuntu1.1UBUNTU-CVE-2024-29040 USN-6796-1
Ubuntu24.04:LTStpm2-tss4.0.1-7.1ubuntu5.1UBUNTU-CVE-2024-29040 USN-6796-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5 and 1 moretpm2-0-tss3.1.0-150400.3.6.1SUSE-SU-2024:1635-1
SUSELinux Enterprise Micro 5.5tpm2-0-tss3.1.0-150400.3.6.1SUSE-SU-2024:1635-2
SUSELinux Micro 6.0efivar38-3.1SUSE-SU-2025:20151-1
SUSELinux Micro 6.0tpm2-0-tss4.1.0-1.1SUSE-SU-2025:20151-1
SUSELinux Micro 6.0tpm2.0-tools5.7-1.1SUSE-SU-2025:20151-1
openSUSELeap 15.5, Leap Micro 5.3, Leap Micro 5.4tpm2-0-tss3.1.0-150400.3.6.1SUSE-SU-2024:1635-1
Alpinev3.19tpm2-tss4.0.2-r0ALPINE-CVE-2024-29040
Alpinev3.20, v3.21, v3.22 and 2 moretpm2-tss4.1.1-r0ALPINE-CVE-2024-29040
Azure Linux2tpm2-tss2.4.6-4AZL-42985
Azure Linux3tpm2-tss4.0.2-1AZL-42978
Alpaquita23tpm2-tss3.2.3-r0BELL-CVE-2024-29040
Alpaquitastreamtpm2-tss4.1.1-r0BELL-CVE-2024-29040

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; 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 · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as moderate because it allows an attacker to generate arbitrary quote data, potentially bypassing Fapi_VerifyQuote detection, but it requires specific conditions to be exploited.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10tpm2-tssNot affected
Red Hat Enterprise Linux 7tpm2-tssOut of support scope
Red Hat Enterprise Linux 8tpm2-tssNot affected
Red Hat Enterprise Linux 9tpm2-tssAffected

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-2024-29040.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON