CVE-2026-42546: OP-TEE Shared Memory Resource Leak (CVSS 3.8)
OP-TEE, a security component that protects sensitive operations on Arm-based processors, contains a memory leak in its cleanup logic. When the system processes certain types of shared memory requests from the regular Linux kernel, it fails to properly release internal memory references. This causes memory to gradually accumulate and become unusable, eventually forcing the system to restart. The vulnerability only affects systems using non-FF-A configurations with non-contiguous shared memory support and requires local access to trigger.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 3.8 LOW · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L
- Weaknesses (CWE)
- CWE-770
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-07-06 / 2026-07-07
NVD description (verbatim)
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.3.0 and prior to version 4.11.0, a resource leak exists in OP-TEE’s shared memory cleanup logic because the function `cleanup_shm_refs()` in `core/tee/entry_std.c` fails to apply a required bitmask (`OPTEE_MSG_ATTR_TYPE_MASK`) to parameter attributes. When processing non-contiguous memory parameters from a normal-world caller, the system fails to match the attribute type in its internal switch statement and skips the necessary mobj_put() call. This results in a persistent reference leak of `mobj_reg_shm` objects, which remain on internal lists with dangling refcounts. This affects non-FF-A configurations that support non-contiguous, non-secure shared memory. Over time, these accumulated leaks progressively consume the secure-world heap, degrading the system's ability to service trusted application operations and eventually requiring a reboot to recover. Version 4.11.0 contains a patch. No known workarounds are available.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-42546 is a resource leak in OP-TEE versions 3.3.0 through 4.10.x stemming from inadequate bitmask application in the cleanup_shm_refs() function within core/tee/entry_std.c. The function fails to apply OPTEE_MSG_ATTR_TYPE_MASK when evaluating parameter attributes during normal-world shared memory cleanup. This causes the switch statement to fail matching non-contiguous memory parameter types, bypassing the mobj_put() dereferencing call. The resulting mobj_reg_shm objects remain on internal lists with unbalanced reference counts, progressively consuming secure-world heap space. The vulnerability is confined to non-FF-A deployments that expose non-contiguous, non-secure shared memory interfaces.
Business impact
This vulnerability degrades TEE availability and trustworthy application performance over time. Organizations relying on OP-TEE for cryptographic operations, secure key storage, or DRM enforcement will experience latency increases and eventual service unavailability as heap exhaustion prevents new trusted application operations. Repeated system reboots become necessary to reset memory state. The impact is particularly acute for always-on embedded systems, IoT devices, and mobile platforms where continuous TEE operation is expected. However, the localized nature and low exploitability limit the risk profile for most enterprise deployments.
Affected systems
The vulnerability affects OP-TEE versions 3.3.0 through 4.10.x running on Arm Cortex-A cores with TrustZone support. Only systems using non-FF-A (non-Firmware Framework for Arm A-profile) configurations that permit non-contiguous shared memory parameters are impacted. FF-A-compliant deployments are unaffected. This includes certain embedded Linux systems, IoT platforms, and mobile devices where OP-TEE provides the trusted execution environment, particularly those built on older or customized firmware stacks.
Exploitability
Exploitation requires local access to the system and the ability to invoke OP-TEE shared memory operations repeatedly. The vulnerability is not remotely exploitable. No elevated privileges are strictly necessary—an unprivileged process can trigger the leak by making successive system calls that exercise the non-contiguous memory cleanup path. However, practical exploitation is passive: an attacker repeatedly calls the vulnerable code path until heap exhaustion occurs. There are no known public exploits, and the CVE is not tracked on CISA's KEV catalog.
Remediation
Upgrade OP-TEE to version 4.11.0 or later, which applies a bitmask correction to the cleanup_shm_refs() function to properly evaluate parameter attributes. Organizations should test patches in a staging environment first, particularly because OP-TEE is deeply integrated into firmware stacks and bootloaders. If immediate patching is infeasible, consider restricting non-contiguous shared memory access or deploying FF-A-compliant firmware configurations, though these may require hardware or significant architectural changes.
Patch guidance
Apply OP-TEE version 4.11.0 or any subsequent release. Verify patch deployment by confirming the version string in OP-TEE logs or via firmware diagnostics. Because OP-TEE typically resides in read-only firmware or secure bootloaders, patching often requires coordinated updates with board-level support packages, kernel drivers, or OEM firmware distributions. Test the update on non-production systems first to ensure no regressions in trusted application compatibility. Consult your device manufacturer or OP-TEE distribution channel for signed, validated builds.
Detection guidance
Monitor for signs of secure-world heap exhaustion: increasing latency in trusted application calls, intermittent timeouts from cryptographic or DRM operations, and system reboots attributed to TEE faults. Enable TEE debug logging if available to detect mobj_reg_shm reference count anomalies or allocation failures. Correlate TEE errors with patterns of repeated non-contiguous shared memory parameter usage. Memory profiling tools specific to your TEE implementation may expose persistent mobj references. Detection is difficult without invasive instrumentation, so focus on proactive patching rather than reactive detection.
Why prioritize this
Although CVSS 3.8 reflects low severity, the vulnerability merits prompt but measured attention because it affects system stability and long-term TEE availability. It is not an acute security breach risk but rather a reliability and availability concern. Organizations with strict uptime requirements or those operating safety-critical systems should prioritize patching earlier. Others can integrate the fix into routine firmware maintenance cycles. The absence of remote exploitability and active exploitation lowers urgency compared to critical vulnerabilities.
Risk score, explained
CVSS 3.1 score of 3.8 (LOW) reflects the attack vector (local only, AV:L), low complexity (AC:L), requirement for local privilege or user context (PR:L), absence of user interaction (UI:N), and scope change that impacts only availability (C:N, I:N, A:L). The score appropriately captures that this is a denial-of-service vector through resource exhaustion rather than a confidentiality or integrity threat. The main risk is operational continuity rather than data breach or system compromise.
Frequently asked questions
Does this affect systems using FF-A (Firmware Framework for Arm)?
No. The vulnerability is specific to non-FF-A configurations. If your firmware stack implements FF-A interfaces, you are not impacted. Verify your TEE firmware documentation or contact your device manufacturer to confirm your configuration.
Can this vulnerability be triggered remotely or does it require local access?
Local access is required. An attacker or application running on the normal Linux kernel can trigger the leak by making repeated calls to OP-TEE shared memory functions, but remote network-based exploitation is not possible.
What happens if we delay patching?
Continued operation will gradually consume secure-world memory, causing TEE performance to degrade and trusted applications to fail or timeout. Eventually, system reboots become necessary. No data loss or confidentiality breach occurs, but service reliability suffers. Patching within your normal firmware update cycle is recommended.
Are there workarounds if we cannot patch immediately?
No official workarounds are documented. Potential mitigation options include restricting non-contiguous shared memory access (if your applications permit) or upgrading to an FF-A-compliant firmware stack, though both may require hardware or architectural changes. Focus on planning a timely upgrade to version 4.11.0.
This analysis is based on the CVE description and CVSS metrics as published. Patch version numbers and affected version ranges should be verified against the official OP-TEE repository and your device manufacturer's advisory. Exploitation, detection, and mitigation advice assumes typical deployments; your specific hardware, firmware stack, and threat model may differ. Consult trusted firmware and OEM documentation before implementing patches. SEC.co makes no warranty regarding the completeness or accuracy of this intelligence and recommends independent verification of all remediation steps. Source: NVD (public-domain), retrieved 2026-08-15. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-12590LOWbody-parser Silent Limit Bypass Denial of Service
- CVE-2026-13322LOWKubeVirt Downward Metrics Memory Exhaustion (CWE-770)
- CVE-2026-42145LOWCoolify File Upload Validation Vulnerability
- CVE-2026-60000LOWOpenSSH GSSAPI MaxAuthTries Denial of Service Vulnerability
- CVE-2023-54365HIGHTraefik HTTP/2 Denial of Service Vulnerability – Rapid Reset Attack
- CVE-2024-54178MEDIUMIBM Db2 Cloud Pak for Data Denial of Service via Resource Allocation Flaw
- CVE-2025-36319MEDIUMIBM watsonx.data Intelligence DoS Vulnerability
- CVE-2025-46638HIGHDell BSAFE SSL-J Resource Exhaustion DoS Vulnerability