{"id":"CVE-2026-40257","aliases":["CVE-2026-40257"],"related":[],"kind":"vulnerability","state":"published","title":"OP-TEE has SHA-3 accelerated finalize heap overflow","summary":"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`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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`.","source":"cvelist"},{"lang":"es","text":"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’.","source":"nvd"}],"published":"2026-07-06T16:26:20.379Z","modified":"2026-10-25T20:10:00.147Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"version":">= 3.21.0, < 4.11.0","status":"affected"}],"vendor":"OP-TEE","product":"optee_os","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.21.0","lastAffected":"4.10.0"}],"vendor":"trustedfirmware","product":"op-tee","cpe":"cpe:2.3:o:trustedfirmware:op-tee:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/OP-TEE/optee_os/security/advisories/GHSA-75x4-j8p9-55qv","tags":["mitigation","patch","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-06T18:57:28.891Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40257","url":"https://www.cve.org/CVERecord?id=CVE-2026-40257","licence":"CVE Terms of Use","modified":"2026-07-06T18:57:42.472Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40257","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40257","licence":"Public domain","modified":"2026-10-25T20:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:27.232Z","epss":{"score":0.00109,"percentile":0.01334,"date":"2026-12-01T12:00:22.000Z"}}