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

Published Jul 6, 2026
·
Updated

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 CFGCRYPTOWITHCE82=y (ARMv8.2+ with SHA3 Crypto Extensions). Version 4.11.0 contains a patch. As a workaround, disable SHA3 Crypto Extensions with CFGCRYPTOWITHCE82=n.

Affected Software

2 affected components
OP-TEE Op-tee Os>=3.21.0<4.11.0
TrustedFirmware OP-TEE>=3.21.0<=4.10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.11.0
  2. Configuration

    As a workaround, disable SHA3 Crypto Extensions by setting `CFG_CRYPTO_WITH_CE82=n` (affected when built with `CFG_CRYPTO_WITH_CE82=y`, ARMv8.2+ with SHA3 Crypto Extensions).

    OP-TEE ARM Crypto Extensions (CFG_CRYPTO_WITH_CE82) CFG_CRYPTO_WITH_CE82 = n

Event History

Jul 6, 2026
CVE Published
via MITRE·04:26 PM
Data Sourced
via MITRE·04:26 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40257?

CVE-2026-40257 has a medium severity rating of 5.5.

2

How do I fix CVE-2026-40257?

To fix CVE-2026-40257, update OP-TEE to version 4.11.0 or later.

3

What causes the CVE-2026-40257 vulnerability?

CVE-2026-40257 is caused by an off-by-one error in the ARM Crypto Extensions accelerated SHA-3 implementation.

4

Which versions of OP-TEE are affected by CVE-2026-40257?

Versions of OP-TEE from 3.21.0 up to, but not including, 4.11.0 are affected by CVE-2026-40257.

5

What are the consequences of CVE-2026-40257?

The consequences of CVE-2026-40257 include a potential heap overflow that could lead to remote code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203