CVE-2025-7844

Source
https://cve.org/CVERecord?id=CVE-2025-7844
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-7844.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-7844
Published
2025-08-04T21:35:04.013Z
Modified
2026-07-15T01:49:17.652708167Z
Severity
  • 1.0 (Low) CVSS_V4 - CVSS:4.0/AV:P/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L/U:Green CVSS Calculator
Summary
wolfTPM library wrapper function `wolfTPM2_RsaKey_TpmToWolf` copies external data to a fixed-size stack buffer without length validation potentially causing stack-based buffer overflow
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-121"
    ],
    "cna_assigner": "wolfSSL",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/7xxx/CVE-2025-7844.json"
}
References

Affected packages

Git / github.com/wolfssl/wolftpm

Affected ranges

Type
GIT
Repo
https://github.com/wolfssl/wolftpm
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "3.9.2"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

v.*
v.1.8
v1.*
v1.1
v1.3
v1.4
v1.5
v1.6.0
v1.7
v1.8
v1.9.0
v2.*
v2.0.0
v2.1.0
v2.2.0
v2.3.0
v2.3.1
v2.4.0
v2.5.0
v2.6.0
v2.7.0
v3.*
v3.0.0
v3.1.0
v3.2.0
v3.4.0
v3.6.0
v3.8.0
v3.9.0
v3.9.1
v3.9.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-7844.json"