CVE-2026-40257

Source
https://cve.org/CVERecord?id=CVE-2026-40257
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40257.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-40257
Aliases
  • GHSA-75x4-j8p9-55qv
Downstream
Published
2026-07-06T16:26:20Z
Modified
2026-10-21T02:57:05Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
OP-TEE has SHA-3 accelerated finalize heap overflow
Details

OP-TEE is a Trusted Execution Environment (TEE) designed as companion to a non-secure Linux kernel running on Arm; Cortex-A cores using the TrustZone technology. Starting in version 3.21.0 and prior to version 4.11.0, the ARM Crypto Extensions accelerated SHA-3 implementation has an off-by-one error that can cause a massive heap overflow that corrupts all TEE kernel memory following the hash state. This affects all platforms built with CFG_CRYPTO_WITH_CE82=y (ARMv8.2+ with SHA3 Crypto Extensions). Version 4.11.0 contains a patch. As a workaround, disable SHA3 Crypto Extensions with CFG_CRYPTO_WITH_CE82=n.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-787"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40257.json"
}
References

Affected packages

Git / github.com/op-tee/optee_os

Affected ranges

Type
GIT
Repo
https://github.com/op-tee/optee_os
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "3.21.0"
                },
                {
                    "fixed":  "4.11.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        }
    ]
}

Affected versions

3.*
3.21.0
3.22.0
3.22.0-rc1
4.*
4.0.0
4.0.0-rc1
4.1.0
4.1.0-rc1
4.10.0
4.10.0-rc1
4.11.0-rc1
4.2.0
4.2.0-rc1
4.3.0
4.3.0-rc1
4.4.0
4.4.0-rc1
4.5.0
4.5.0-rc1
4.6.0
4.6.0-rc1
4.7.0
4.7.0-rc1
4.8.0
4.8.0-rc1
4.9.0
4.9.0-rc1

Database specific

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