Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Operating systems

CVE-2026-90589 — zephyrproject zephyr

Medium · CVSS 5.5EPSS 0.1% First seen November 09, 2026

One of 7 zephyrproject zephyr vulnerabilities published together by NVD: our article covers all of them.

Operating systemsVulnerabilities

Analysis

Zephyr CVE-2026-90589: aborting threads from another thread leaks kernel stack mappings, enabling reboot-level DoS

CVE-2026-90589 is a medium-severity (CVSS 5.5) flaw in Zephyr's memory-mapped thread stack support. Cancelling a thread from another thread leaks its kernel address space, and repeated cycles can crash the kernel until reboot. The sources do not yet name fixed versions or say whether exploitation has been observed.

Key points

  • Zephyr builds with CONFIG_THREAD_STACK_MEM_MAPPED are affected; the NVD record ties this mainly to x86 targets with X86_MMU and demand paging disabled.
  • Aborting a thread from another thread skips releasing its stack mapping and guard pages, while normal self-termination is handled correctly.
  • Repeated cancellations can exhaust the kernel VM region, causing a kernel fault and reboot, a persistent denial of service.
  • CVSS 5.5 (MEDIUM); the sources report no memory disclosure or corruption.
  • Fixed versions and exploitation status are not stated in the sources.

What's affected

The flaw affects the Zephyr project's Zephyr RTOS in builds where CONFIG_THREAD_STACK_MEM_MAPPED is enabled. According to the NVD record, the option matters mainly on x86 targets with X86_MMU and demand paging disabled, where it is enabled by default. The sources do not list affected version ranges or a fixed release.

The flaw

Zephyr maps each thread stack into kernel virtual address space, with guard pages on both sides, and releases that mapping when the thread is cleaned up. The NVD entry says the cleanup path works only when a thread ends itself by returning from its entry function. When one thread aborts another, the cleanup code ignores the thread it was given, so the stack mapping is never released. Explicit cancellation through k_thread_abort(), pthread_cancel(), osThreadTerminate() or the kernel thread kill shell command is therefore affected. Each such abort permanently consumes kernel address space.

How serious is it

NVD rates the issue MEDIUM, with a CVSS score of 5.5. The described impact is a persistent denial of service. The default kernel VM region is 8 MB, and the record says a few hundred create-and-abort cycles can exhaust it. Once the region is full, a mapping request returns NULL. The check that would catch this is compiled out of production builds, so thread creation proceeds and faults in kernel mode, requiring a reboot. Because thread creation and abort are system calls, the record notes that an unprivileged user-mode thread holding the necessary object grants can trigger the leak. The sources describe no memory disclosure or corruption.

Exploitation status

The sources do not say whether this flaw is being exploited in the wild, and no vendor fix or advisory is cited.

What to do

Until a fixed release is published, reduce exposure. Confirm whether your Zephyr builds enable CONFIG_THREAD_STACK_MEM_MAPPED, and disable it where the feature is not required. Limit which user-mode threads receive thread and stack object grants. Watch for kernel fatal errors and unexpected reboots, and review logs for repeated thread cancellation. Track the Zephyr project's security channels for an advisory and patch.

Recommended actions

  1. Check whether CONFIG_THREAD_STACK_MEM_MAPPED is enabled in your Zephyr builds and disable it where it is not needed.
  2. Restrict which user-mode threads are granted thread and stack objects, especially in systems built with CONFIG_USERSPACE.
  3. Monitor for kernel fatal errors, unexpected reboots and repeated thread cancellation in logs or telemetry.
  4. Track the Zephyr project's security advisories and apply the fix once a fixed release is published.

Written with AI assistance from the sources listed on this page; check the vendor advisory before acting.

Summary

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

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Medium · 5.5 CVSS 3.1 base score from the CNA (zephyrproject.org)

An attacker with a normal user account can exploit this with local access, without any user action.

Attack from
local access (a logged-in user, or a malicious file opened on the device)
Attack complexity
low (no special conditions)
Login needed
yes, a normal user account
User action needed
no
Scope
stays within the vulnerable component
Impact
high on availability, none on confidentiality and integrity

Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness

  • CWE-401: Missing Release of Memory after Effective Lifetime

Affected and fixed versions

ProductAffected versionsFixed in
zephyrproject zephyr≥ 3.7.0, < 4.3.24.3.2
≥ 4.4.0, < 4.5.04.5.0

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Details from NVD (public domain).

Affected

  • zephyrproject zephyr

What to do

  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-90589?

CVE-2026-90589 is a medium-severity (CVSS 5.5) flaw in Zephyr's memory-mapped thread stack support. Cancelling a thread from another thread leaks its kernel address space, and repeated cycles can crash the kernel until reboot. The sources do not yet name fixed versions or say whether exploitation has been observed. Weakness type: Missing Release of Memory after Effective Lifetime (CWE-401).

How severe is CVE-2026-90589?

CVE-2026-90589 has a CVSS 3.1 base score of 5.5 (medium), from the CNA (zephyrproject.org). An attacker with a normal user account can exploit this with local access, without any user action.

Is CVE-2026-90589 being exploited?

Not as far as is known: CVE-2026-90589 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.1% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2026-90589?

zephyrproject zephyr ≥ 3.7.0, < 4.3.2 (fixed in 4.3.2); zephyrproject zephyr ≥ 4.4.0, < 4.5.0 (fixed in 4.5.0).

How do I fix CVE-2026-90589?

Check whether CONFIGTHREADSTACKMEMMAPPED is enabled in your Zephyr builds and disable it where it is not needed. Restrict which user-mode threads are granted thread and stack objects, especially in systems built with CONFIGUSERSPACE. Monitor for kernel fatal errors, unexpected reboots and repeated thread cancellation in logs or telemetry.

Timeline & sources

References