Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain user-mode thread with granted RTIO context and iodev
-
DeliveryCraft SQE buffer pointer into kernel memory
-
ExploitInverted verifier accepts out-of-bounds pointer
-
ExecutionBus driver dereferences with supervisor privilege
-
ImpactArbitrary kernel read/write or kernel oops
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a firmware image built with both CONFIG_USERSPACE and CONFIG_RTIO, plus a user-mode thread that has been granted an RTIO context and an rtio_iodev object via rtio_access_grant() (the iodev object check is not inverted and must still pass), and a backing bus driver that dereferences the buffer - the generic I2C/I3C RTIO fallback handlers (i2c_rtio_default.c, i3c_rtio_default.c) or an equivalent vendor SPI/I2C RTIO driver. This is NOT a default configuration: Zephyr images without userspace or RTIO are unaffected, as the vendor's own remark states. Limiting factors are the local attack vector (attacker must already run code as a user-mode thread on the device), the required prior object grant, and the dependence on an RTIO-backed bus peripheral being present; there is no remote network vector and no user interaction. |
| Impact | The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.8) is well supported by the vendor evidence: this is a local, low-complexity flaw requiring a user-mode thread that already holds a granted RTIO context and iodev, yielding full confidentiality, integrity and availability loss via arbitrary kernel read, arbitrary kernel write and a kernel oops. The signals do not all point the same way on urgency. No CISA KEV listing and no EPSS score are present in the input, so there is no evidence of active or probable widespread exploitation; the GHSA advisory includes a reporter PoC, but it is a host-compiled demonstration of the inverted check in isolation, not a verified end-to-end working exploit. The vuln.today decision label is this_week, consistent with a serious but non-emergency priority. The dominant risk-limiting factor is reach: exploitation is impossible unless an image is built with both CONFIG_USERSPACE and CONFIG_RTIO and the attacker-controlled user thread has been granted an RTIO context and rtio_iodev - a deliberate, non-default deployment. Where that configuration exists this is a genuine high-priority user-to-kernel isolation escape rather than a high-CVSS-but-low-real-risk issue; where it does not, the code is unreachable. No conflicting signals were found, but note EPSS and KEV are simply absent (not low), so exploitation prevalence cannot be quantified from the input. |
| Exploit ScenarioDerived | On a Zephyr device built with CONFIG_USERSPACE and CONFIG_RTIO, a malicious user-mode thread that has legitimately been granted an RTIO context and an rtio_iodev submits a crafted RTIO_OP_RX or RTIO_OP_TX submission-queue entry whose buffer pointer names arbitrary kernel memory. Because the verifier's memory-permission checks are polarity-inverted, the out-of-bounds pointer is accepted and forwarded unchanged to the I2C/I3C/SPI RTIO bus driver, which dereferences it with supervisor privilege - writing peripheral data into kernel memory (arbitrary write) or clocking kernel memory out over the bus (disclosure). A public PoC reference exists in the GHSA advisory demonstrating the inverted check in isolation; it is not verified as working end-to-end exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 04, 2026
Zephyr's RTIO submission-queue verifier inverts every buffer-permission check, so a local user-mode thread running in a CONFIG_USERSPACE image can pass kernel addresses through a submission queue entry and have the bus driver dereference them with supervisor privilege, yielding arbitrary kernel write on RTIO_OP_RX submissions, kernel memory disclosure on RTIO_OP_TX submissions, and a kernel oops on unmapped pointers. The flaw exists in subsys/rtio/rtio_handlers.c from v3.3.0 and in subsys/rtio/rtio_syscalls.c through v4.3.1 and v4.4.x, and is fixed in Zephyr 4.3.2 and 4.5.0; exploitation is not limited to default builds but requires both CONFIG_USERSPACE and CONFIG_RTIO plus a user thread already granted an RTIO context and an rtio_iodev object via rtio_access_grant(). No active exploitation is confirmed (not in CISA KEV) and the reporter's host-side harness exercises the genuine verifier with a mocked arch_buffer_validate() to demonstrate the inverted polarity; a public PoC reference exists, it is not verified as working exploit code against a full Zephyr target.
RemediationAI
Update to Zephyr 4.3.2 or 4.5.0, the versions in which the bug is fixed; the upstream change is commit 454a848006595ce2d77fc2c9e458b0c557f5e4af (https://github.com/zephyrproject-rtos/zephyr/commit/454a848006595ce2d77fc2c9e458b0c557f5e4af) and the advisory is https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-mvxr-jx9h-jxh4. Release lines that have not taken the backport remain affected, so confirm the exact fixed version for the branch in use before rolling out. Where an upgrade cannot be applied immediately, the vendor notes the issue is conditional on configuration: builds in which CONFIG_USERSPACE or CONFIG_RTIO is disabled are not affected, so dropping either option removes the exposure on affected products at the cost of the user-mode isolation that CONFIG_USERSPACE provides or of RTIO functionality entirely. Additionally, because exploitation requires a user thread that has already been granted an RTIO context and an rtio_iodev object via rtio_access_grant(), withholding those grants from untrusted user threads closes the reachable path, though this restricts the intended RTIO userspace use case and is not a complete fix.
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
RTIO is Zephyr's submission-queue I/O subsystem, and its userspace entry point is the __syscall rtio_sqe_copy_in_get_handles(), also reached through the inline rtio_sqe_copy_in() wrapper; z_vrfy_rtio_sqe_copy_in_get_handles() copies each user-supplied SQE into a kernel ring slot and calls rtio_vrfy_sqe() as the sole buffer safeguard before forwarding the entry to the iodev driver. The root-cause class is an incorrect check of a function return value (the advisory also assigns CWE-787, CWE-822 and CWE-125): K_SYSCALL_MEMORY() is built on K_SYSCALL_VERIFY_MSG(), whose body evaluates !(expr) and is documented to return 0 on success and nonzero on failure, so folding its result into a boolean seeded true with '&=' admits exactly the buffers that failed validation and rejects the ones that passed - a legitimate thread-owned buffer produces a K_OOPS(true) reject path that kills the caller. The non-inverted K_SYSCALL_OBJ(sqe->iodev, K_OBJ_RTIO_IODEV) check still passes, and RTIO execution falls through to -EINVAL for TX/RX/TXRX when iodev is NULL, so a granted iodev is the only extra precondition. Downstream, the generic I2C and I3C RTIO fallback handlers (drivers/i2c/i2c_rtio_default.c, drivers/i3c/i3c_rtio_default.c) copy sqe.rx.buf/sqe.tx.buf into struct i2c_msg and call i2c_transfer(), with vendor SPI/I2C RTIO drivers behaving equivalently; the TXRX transmit buffer was additionally not validated read-only, which the fix addresses. The bug survived CI because the in-tree userspace RTIO tests only exercise RTIO_OP_NOP and mempool-backed reads, which never reach the affected checks.
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:U/C:H/I:H/A:H
Local user-mode thread with a prior RTIO/iodev grant (PR:L) trivially triggers the inverted check (AC:L), giving arbitrary kernel read/write and oops (C:H/I:H/A:H).
Primary rating from Vendor (zephyr).
CVSS VectorVendor: zephyr
DescriptionCVE.org
The RTIO submission-queue verifier rtio_vrfy_sqe() in subsys/rtio/rtio_syscalls.c (subsys/rtio/rtio_handlers.c before v4.3.0) accumulated the results of K_SYSCALL_MEMORY() into its valid_sqe flag with &=. That macro returns nonzero on failure (it is built on K_SYSCALL_VERIFY_MSG(), which yields !(expr)), so every buffer permission check contributed the opposite of its result. A submission whose tx.buf, rx.buf or txrx.tx_buf/txrx.rx_buf pointer was not accessible to the calling thread was accepted, while a legitimate, thread-owned buffer caused the calling thread to be killed with a kernel oops.
The verifier runs on behalf of the rtio_sqe_copy_in_get_handles() system call (also reached through the inline rtio_sqe_copy_in() wrapper), so it is driven directly by untrusted user-mode input on any image built with CONFIG_USERSPACE. A user thread that has been granted an RTIO context and an rtio_iodev object - the intended usage of RTIO userspace support, established via rtio_access_grant() - can submit an SQE whose buffer pointer and length name arbitrary kernel memory; the object check on sqe->iodev is unaffected and still passes, and the crafted SQE is forwarded to the bus driver unchanged.
Downstream consumers dereference the pointer with supervisor privilege. The generic I2C and I3C RTIO fallback handlers (drivers/i2c/i2c_rtio_default.c, drivers/i3c/i3c_rtio_default.c) copy sqe.rx.buf/sqe.tx.buf into struct i2c_msg and call i2c_transfer(), and the vendor SPI/I2C RTIO drivers behave equivalently. An RTIO_OP_RX submission therefore has peripheral data written into kernel memory of the attacker's choosing (arbitrary kernel write), an RTIO_OP_TX submission clocks kernel memory out over the bus (kernel memory disclosure), and a pointer to unmapped memory faults the kernel. This is a full escape from the user-mode isolation boundary that CONFIG_USERSPACE exists to enforce.
The defect was masked for years because the in-tree user-mode RTIO tests only exercise RTIO_OP_NOP and mempool-backed reads, neither of which reaches the affected checks. The fix negates each K_SYSCALL_MEMORY() result and additionally validates the TXRX transmit buffer read-only, matching the SPI, I2C and I3C handlers.
Technical POC Analysis
CVE-2026-87041 is an inverted return-value check in rtiovrfysqe() in subsys/rtio/rtiosyscalls.c (subsys/rtio/rtiohandlers.c before v4.3.0).
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-safety flaw in Zephyr RTOS (CVE-2026-87041) lets a local user-mode thread bypass the kernel's buffer-permission checks and obtain arbitrary kernel write or kernel memory disclosure on RTIO-enabled devices. Only products built with CONFIG_USERSPACE and CONFIG_RTIO that grant user threads RTIO contexts and I/O device access are exposed, which concentrates risk on connected/edge hardware using Zephyr's user-mode and RTIO subsystems. Leadership should care because a compromised or malicious user-mode thread on such a device could gain supervisor-level memory access, undermining the isolation guarantees these products rely on.
Vendor-released patch: Zephyr 4.3.2 and 4.5.0
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
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-116745
NVD
CVE.org
EPSS
GitHub
Exploit-DB