Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain unprivileged user-mode thread execution
-
DeliveryCall k_thread_abort() targeting an unowned thread object
-
Exploitthread_obj_validate() misinterprets -EPERM as verification success
-
ExecutionKernel oops suppressed; execution reaches CODE_UNREACHABLE in supervisor mode
-
ImpactIllegal-instruction trap crashes kernel (Clang) or UB enables unauthorized thread operation (GCC)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: 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 CONFIG_USERSPACE to be enabled at Zephyr build time - this is an explicit opt-in build configuration, not the default for minimal or single-address-space Zephyr deployments. The attacker must have code execution as an unprivileged user-mode thread within the Zephyr userspace environment; threads already running in supervisor/kernel mode pass through a different validation path and are not constrained by thread_obj_validate(). The target thread object must be one that k_object_validate() rejects for the calling thread - i.e., one the caller was never granted access to via k_object_access_grant() - which is the expected and normal state for references to threads in other application partitions. On Clang-compiled builds, the DoS impact is deterministic and requires no specific conditions beyond the above. On GCC-compiled builds, the access-control bypass depends on compiler optimization decisions for undefined behavior involving __builtin_unreachable(), making it less predictable but potentially more impactful. There is no network attack vector; exploitation is strictly local and requires the ability to call Zephyr syscalls from within a user-mode thread context. |
| Impact | The NVD-assigned CVSS 3.1 score of 6.5 (Medium) with vector AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H is a reasonable baseline representation of the Clang-build DoS path. The scope-change designation (S:C) is well-justified because a user-mode thread - sandboxed by design - reaches CODE_UNREACHABLE while executing in supervisor mode, crossing the user/kernel privilege boundary in an uncontrolled manner. The PR:L metric confirms that some level of local access (an unprivileged user-mode thread) is required, which limits internet-scale automated exploitation and reduces real-world urgency for most deployments. A material limitation of the I:N metric is that it does not capture the GCC-specific access-control bypass: on GCC builds, undefined behavior may allow an unauthorized thread to pass through to the actual k_thread_abort() or k_thread_join() implementation - an integrity and authorization impact not reflected in the current score. Defenders on GCC-compiled Zephyr builds should treat effective risk as moderately higher than the 6.5 score implies. No EPSS data was provided in the intelligence sources, and this CVE does not appear in CISA KEV, so no confirmed active exploitation or widespread scanning has been identified. The critical real-world constraint is that CONFIG_USERSPACE must be explicitly enabled at build time; Zephyr deployments operating in single-address-space mode are entirely unaffected. |
| Exploit ScenarioDerived | An attacker with the ability to execute code as an unprivileged user-mode thread within a Zephyr application partition - for example, via a compromised or malicious application component in a multi-partition IoT firmware image - calls k_thread_abort() passing a pointer to a thread object the calling thread was never granted access to. The thread_obj_validate() function receives -EPERM from k_object_validate(), but the inverted boolean check treats this non-zero value as success, suppresses the kernel oops, and execution reaches CODE_UNREACHABLE in supervisor mode; on Clang-compiled firmware this deterministically emits an illegal-instruction trap that crashes the entire kernel, halting all system threads and services. No public exploit code has been identified at time of analysis, but the triggering condition is mechanically straightforward given the deterministic Clang crash behavior. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 19, 2026
Unprivileged user-mode threads in Zephyr RTOS (versions 2.3.0 through 4.4.1) can escape the userspace sandbox by exploiting an inverted boolean check in the syscall access-control handler, yielding two compiler-dependent outcomes: on Clang-compiled builds, a deterministic kernel crash via illegal-instruction trap reachable from any unprivileged thread; on GCC builds, undefined behavior that may suppress the return-value check and allow unauthorized abortion or joining of threads the caller was never granted access to. The CVSS vector (AV:L/PR:L/S:C/A:H) reflects the scope change from user-mode into supervisor context, and no public exploit has been identified at time of analysis - a vendor patch is available as of Zephyr 4.4.2.
RemediationAI
Upgrade to Zephyr 4.4.2 or later, which incorporates the upstream fix at commit bd1828652dfc217ba9f3a2221a7499cd8914ed9c changing K_SYSCALL_VERIFY_MSG(ret, ...) to K_SYSCALL_VERIFY_MSG(ret == 0, ...) in kernel/thread.c. Refer to the GitHub Security Advisory GHSA-crfw-75jw-hjm3 at https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-crfw-75jw-hjm3 for official release guidance. For systems that cannot immediately upgrade, disabling CONFIG_USERSPACE in the build configuration eliminates the vulnerable syscall validation path entirely by removing the userspace isolation subsystem; this is an effective but significant trade-off, as it collapses the user/kernel trust boundary and removes application sandboxing. No narrower compile-time or runtime workaround targeting only the specific code path has been identified. Reducing the set of application partitions that can spawn arbitrary threads and ensuring that thread object access grants follow least-privilege principles reduces attack surface but does not remediate the underlying flaw.
Affected VersionsENISA
Affected Packages
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
Zephyr RTOS implements a userspace isolation model via the CONFIG_USERSPACE build option, enabling unprivileged application threads that invoke kernel services through a validated syscall interface. The k_thread_join() and k_thread_abort() functions are declared with the __syscall attribute in include/zephyr/kernel.h, meaning calls from user-mode threads are intercepted and validated before kernel execution. The validation function thread_obj_validate() in kernel/thread.c calls k_object_validate() and interprets its return value in a switch statement; the default (access-denied) branch was expected to raise a kernel oops via K_OOPS(K_SYSCALL_VERIFY_MSG(ret, 'access denied')). The defect (CWE-862: Missing Authorization) is a logic inversion: K_SYSCALL_VERIFY_MSG treats a non-zero expression as 'verified OK', but the code supplied the raw non-zero error code ret (-EPERM when access was never granted, or -EBADF for unregistered object pointers) rather than the boolean ret 0. As a result the macro evaluated the truthy error code as success, the oops was never raised, and execution fell through to CODE_UNREACHABLE - a macro that translates to __builtin_unreachable() - while still running in supervisor mode inside the syscall handler. The fix (commit bd1828652dfc) changes the expression to ret 0, so any non-zero denial code now correctly evaluates to false, triggering the kernel oops and terminating the offending caller.
Know when the next one hits your stack
- 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:N/I:N/A:H
Requires low-privileged local thread; scope changes to supervisor mode on crash; primary reliable impact is kernel availability loss with no confidentiality breach.
Primary rating from Vendor (zephyrproject).
CVSS VectorVendor: zephyrproject
Lifecycle Timeline
1DescriptionCVE.org
The Zephyr kernel validates the k_thread_join() and k_thread_abort() system calls (declared __syscall in include/zephyr/kernel.h) through thread_obj_validate() in kernel/thread.c. Its default switch branch is the access-denied path, taken when k_object_validate() returns -EPERM (the calling user thread was never granted access to the target thread object) or -EBADF (the supplied pointer is not a registered kernel object of the right type). That branch invoked K_OOPS(K_SYSCALL_VERIFY_MSG(ret, "access denied")), but K_SYSCALL_VERIFY_MSG treats a true expression as success; the non-zero error code ret therefore read as "verified OK", the kernel oops was never raised, and control fell through to CODE_UNREACHABLE.
Because k_thread_join() and k_thread_abort() are system calls, an unprivileged user-mode thread (under CONFIG_USERSPACE) can reach this denial path directly by calling either syscall on a thread object it does not own. Instead of the offending thread being cleanly terminated, execution reaches __builtin_unreachable() while running in supervisor mode inside the syscall handler.
On Clang builds CODE_UNREACHABLE emits an illegal-instruction trap, so a user thread can deterministically crash the kernel - a locally triggerable denial of service that escapes the userspace sandbox. On GCC builds the path is undefined behavior: the compiler may drop the return-value handling for thread_obj_validate(), so it can return an undefined bool; if that is false, the caller proceeds into the real k_thread_join()/k_thread_abort() implementation for a thread the user was never authorized to access, an access-control bypass.
The fix changes the verification expression to ret == 0, so a denied (non-zero) result now correctly raises K_OOPS and terminates the offending caller.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-61491
NVD
CVE.org
EPSS
GitHub
Exploit-DB