CVE-2026-16511

Unvalidated user pointers in RTIO syscall verifiers allow a user-mode thread to write kernel memory

Published Nov 4, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
Two RTIO syscall verifiers, in subsys/rtio/rtio_syscalls.c (subsys/rtio/rtio_handlers.c before v4.3.0), did not validate user-supplied pointers before the kernel wrote through them.

z_vrfy_rtio_sqe_cancel() performed no validation at all. It passed the caller's struct rtio_sqe pointer straight to z_impl_rtio_sqe_cancel(), which converts it with CONTAINER_OF to a struct rtio_iodev_sqe, ORs RTIO_SQE_CANCELED (BIT(3)) into its 16-bit flags field in supervisor mode, then loads its next pointer and repeats until that pointer is NULL. The syscall takes no RTIO context argument, so it needs no object grant: any user-mode thread on a CONFIG_USERSPACE build can set that bit in a 16-bit word at an address of its choosing in kernel memory, and the kernel continues the write along whatever pointer chain it finds at the corresponding offset. Setting chosen bits in kernel data structures, such as object permission or thread state fields, can be used to escalate privilege from user mode.

z_vrfy_rtio_sqe_copy_in_get_handles() validated its RTIO context and the input SQE array, but only NULL-checked the handle out-parameter before writing a kernel SQE pointer through it, with no K_SYSCALL_MEMORY_WRITE check. A user thread that holds a granted RTIO context can therefore make the kernel store a pointer value at an arbitrary address.

The fixes validate the handle out-parameter as writable, bound the cancel handle to real submission-pool storage, and require permission on the RTIO context that owns the matching pool. Without that last check a bounded handle still let any user thread cancel submissions belonging to other contexts, silently aborting their I/O. Systems built without CONFIG_USERSPACE or without CONFIG_RTIO are unaffected.

Analysis

AI-generated

Technical impact

The vulnerability originates from the RTIO subsystem: two syscall verifiers that fail to enforce pointer validation before the kernel follows user-supplied pointers. The lack of a NULL check or K_SYSCALL_MEMORY_WRITE restriction causes any user‑mode thread that can invoke the affected syscalls to cause the kernel to write into a location of its choosing. By arranging the pointer chain to target internal kernel structures, an attacker can set permission bits or thread state flags, effectively elevating local privileges. The flaw is a classic untrusted write (CWE‑787) compounded by missing bounds checks (CWE‑862), enabling arbitrary kernel memory corruption.

Affected Systems

This flaw exists in the Zephyr RTOS code base, specifically in the RTIO handler files in versions before the hot‑fix commit. Systems that enable the RTIO kernel module and the CONFIG_USERSPACE option are susceptible; builds that disable user space or the RTIO subsystem are unaffected. The exact affected pre‑fix release is not specified, but any Zephyr release prior to the fix commit – covering versions around and before v4.3.0 – remains vulnerable.

Risk and Exploitability

The CVSS score of 8.8 indicates a high risk for privilege escalation. EPSS is not available, so current exploitation probability is unknown, but the flaw is listed as not in CISA KEV. An attacker who can run a user‑mode thread on a device with RTIO enabled can exploit the issue locally; the embedded nature of Zephyr suggests that devices with exposed configuration to user programs might be at higher risk. Once the kernel writes arbitrary data, the attacker can pivot to more damaging kernel modifications, so the operational impact can be catastrophic for affected embedded systems.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the Zephyr upstream patch that validates user‑supplied pointers and checks RTIO context permissions before writing, as available in the current stable branch.
  • Upgrade to a Zephyr release that includes the fix (e.g., 4.3.1 or later).
  • If an immediate upgrade is not possible, rebuild the kernel with CONFIG_RTIO disabled or with CONFIG_USERSPACE disabled to eliminate the vulnerable code paths.

Generated by OpenCVE AI on November 4, 2026 at 10:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Zephyrproject
Zephyrproject zephyr
Vendors & Products Zephyrproject
Zephyrproject zephyr
Type Values Removed Values Added
Description Two RTIO syscall verifiers, in subsys/rtio/rtio_syscalls.c (subsys/rtio/rtio_handlers.c before v4.3.0), did not validate user-supplied pointers before the kernel wrote through them. z_vrfy_rtio_sqe_cancel() performed no validation at all. It passed the caller's struct rtio_sqe pointer straight to z_impl_rtio_sqe_cancel(), which converts it with CONTAINER_OF to a struct rtio_iodev_sqe, ORs RTIO_SQE_CANCELED (BIT(3)) into its 16-bit flags field in supervisor mode, then loads its next pointer and repeats until that pointer is NULL. The syscall takes no RTIO context argument, so it needs no object grant: any user-mode thread on a CONFIG_USERSPACE build can set that bit in a 16-bit word at an address of its choosing in kernel memory, and the kernel continues the write along whatever pointer chain it finds at the corresponding offset. Setting chosen bits in kernel data structures, such as object permission or thread state fields, can be used to escalate privilege from user mode. z_vrfy_rtio_sqe_copy_in_get_handles() validated its RTIO context and the input SQE array, but only NULL-checked the handle out-parameter before writing a kernel SQE pointer through it, with no K_SYSCALL_MEMORY_WRITE check. A user thread that holds a granted RTIO context can therefore make the kernel store a pointer value at an arbitrary address. The fixes validate the handle out-parameter as writable, bound the cancel handle to real submission-pool storage, and require permission on the RTIO context that owns the matching pool. Without that last check a bounded handle still let any user thread cancel submissions belonging to other contexts, silently aborting their I/O. Systems built without CONFIG_USERSPACE or without CONFIG_RTIO are unaffected.
Title Unvalidated user pointers in RTIO syscall verifiers allow a user-mode thread to write kernel memory
Weaknesses CWE-787
CWE-822
CWE-862
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
zephyr
Published
Updated
Nov 9, 2026, 9:28 PM
Reserved
Jul 21, 2026, 9:42 PM
Status
Awaiting Analysis
Published
Nov 4, 2026, 6:17 AM
Modified
Nov 9, 2026, 10:18 PM