Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl granted I3C user thread
-
ExploitSecond thread rewrites target->bus mid-syscall
-
ExecutionKernel dispatches on attacker-controlled fake device
-
ImpactCall attacker function pointer in supervisor mode
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Requires a Zephyr build with CONFIG_USERSPACE enabled AND an I3C controller driver compiled in - builds lacking either are explicitly stated to be unaffected. The attacker must already control a user thread that has been granted the specific I3C device object (PR:L), plus a second cooperating thread in the same memory domain to rewrite target->bus during the TOCTOU window; CONFIG_DEVICE_API_ASSERT being disabled (the default) is what allows the forged device to pass with no runtime type check. Limiting factors: local access only (no remote vector), a privileged/granted object prerequisite, a non-default build configuration (userspace + I3C), and a probabilistic race - though the advisory notes the race is repeatable and can be retried until it succeeds, reducing the practical barrier. |
| Impact | This is a genuine, high-quality memory-safety defect (CWE-367 TOCTOU double-fetch) whose severity signals are moderate rather than emergency. The CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H, 7.0 High) is internally consistent with the mechanism: exploitation is local (AV:L - the attacker must already run a user thread on the device), requires the thread to hold a granted I3C device object (PR:L, i.e. authenticated/privileged user context), and depends on winning a check-to-use race (AC:H), but when it lands the impact is total - kernel-mode code execution and full escape of the userspace sandbox (C:H/I:H/A:H). EPSS is not provided in the input, so exploitation probability cannot be quantified. The CVE is NOT in CISA KEV and no public exploit is identified, so there is no evidence of active exploitation. The vuln.today decision label is 'this_week', which with a merged vendor patch places this as a prioritized-but-not-emergency fix. The limiting factors (local-only, requires a granted I3C object, requires a CONFIG_USERSPACE build with an I3C controller driver, and requires winning a retryable race) substantially narrow the real-world exploitable population below what the 7.0 and the 'RCE' tag might imply - this is a local privilege escalation / sandbox escape, not a remotely reachable RCE. Treat as a real priority for affected embedded builds but not a widespread internet-facing emergency. |
| Exploit ScenarioDerived | An attacker who already controls an unprivileged user thread that has been granted an I3C device object spawns a second cooperating thread in the same memory domain; thread A calls i3c_transfer() while thread B continuously rewrites the descriptor's bus field to point at an attacker-crafted fake struct device. When the swap lands inside the check-to-use window (spanning num_msgs validation, the message-array access check, a stack VLA allocation and a memcpy of up to 32 i3c_msg), the kernel loads a function pointer from the attacker-controlled api table and calls it in supervisor mode. No public exploit is identified at time of analysis; because the race is retryable the attacker can simply keep trying until it lands. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 04, 2026
Kernel-mode code execution is achievable in Zephyr RTOS releases 3.2.0 through 4.3.1 and 4.4.0 through 4.4.x because the z_vrfy_i3c_transfer() verification handler validates the caller's struct i3c_device_desc in place and then dispatches on the caller's live pointer, letting a cooperating second thread in the same memory domain swap the bus field between the K_SYSCALL_OBJ() check and the DEVICE_API_GET(i3c, target->bus)->i3c_xfers() call. An attacker must already hold a granted I3C device object and run on a build with CONFIG_USERSPACE plus an I3C controller driver; builds missing either are unaffected. Successful substitution gives supervisor-mode control-flow hijack - a full escape of the userspace sandbox - with arbitrary two-level kernel reads or a kernel fault as lesser outcomes, and no public exploit code was identified at time of analysis (not in CISA KEV).
RemediationAI
Vendor-released patch: Zephyr 4.3.2 and 4.5.0. Update to 4.3.2 if tracking the 4.3 line or to 4.5.0 on main, per advisory GHSA-86xj-2q6x-h82w and fix commit 550437bc9efd7b733f13b9be73e77fd98858c8a2; backports are merged on the v4.3, v4.4 and v3.7 branches, and release lines that have not taken the backport remain affected. The change is small - the handler now snapshots the descriptor with k_usermode_from_copy(), validates target_copy.bus with K_SYSCALL_OBJ(), and dispatches on &target_copy - so a downstream cherry-pick is straightforward, and updating is the only complete fix. Because the issue is confined to CONFIG_USERSPACE builds that include an I3C controller driver, dropping either from the configuration removes the exposure without a patch, at the cost of losing userspace memory protection or I3C transfer support respectively. Note that the forged-device dispatch is only unchecked because DEVICE_API_GET() performs no runtime type validation outside CONFIG_DEVICE_API_ASSERT builds, so enabling that assertion restores a runtime check as defense in depth - though it adds per-call validation overhead and turns violations into hard failures rather than being a substitute for the snapshot fix. Given the priority label this_week and the kernel-code-execution outcome, schedule the upgrade promptly.
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's userspace model splits each __syscall into a z_impl_* implementation and a z_vrfy_* handler that runs in supervisor mode on behalf of a user thread; for i3c_transfer() the handler lives in drivers/i3c/i3c_handlers.c and the implementation in include/zephyr/drivers/i3c.h. The pre-fix handler performed K_SYSCALL_MEMORY_READ(target, sizeof(*target)) to confirm readability, fetched target->bus once for K_SYSCALL_OBJ(target->bus, K_OBJ_DRIVER_I3C), and then handed the user pointer to copy_i3c_msgs_and_transfer(); z_impl_i3c_transfer() re-reads target->bus from that same user memory and performs the indirect dispatch. This is the classic CWE-367 time-of-check/time-of-use double fetch, and the window is wide - it spans the num_msgs validation, the message-array access check, a stack VLA allocation and a memcpy() of up to 32 struct i3c_msg - which is why the advisory describes the race as repeatable rather than a narrow single shot. DEVICE_API_GET() is a bare _dev->api cast with no runtime type validation unless CONFIG_DEVICE_API_ASSERT is enabled, so a forged device pointer survives to the indirect call. Notably, the same file already carried a 'Use a local copy to avoid switcheroo attacks' comment for the message array, showing the project treats snapshotting as a security requirement; the fix applies k_usermode_from_copy() (user_copy(), which validates access and copies into kernel memory) to the descriptor, validates the copy's bus, and dispatches on the copy so the checked value is provably the used value.
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:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Local user thread needed (AV:L), holding a granted I3C object (PR:L), exploiting a timing race (AC:H); successful substitution yields full kernel code execution, so C/I/A all High.
Primary rating from Vendor (zephyr).
CVSS VectorVendor: zephyr
DescriptionCVE.org
The user-mode verification handler for the i3c_transfer() system call, z_vrfy_i3c_transfer() in drivers/i3c/i3c_handlers.c, validated the caller-supplied struct i3c_device_desc in place instead of snapshotting it. It confirmed only that the descriptor was readable by the calling thread (K_SYSCALL_MEMORY_READ()), read target->bus once to check it with K_SYSCALL_OBJ(), and then passed the caller's live pointer down. The implementation z_impl_i3c_transfer() re-reads target->bus from that user memory and dispatches through it as DEVICE_API_GET(i3c, target->bus)->i3c_xfers(...), so the bus that was validated is not necessarily the bus that is used. DEVICE_API_GET() performs no runtime type check outside CONFIG_DEVICE_API_ASSERT builds.
On a build with CONFIG_USERSPACE and an I3C controller driver, a user thread that has been granted an I3C device object can exploit this with a second thread in the same memory domain: one thread calls i3c_transfer() while the other rewrites the bus field of the descriptor. The window between the check and the use spans the num_msgs validation, the message-array access check, a stack VLA allocation and a memcpy() of up to 32 struct i3c_msg, so the race is repeatable and can simply be retried until it lands.
When the substitution succeeds, the kernel dereferences an attacker-chosen pointer as a struct device, loads a function pointer from the attacker-controlled api table and calls it in supervisor mode with attacker-influenced arguments. This yields kernel-mode code execution from an unprivileged user thread - a complete escape of the userspace memory-protection sandbox; lesser outcomes are an arbitrary two-level kernel read or a kernel fault. Builds without CONFIG_USERSPACE, or without an I3C driver, are unaffected.
The fix copies the descriptor into a kernel-stack local with k_usermode_from_copy(), validates the bus in that copy, and dispatches on the copy, so the validated value is provably the value used.
Technical POC Analysis
CWE-367 (time-of-check/time-of-use race, double fetch) in the Zephyr RTOS syscall verification handler zvrfyi3ctransfer() in drivers/i3c/i3chandlers.c.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Zephyr RTOS releases 3.2.0 through 4.3.1 and 4.4.0 through 4.4.x contain a high-severity kernel-mode code execution vulnerability (CVE-2026-87038) that allows an attacker with access to a granted I3C device object to escape the userspace sandbox and take full control of the system. This affects only builds with CONFIG_USERSPACE enabled and an I3C controller driver, which are common in IoT and embedded products. Leadership should prioritize remediation because a successful exploit could lead to complete device compromise, data breaches, and operational disruption.
Apply vendor patch.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-116742
NVD
CVE.org
EPSS
GitHub
Exploit-DB