Skip to content
Heist/ feed
Back to feed
Medium

optee-os — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-40257

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

Products
optee-os
Affected versions
4.10.0-1, 4.10.0-2, 4.5.0-2, 4.7.0-1, 4.8.0-1, 4.9.0-1
Fixed versions
Not specified
CVEs
CVE-2026-40257
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 12:17 UTC · Revision 2

Source evidence

DEBIAN-CVE-2026-40257

core-osv · Original source

Published 6 Jul 2026, 17:16 UTC

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

osv:DEBIAN-CVE-2026-40257

optee-os

Fixed versions: Not specified

Complete source record
{
  "id": "5cc6aaea03c25301e24c652b562214b0a7d542449dcc9d3bc6baf656c35fe057",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-40257",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-40257",
    "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`.",
    "evidence": "osv:DEBIAN-CVE-2026-40257",
    "products": [
      {
        "name": {
          "value": "optee-os",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.10.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.10.0-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.5.0-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.7.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.8.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "4.9.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2026-40257",
      "aliases": [
        "DEBIAN-CVE-2026-40257"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "optee-os",
            "purl": "pkg:deb/debian/optee-os?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "4.10.0-1",
            "4.10.0-2",
            "4.5.0-2",
            "4.7.0-1",
            "4.8.0-1",
            "4.9.0-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40257.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T11:47:26.593971074Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-40257"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-40257"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-40257",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 450777,
  "published_at": "2026-07-06T17:16:31.253+00:00"
}