Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRun as user thread with resource pool
-
DeliveryCreate child thread on dynamically allocated stack
-
ExploitCall k_object_release() on live stack/thread object
-
Executionunref_check() frees in-use kernel memory
-
ImpactRecycle freed block to read/write kernel heap
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target to be built with CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS enabled (both default 'n'), typically reached via the experimental CONFIG_DYNAMIC_THREAD, which selects DYNAMIC_OBJECTS when USERSPACE is set. The attacker must already be executing as a user-mode thread that owns a resource pool and is permitted to call the k_thread_create() and k_object_release() syscalls. The concrete trigger is: create a child thread on a dynamically allocated stack (k_object_alloc_size(K_OBJ_THREAD_STACK_ELEMENT) or k_thread_stack_alloc() with K_USER), then call k_object_release() on that live stack object - or let a creator drop permissions so the child's own termination frees its struct k_thread inside halt_thread(). CONFIG_GEN_PRIV_STACKS worsens impact because the freed block also holds the privileged stack and z_stack_data; SMP builds widen the reallocation window because another CPU can recycle the memory while the halt path still uses it. Limiting factors: no network reachability (local user-mode execution is a prerequisite), the non-default and experimental build configuration, and the need for the attacker to already run authorized syscalls. These sharply narrow realistic exposure despite the 8.8 score. |
| Impact | The signals point to a genuine but configuration-gated kernel-integrity flaw rather than a mass-exploitation emergency. CVSS 3.1 is 8.8 (AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H): the scope change (S:C) is the key driver, reflecting that an unprivileged user thread escalates to full kernel read/write - breaking kernel integrity (P1) and user-mode isolation (P2). PR:L and AV:L confirm the attacker must already be running user-mode code on the device; this is a privilege-escalation/isolation-escape primitive, not a remote entry point. No EPSS score and no KEV listing are present in the input, and there is no confirmed working exploit - only the vendor (Zephyr) GHSA advisory, which documents the mechanism in exhaustive source-level detail. The vuln.today decision label is 'this_week' (not act_now/emergency). The dominant risk-limiting factor is deployment reality: exploitation requires CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS, both default-off, normally reached via the experimental CONFIG_DYNAMIC_THREAD - so the true real-world exposure is a small subset of Zephyr deployments. Conflict to note: CVSS is 'high/critical'-adjacent at 8.8, but the absence of EPSS/KEV and the non-default experimental build requirement mean the practical priority is elevated only for targets actually shipping dynamic userspace objects, not for the Zephyr population at large. No fix has been released, which raises urgency for exposed configurations since no patched version can yet be deployed. |
| Exploit ScenarioDerived | On a Zephyr build with CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS enabled, an unprivileged user thread that holds a resource pool allocates a dynamic stack, creates a child thread on it, then calls the legitimate k_object_release() syscall on the still-running stack (or thread) object; unref_check() sees an empty permission bitmap and frees the backing heap block while the child is still executing on it. Because the freed block returns to the resource pool that also serves later kernel allocations, a follow-on allocation recycles the address, giving the attacker read/write over kernel heap memory and over a struct k_thread the scheduler still uses. No public exploit code is identified; the Zephyr GHSA advisory documents the trigger path in full but provides analysis, not a weaponized exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 29, 2026
Use-after-free in Zephyr RTOS (>= 1.12.0) kernel user-mode object management lets a low-privileged local user-mode thread free a live dynamic thread stack or its own struct k_thread through the k_object_release() syscall, after which the kernel keeps reading and writing the recycled memory. Exploitation is gated on non-default build options (CONFIG_USERSPACE plus CONFIG_DYNAMIC_OBJECTS, typically via the experimental CONFIG_DYNAMIC_THREAD), local access only, and an attacker already permitted to call k_thread_create() and k_object_release(); the impact is kernel integrity and user-mode isolation loss (CVSS 8.8, S:C), and no public exploit has been identified at time of analysis. Exposure is real but narrow because the required configurations are not enabled by default.
RemediationAI
No vendor-released patch identified at time of analysis; the GHSA advisory (https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-624h-x2xx-2h3w) states that no fix has been released yet and will be updated when one lands, so no fixed version number can be cited. The exposure is defined by the build configuration, so the primary compensating control is to build without CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS (both default n), and in particular without CONFIG_DYNAMIC_THREAD; the trade-off is that removing userspace support drops memory-domain isolation for application threads and removing dynamic objects/dynamic threads removes runtime thread and stack allocation. Where userspace is required, restrict which user-mode threads are granted permission to call k_thread_create() and k_object_release(), since the trigger requires a user thread that owns a resource pool and is authorized to make those syscalls; the trade-off is reduced functionality for the affected application threads. Note that k_thread_stack_free() refusing to free a stack in use, and requiring an uninitialised stack, does not close the hole, because the k_object_release() path bypasses both checks.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Root cause is CWE-416 use-after-free in the permission-bitmap-based lifetime model of Zephyr's userspace dynamic objects. In kernel/userspace/userspace.c, unref_check() treats an empty permission bitmap as proof that an object is dead: for any K_OBJ_FLAG_ALLOC object it removes the node and calls k_free(dyn->data) and k_free(dyn) without testing ko->type or K_OBJ_FLAG_INITIALIZED, and the per-type cleanup branch covers only K_OBJ_MSGQ, K_OBJ_STACK and K_OBJ_TIMER, so K_OBJ_THREAD and K_OBJ_THREAD_STACK_ELEMENT fall straight through to the free. That conflicts with the actual kernel usage model: k_thread_create() holds pointers to a dynamic struct k_thread and to a dynamic stack for the whole life of the thread, and z_thread_user_init() grants the new thread permission only on its own thread object, not on its stack (the stack bit is inherited only with K_INHERIT_PERMS). Because z_vrfy_k_object_release() checks only that the caller holds permission on the target, dropping the last bit frees storage the scheduler still relies on. The consequences propagate through halt_thread(), which calls z_thread_release() and z_thread_user_exit() and then still touches thread->base.thread_state, thread->stack_obj, swap_retval and switch_handle; do_swap() and arch_switch() write into the old thread after the scheduler lock is released; on SMP, remote aborters spin locklessly on the halted thread's state and another CPU can reallocate the freed block in that window. With CONFIG_GEN_PRIV_STACKS the freed block also contains the privileged stack and z_stack_data. The freed memory returns to the thread's resource_pool, the same heap later used for other dynamic kernel objects and metadata, so a user thread can read or overwrite kernel heap it was never granted. The design intent is visible in the code itself: supervisor-only k_object_free() is deliberately not exposed to user mode because in-use objects cannot be detected, k_thread_stack_free() returns -EBUSY for a live thread's stack, and include/zephyr/internal/syscall_handler.h documents that kernel-held pointers do not keep dynamic objects alive and that retaining syscalls must reject dynamic objects.
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
AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
An unprivileged user thread (PR:L) triggers the flaw locally through permitted syscalls (AV:L/AC:L) and escalates into the kernel (S:C) with full heap read/write (C:H/I:H/A:H).
Primary rating from Vendor (zephyr).
CVSS VectorVendor: zephyr
DescriptionCVE.org
In the kernel's user-mode object management, unref_check() in kernel/userspace/userspace.c frees a dynamically allocated kernel object as soon as its permission bitmap becomes empty. It does not check the object type or whether the kernel still uses the object. k_thread_create() keeps pointers to a dynamic struct k_thread (from k_object_alloc(K_OBJ_THREAD)) and a dynamic stack (from k_object_alloc_size(K_OBJ_THREAD_STACK_ELEMENT, ...) or k_thread_stack_alloc() with K_USER) for the whole life of the thread, but nothing in the bitmap records this. z_thread_user_init() gives the new thread permission on its own thread object only, not on its stack. When the thread terminates, halt_thread() calls z_thread_release(), and its z_thread_user_exit() drops all of the thread's permissions. If that leaves the bitmap empty, the thread's own struct k_thread (and a stack it holds the last permission on) is freed before the abort path and the context switch are done with it.
Any user thread with a resource pool can trigger this through syscalls it is allowed to make. If it creates a thread on a dynamic stack and then calls k_object_release() on the stack, or exits, the stack block is freed while the child still runs on it. With CONFIG_GEN_PRIV_STACKS that block also holds the privileged stack and z_stack_data, and the child keeps user-mode access to it. Once the creator has released a dynamic thread object, the thread itself can call k_object_release() on its own thread object and free its struct k_thread while it is running. z_vrfy_k_object_release() checks only that the caller holds permission on the object. If the creator has dropped its permissions, the child's ordinary termination frees the thread object inside halt_thread(). The kernel then still reads and writes the freed memory: thread->stack_obj, the thread state, swap_retval and switch_handle, and CPUs waiting for the halt spin on it. On SMP builds, another CPU can reallocate the memory in that window. All of this needs CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS.
Freed blocks go back to the thread's resource pool, which also serves later kernel allocations such as other dynamic kernel objects and their metadata. A user thread can then read and write kernel heap memory it was never granted, overwrite kernel data later placed there, or control the contents of a struct k_thread that the scheduler still uses. This breaks kernel integrity (P1) and user-mode isolation (P2) from an unprivileged user thread. The supervisor-only k_object_free() states that it is not exposed to user mode because the kernel cannot tell whether an object is still in use, and k_thread_stack_free() refuses to free a stack in use. Dropping permissions gets around both.
Technical POC Analysis
CWE-416.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity memory corruption vulnerability in Zephyr RTOS (CVE-2026-130477) could allow a low-privileged local thread to free active kernel memory, compromising kernel integrity and user-mode isolation. This affects products built with non-default configurations (CONFIG_USERSPACE and CONFIG_DYNAMIC_OBJECTS, typically via CONFIG_DYNAMIC_THREAD). Leadership should care because exploitation could break security boundaries and lead to system compromise, though the risk is currently limited to specific builds and no public exploit has been identified.
No vendor-released patch identified at time of analysis. Interim mitigations include disabling CONFIG_DYNAMIC_THREAD (and, where possible, CONFIG_DYNAMIC_OBJECTS) in affected builds, and restricting access to the k_thread_create() and k_object_release() syscalls to trusted code only.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),
An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on
Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit
Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS
Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner
Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability
Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable
DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul
zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(
Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul
The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte
Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c
EUVD-2026-137827
NVD
CVE.org
EPSS
GitHub
Exploit-DB