Skip to main content

Zephyr RTOS EUVDEUVD-2026-120490

| CVE-2026-90589 MEDIUM
Memory Leak (CWE-401)
2026-11-09 zephyr
5.5
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privileged thread execution (user-mode or kernel)
  2. Delivery
    Loop k_thread_create then k_thread_abort on non-current thread
  3. Exploit
    Leak mapped stack plus guard pages each cycle
  4. Execution
    Exhaust 8 MB kernel VM mapping region
  5. Persist
    Next stack map returns NULL, write through NULL base
  6. Impact
    Kernel fatal fault, persistent DoS until reboot

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

Exploitation requires a build with CONFIG_THREAD_STACK_MEM_MAPPED enabled, which the advisory ties to MMU and ARCH_SUPPORTS_MEM_MAPPED_STACKS and is selected only for X86_MMU with demand paging disabled (implied by default on x86 targets); non-MMU microcontroller builds are not affected. The trigger is explicit cancellation of a non-current thread via k_thread_abort(), pthread_cancel(), osThreadTerminate(), or the 'kernel thread kill' shell command - threads that simply return from their entry function take the working self-abort path and do not leak. The attacker must be able to repeatedly drive create/abort cycles; with CONFIG_USERSPACE this is reachable from an unprivileged user-mode thread that has been granted a thread object and a user-capable stack object (both k_thread_create and k_thread_abort are system calls). Limiting factors: local access only (no network vector), the narrow vulnerable configuration, a default 8 MB CONFIG_KERNEL_VM_SIZE requiring a few hundred cycles to exhaust, and the affected version ranges (>=3.7.0,<4.3.2 and >=4.4.0,<4.5.0). Complete fix is upgrading to 4.3.2 or 4.5.0 as the vendor states.

Impact

This is a genuine but moderate-priority issue, best treated as scheduled patching rather than an emergency. The CVSS 3.1 base score is 5.5 (medium) with vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - a local, low-complexity, low-privilege availability-only flaw, consistent with its CWE-401 memory-leak nature and the described impact (persistent denial of service requiring a reboot, no disclosure or corruption). The vuln.today Decision label is 'this_month', not 'act_now' or 'emergency', which aligns with the medium severity. No EPSS score and no KEV entry were provided in the input, and there is no evidence of active exploitation; the input provides a vendor patch commit, a GHSA advisory, and a regression test, but no standalone public exploit. The decisive mitigating factor is not in the raw score but in the configuration gating: the flaw only manifests when CONFIG_THREAD_STACK_MEM_MAPPED is enabled, which per the advisory requires MMU and ARCH_SUPPORTS_MEM_MAPPED_STACKS and is selected only for X86_MMU with demand paging disabled (implied by default on x86). The large majority of Zephyr deployments run on Cortex-M microcontrollers without an MMU and are therefore unaffected. Net: a real, fixable availability bug for the narrow set of x86-MMU Zephyr builds - especially those also enabling CONFIG_USERSPACE, where an unprivileged user-mode thread can drive it - but low real-world risk for the typical Zephyr fleet. Missing data to note explicitly: EPSS probability and KEV status were not supplied, so widespread-exploitation likelihood could not be weighed from quantitative signals.

Exploit ScenarioDerived

On a vulnerable x86 Zephyr build with memory-mapped thread stacks (and typically CONFIG_USERSPACE), an attacker-controlled or malfunctioning low-privileged thread repeatedly calls k_thread_create() followed by k_thread_abort() on a non-current thread, each cycle leaking that thread's stack region and two guard pages from the 8 MB kernel virtual address space. After a few hundred cycles the runtime mapping region is exhausted, k_mem_map_phys_guard() returns NULL, and the next thread creation writes through a NULL-derived stack base, faulting in kernel mode and panicking the system until reboot. No standalone public exploit was identified; the fix commit includes a regression test that demonstrates the leak by observing non-reused stack addresses across create/abort cycles.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 09, 2026

Kernel virtual address space exhaustion in Zephyr RTOS causes the memory-mapped stack region of every thread cancelled by another thread to be leaked permanently, eventually faulting the kernel and forcing a reboot. Only builds with CONFIG_THREAD_STACK_MEM_MAPPED - x86 targets with X86_MMU and demand paging disabled, where the option is implied by default - are affected, covering versions 3.7.0 through 4.3.1 and 4.4.0 through 4.4.x. A local attacker with low privileges, including an unprivileged user-mode thread that has been granted a thread object and a user-capable stack object under CONFIG_USERSPACE, can drive repeated create/abort cycles and exhaust the default 8 MB CONFIG_KERNEL_VM_SIZE within a few hundred iterations; no public exploit code has been identified at time of analysis, and vendor fixes are released in 4.3.2 and 4.5.0.

RemediationAI

Upgrade to Zephyr 4.3.2 or 4.5.0, which contain the fix commit d9ec92ccb1d91f4ea5b15271d30169d5b27ba667, merged via PR #116180 on main and backported through PRs #119101 (v4.4-branch), #119102 (v4.3-branch) and #119103 (v3.7-branch); release lines that have not taken the backport remain vulnerable. The vendor states the complete fix is upgrading. Where an upgrade cannot be taken immediately, the configuration gating offers compensating controls with real trade-offs: build without CONFIG_THREAD_STACK_MEM_MAPPED so stacks are not drawn from the kernel virtual mapping region, at the cost of losing the per-thread guard pages and the mapped-stack overflow detection they provide (note the option is implied by default on x86 MMU targets without demand paging, so an explicit opt-out and revalidation are needed); and under CONFIG_USERSPACE, restrict the granting of thread objects and user-capable stack objects to trusted threads so unprivileged code cannot drive the create/abort loop, which removes the user-mode trigger but not the leak caused by kernel threads aborting other kernel threads. Because every explicit cancellation of a non-current thread leaks (k_thread_abort(), pthread_cancel(), osThreadTerminate(), the 'kernel thread kill' shell command), rate-limiting or avoiding such cancellations reduces the attack surface but does not fix the bug; the regression test at tests/kernel/mem_protect/stackprot/src/mapped_stack.c asserts address reuse across 32 create/abort cycles and can be used to verify a fix. Vendor advisory: https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-xj93-xhq8-g5p4.

Affected VersionsENISA

Zephyr 4.4.0 <4.5.0
Zephyr 3.7.0 <4.3.2

Affected Packages

euvd zephyr fix: 4.3.2, 4.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a missing-release-of-resource condition (CWE-401) in kernel/thread.c that only manifests when CONFIG_THREAD_STACK_MEM_MAPPED is enabled, a Kconfig option that requires MMU and ARCH_SUPPORTS_MEM_MAPPED_STACKS and is selected only for X86_MMU with demand paging disabled. In that mode each thread stack is mapped into kernel virtual address space with a guard page on either side, allocated through k_mem_map_phys_guard() as size plus two CONFIG_MMU_PAGE_SIZE regions. Because these mappings share the tiny CONFIG_KERNEL_VM_SIZE default of 0x800000 (8 MB), they are a finite shared resource. k_thread_abort_cleanup() had two cleanup paths: a deferred path used for self-abort, where defer_thread_cleanup() stashed the mapping in thread_cleanup_stack_addr/thread_cleanup_stack_sz, and an immediate path for a thread aborted by another thread (reached from halt_thread() in kernel/sched.c). The immediate path called do_thread_cleanup(), whose ARG_UNUSED(thread) signature shows it ignored the thread argument and only unmapped the stashed address - a value written exclusively by the self-abort path - so the aborted thread's own stack_info.mapped region was never released. The fix introduces unmap_thread_stack() and splits the two cases: do_deferred_thread_cleanup() drains the stash, while do_thread_cleanup() now unmaps thread->stack_info.mapped and clears addr/sz so the object is safe against repeated cleanup on SMP. The failure escalates because map_thread_stack() validates a NULL return from k_mem_map_phys_guard() with only __ASSERT_NO_MSG(), which is compiled out of production builds, so once the virtual region allocator is exhausted thread creation derives a stack base from NULL and faults in kernel mode. The mechanism was introduced by commit d0a90a0b (memory-mapped thread stacks) and the divergent cleanup split by 378131c2; both k_thread_create() and k_thread_abort() are __syscalls, providing the privilege path for user-mode triggering.

Know when Zephyr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (zephyr) PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

Trigger is on-device via thread syscalls, so AV:L; reliable looping gives AC:L; a granted user-mode thread object is needed, so PR:L; impact is reboot-level DoS only, so A:H and C/I:N.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

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

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
widely-used embedded RTOS, but vulnerable path limited to rare x86-MMU memory-mapped-stack builds
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2026-1678 CRITICAL POC
9.8 Mar 05

An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy