CVE-2026-40257
Full vulnerability record from the local CVENow database.
Description
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`.
Severity
MEDIUM
CVSS score
5.5
(v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-07-06 17:16:31.253000
Last modified
2026-10-25 20:10:00.147000
View original CVE JSON
{
"id": "CVE-2026-40257",
"sourceIdentifier": "[email protected]",
"published": "2026-07-06T17:16:31.253",
"lastModified": "2026-10-25T20:10:00.147",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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`."
},
{
"lang": "es",
"value": "OP-TEE es un Entorno de Ejecución Confiable (TEE) diseñado como compañero de un kernel de Linux no seguro ejecutándose en Arm; núcleos Cortex-A usando la tecnología TrustZone. A partir de la versión 3.21.0 y antes de la versión 4.11.0, la implementación SHA-3 acelerada por las Extensiones Criptográficas de ARM tiene un error de ’off-by-one’ que puede causar un desbordamiento de montículo masivo que corrompe toda la memoria del kernel del TEE después del estado del hash. Esto afecta a todas las plataformas construidas con ’CFG_CRYPTO_WITH_CE82=y’ (ARMv8.2+ con Extensiones Criptográficas SHA3). La versión 4.11.0 contiene un parche. Como solución alternativa, deshabilite las Extensiones Criptográficas SHA3 con ’CFG_CRYPTO_WITH_CE82=n’."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "OP-TEE",
"product": "optee_os",
"versions": [
{
"version": ">= 3.21.0, < 4.11.0",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
"baseScore": 5.5,
"baseSeverity": "MEDIUM",
"attackVector": "LOCAL",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 1.8,
"impactScore": 3.6
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-06T18:57:28.891502Z",
"id": "CVE-2026-40257",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-787"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:o:trustedfirmware:op-tee:*:*:*:*:*:*:*:*",
"versionStartIncluding": "3.21.0",
"versionEndIncluding": "4.10.0",
"matchCriteriaId": "C9D819B8-1780-4240-BF51-0FC2FF483CCD"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/OP-TEE/optee_os/security/advisories/GHSA-75x4-j8p9-55qv",
"source": "[email protected]",
"tags": [
"Mitigation",
"Patch",
"Vendor Advisory"
]
}
]
}