CVE-2024-29040: tpm2-tss · Deserialization of Untrusted Data
Affects tpm2-tssSource CVE Database V5
Not known to be exploited · CVSS 4.3 Medium : upgrade to 4.1.0 when convenient.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 25% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 4.1.0
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 28 Jun 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade tpm2-software/tpm2-tss to 4.1.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubtpm2-software/tpm2-tsspkg:github/tpm2-software/tpm2-tssOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
The primary mitigation is to upgrade all affected tpm2-tss installations to version 4.1.0 or later, where the vulnerability has been patched. Organizations should audit their software supply chain and device firmware to identify any use of vulnerable tpm2-tss versions. Implement strict input validation and sanity checks on all TPM-related deserialization processes to ensure that fields like TPM2_GENERATED magic conform to expected values. Limit local access to TPM-enabled devices through physical security controls and restrict administrative privileges to trusted personnel. Employ monitoring and logging of TPM interactions to detect anomalous or suspicious activity that could indicate exploitation attempts. For environments where upgrading is not immediately feasible, consider isolating vulnerable systems or disabling features that rely on Fapi_Quote and Fapi_VerifyQuote functions if possible. Finally, maintain awareness of updates from the tpm2-software project and apply security patches promptly.
Description
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.
References
- github.com/tpm2-software/tpm2-tss/security/advisories/GHSA-837m-jw3m-h9p6 (opens in a new tab)
- github.com/tpm2-software/tpm2-tss/releases/tag/4.1.0 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GI4JFEZBKQQUPJ4RWK6IHEWXAFCEJDPI/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EFR7SVEWCOXORHPCLLGXEMHFMIGG2MFE/ (opens in a new tab)