CVE-2025-7844
August 04, 2025
Exporting a TPM based RSA key larger than 2048 bits from the TPM could overrun a stack buffer if the default "MAX_RSA_KEY_BITS=2048" is used. If your TPM 2.0 module supports RSA key sizes larger than 2048 bit and your applications supports creating or importing an RSA private or public key larger than 2048 bits and your application calls "wolfTPM2_RsaKey_TpmToWolf" on that key, then a stack buffer could be overrun. If the "MAX_RSA_KEY_BITS" build-time macro is set correctly (RSA bits match what TPM hardware is capable of) for the hardware target, then a stack overrun is not possible.
Affected Packages
https://github.com/wolfSSL/wolfTPM.git (GITHUB):
Affected version(s) >=v1.1 <v3.9.2Fix Suggestion:
Update to version v3.9.2Related Resources (1)
Do you need more information?
Contact UsCVSS v4
Base Score:
1
Attack Vector
PHYSICAL
Attack Complexity
HIGH
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
LOW
CVSS v3
Base Score:
2.2
Attack Vector
PHYSICAL
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Weakness Type (CWE)
Stack-based Buffer Overflow
EPSS
Base Score:
0.02