# CVE-2026-99024: optee: register TEE devices only once fully initialized

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-10-23T12:21:08.551Z
- **Modified:** 2026-10-30T13:21:38.727Z

## Who should check

- Anyone running Linux \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 8de131e1a2ab379641bb475f1bcb472a1a1d75df; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< db36c37a2c3f13d5fd0f1afd8e2391d6c50793e6; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 6b21a716ccab7fa42e8dfa3118000bc5274004ab; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 262062c01f5a817104c88bf6eacb7c6ffdc7018d; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 8cae1605be8a047ae3a62df07b9474d61462c4f6; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 681adbc9c7a820279582a295e183fa6a1d1b4ec4; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 2f7240f0a6fd83df274fc0a2abf0609b4e6bd388; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< c108feca0a096f8db25d1b69130035025e9e936d
- Anyone running Linux 4.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

optee: register TEE devices only once fully initialized

optee\_probe() called tee\_device\_register() on both the client and the
supplicant device before the rest of struct optee had been initialized.

tee\_device\_register() calls cdev\_device\_add(), which does two things at
once: it creates /dev/tee0 and /dev/teepriv0, and it links the device
into the tee class so that class\_find\_device() can find it. From that
moment on the device is reachable both from user space via tee\_open()
and from kernel space via tee\_client\_open\_context(). The only gate in
teedev\_open() is tee\_device\_get(), which merely checks that
teedev-\>desc is non-NULL, which was already set by tee\_device\_alloc().
Therefore, there is effectively no gate at all.

A context opened in that window can run against a struct optee where

  - optee-\>call\_queue.mutex is not initialized by optee\_cq\_init()
  - optee-\>supp mutex and completions is not initialized by
    optee\_supp\_init()
  - optee-\>rpmb\_dev\_mutex is not initialized yet,
  - the message argument cache is not initialized by
    optee\_shm\_arg\_cache\_init()
  - optee-\>ctx is still NULL

Any open session or invoke during this window takes uninitialized
mutexes and dereferences a NULL pointer.

Fix it by moving both tee\_device\_register() calls down to the point
where all of struct optee is set up.

\[JW: adding fixes and cc\]

## Affected and fixed versions

- Linux: \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 8de131e1a2ab379641bb475f1bcb472a1a1d75df; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< db36c37a2c3f13d5fd0f1afd8e2391d6c50793e6; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 6b21a716ccab7fa42e8dfa3118000bc5274004ab; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 262062c01f5a817104c88bf6eacb7c6ffdc7018d; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 8cae1605be8a047ae3a62df07b9474d61462c4f6; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 681adbc9c7a820279582a295e183fa6a1d1b4ec4; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 2f7240f0a6fd83df274fc0a2abf0609b4e6bd388; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< c108feca0a096f8db25d1b69130035025e9e936d (cvelist)
- Linux: 4.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99024. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99024.md
Affected: Linux >= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, < 8de131e1a2ab379641bb475f1bcb472a1a1d75df; >= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, < db36c37a2c3f13d5fd0f1afd8e2391d6c50793e6; >= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, < 6b21a716ccab7fa42e8dfa3118000bc5274004ab; >= 4fb0a5eb364d239722e745c…
Fixed in: Linux 8de131e1a2ab379641bb475f1bcb472a1a1d75df, Linux 6b21a716ccab7fa42e8dfa3118000bc5274004ab, Linux 262062c01f5a817104c88bf6eacb7c6ffdc7018d, Linux 8cae1605be8a047ae3a62df07b9474d61462c4f6, Linux 681adbc9c7a820279582a295e183fa6a1d1b4ec4, Linux 2f7240f0a6fd83df274fc0a2abf0609b4e6bd388

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99024 being exploited?

There is no confirmed exploitation: CVE-2026-99024 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-99024?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99024?

Linux \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 8de131e1a2ab379641bb475f1bcb472a1a1d75df; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< db36c37a2c3f13d5fd0f1afd8e2391d6c50793e6; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 6b21a716ccab7fa42e8dfa3118000bc5274004ab; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 262062c01f5a817104c88bf6eacb7c6ffdc7018d; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 8cae1605be8a047ae3a62df07b9474d61462c4f6; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 681adbc9c7a820279582a295e183fa6a1d1b4ec4; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< 2f7240f0a6fd83df274fc0a2abf0609b4e6bd388; \>= 4fb0a5eb364d239722e745c02aef0dbd4e0f1ad2, \< c108feca0a096f8db25d1b69130035025e9e936d; Linux 4.12.

### Is there a fix for CVE-2026-99024?

Yes. Fixed in Linux 8de131e1a2ab379641bb475f1bcb472a1a1d75df, Linux 6b21a716ccab7fa42e8dfa3118000bc5274004ab, Linux 262062c01f5a817104c88bf6eacb7c6ffdc7018d, Linux 8cae1605be8a047ae3a62df07b9474d61462c4f6, Linux 681adbc9c7a820279582a295e183fa6a1d1b4ec4, Linux 2f7240f0a6fd83df274fc0a2abf0609b4e6bd388. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99024?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/8de131e1a2ab379641bb475f1bcb472a1a1d75df>
- other: <https://git.kernel.org/stable/c/db36c37a2c3f13d5fd0f1afd8e2391d6c50793e6>
- other: <https://git.kernel.org/stable/c/6b21a716ccab7fa42e8dfa3118000bc5274004ab>
- other: <https://git.kernel.org/stable/c/262062c01f5a817104c88bf6eacb7c6ffdc7018d>
- other: <https://git.kernel.org/stable/c/8cae1605be8a047ae3a62df07b9474d61462c4f6>
- other: <https://git.kernel.org/stable/c/681adbc9c7a820279582a295e183fa6a1d1b4ec4>
- other: <https://git.kernel.org/stable/c/2f7240f0a6fd83df274fc0a2abf0609b4e6bd388>
- other: <https://git.kernel.org/stable/c/c108feca0a096f8db25d1b69130035025e9e936d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99024>

HTML: <https://flawdb.com/CVE-2026-99024> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99024>
