# CVE-2026-90589: Memory-mapped thread stack is never unmapped when a thread is aborted by another thread, exhausting kernel virtual address space

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.14% (percentile 2, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2026-11-09T22:04:01.652Z
- **Modified:** 2026-11-12T18:17:54.770Z

## Who should check

- Anyone running zephyrproject zephyr \>= 3.7.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0

## Description

When CONFIG\_THREAD\_STACK\_MEM\_MAPPED is enabled, each thread stack is mapped into the kernel virtual address space with a guard page on either side, and the mapping is released during abort cleanup. k\_thread\_abort\_cleanup() in kernel/thread.c has two paths: a deferred one for self-abort, which stashes the mapping in thread\_cleanup\_stack\_addr/thread\_cleanup\_stack\_sz, and an immediate one for a thread aborted by some other thread. The immediate path called do\_thread\_cleanup(), which ignored its thread argument and only ever unmapped the stashed address — a value populated exclusively by the self-abort path. The mapped stack of a thread aborted by another thread was therefore never unmapped.

Every k\_thread\_abort() of a non-current thread leaks the thread's stack region plus its two guard pages from the kernel virtual address space. Threads that end by returning from their entry function take the working self-abort path, so the leak is specific to explicit cancellation — k\_thread\_abort(), pthread\_cancel(), osThreadTerminate(), or the kernel thread kill shell command. Both k\_thread\_create() and k\_thread\_abort() are system calls, so with CONFIG\_USERSPACE an unprivileged user-mode thread that has been granted a thread object and a user-capable stack object can drive the leak from user mode, consuming a kernel-side resource it cannot otherwise touch.

With CONFIG\_KERNEL\_VM\_SIZE defaulting to 8 MB, a few hundred create/abort cycles exhaust the runtime mapping region. k\_mem\_map\_phys\_guard() then returns NULL, and map\_thread\_stack() guards that only with \_\_ASSERT\_NO\_MSG(), which is compiled out of production builds; thread creation proceeds to write through a NULL-derived stack base and faults in kernel mode. The impact is a persistent denial of service — a kernel fatal error requiring a reboot — with no memory disclosure or corruption, and it is limited to configurations where memory-mapped thread stacks are enabled (x86 targets with X86\_MMU and demand paging disabled, where the option is implied by default).

## Affected and fixed versions

- zephyrproject zephyr: \>= 3.7.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0 (cvelist)

## Mitigation

- Upgrade zephyr to 4.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-90589.md
Affected: zephyrproject zephyr >= 3.7.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: 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-90589 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

zephyrproject zephyr \>= 3.7.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0.

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

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

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

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

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-xj93-xhq8-g5p4>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/d9ec92ccb1d91f4ea5b15271d30169d5b27ba667>

## 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-90589>

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