Use After Free Affecting op-tee/optee_os package, versions [3.16.0-rc1,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.19% (9th 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 Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-OPTEEOPTEEOS-17308779
  • published11 Jun 2026
  • disclosed3 Jun 2026
  • creditUnknown

Introduced: 3 Jun 2026

CVE-2026-40290  (opens in a new tab)
CWE-416  (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 Use After Free in the sp_mem_remove() function due to failure to acquire the global sp_mem_lock before freeing entries in smem->receivers and smem->regions. An attacker can cause memory corruption or execute arbitrary code by triggering concurrent access to these lists, leading to dereferencing of freed pointers. This is only exploitable if the system is configured as an SPMC for S-EL0 SPs with CFG_SECURE_PARTITION=y.

CVSS Base Scores

version 4.0
version 3.1