# CVE-2026-40257: OP-TEE has SHA-3 accelerated finalize heap overflow

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-06 · Modified: 2026-07-06
- Aliases: UBUNTU-CVE-2026-40257, DEBIAN-CVE-2026-40257
- Record: https://cvemate.com/vulnerability/CVE-2026-40257 · JSON: https://cvemate.com/vulnerability/CVE-2026-40257/json

## Description

```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`.
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.109%, percentile 1.323%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian optee-os (Debian): All versions (No fix recorded)
- ubuntu optee-os (Ubuntu): All versions (No fix recorded)
- op-tee optee\_os: ≥ 3.21.0, \< 4.11.0
- trustedfirmware op-tee: ≥ 3.21.0, ≤ 4.10.0

## References

- <https://github.com/OP-TEE/optee_os/security/advisories/GHSA-75x4-j8p9-55qv>
- <https://ubuntu.com/security/CVE-2026-40257>
- <https://www.cve.org/CVERecord?id=CVE-2026-40257>
- <https://security-tracker.debian.org/tracker/CVE-2026-40257>

---

Data as of 2026-12-05T08:13:10.707Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
