Out-of-bounds Write Affecting op-tee/optee_os package, versions [3.21.0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Write vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-OPTEEOPTEEOS-17824408
  • published6 Jul 2026
  • disclosed6 Jul 2026
  • creditUnknown

Introduced: 6 Jul 2026

NewCVE-2026-40257  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write in the SHA-3 accelerated finalize process due to an off-by-one error. An attacker can cause a massive heap overflow that corrupts all TEE kernel memory following the hash state by leveraging the ARM Crypto Extensions with SHA3 Crypto Extensions enabled. This is only exploitable if CFG_CRYPTO_WITH_CE82 is set to y (ARMv8.2+ with SHA3 Crypto Extensions).

Workaround

This vulnerability can be mitigated by disabling SHA3 Crypto Extensions with CFG_CRYPTO_WITH_CE82=n.

References

CVSS Base Scores

version 4.0
version 3.1