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

DevFeed: [CVE-2026-16511 - Unvalidated user pointers in RTIO syscall verifiers allow a user-mode thread to write kernel memory](<https://devfeed.tech/articles/cve-2026-16511-unvalidated-user-pointers-in-rtio-syscall-verifiers-allow-a-user-mode-thread-to-write-kernel-memory-116063.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-16511>)

Author: cvefeed.io

Published: 2026-11-04T06:17:04Z

Content type: article

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [Kernel](<https://devfeed.tech/topics/kernel.md>)

Tags: [cve-2026-16511](<https://devfeed.tech/tags/cve-2026-16511.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [memory](<https://devfeed.tech/tags/memory.md>), [permission](<https://devfeed.tech/tags/permission.md>), [pointers](<https://devfeed.tech/tags/pointers.md>), [syscall](<https://devfeed.tech/tags/syscall.md>), [thread](<https://devfeed.tech/tags/thread.md>), [user](<https://devfeed.tech/tags/user.md>), [write](<https://devfeed.tech/tags/write.md>), [zephyr](<https://devfeed.tech/tags/zephyr.md>), [zephyrproject](<https://devfeed.tech/tags/zephyrproject.md>)

## AI overview

On Zephyr builds with CONFIG_USERSPACE and CONFIG_RTIO, two RTIO syscall verifiers allowed user-mode threads to make the kernel write to unchecked addresses. The cancel verifier accepted an SQE pointer without validation and followed a pointer chain while setting a cancellation bit, enabling writes into kernel memory and potential privilege escalation. The copy-in handle verifier checked the context and input array but only NULL-checked its output pointer, allowing a granted caller to make the kernel store a pointer at an arbitrary address. The fixes validate the output as writable, constrain cancel handles to submission-pool storage, and require permission for the context owning that pool; the permission check also prevents cancellation of other contexts' I/O. Builds without either configuration option are unaffected.

## Source excerpt

CVE ID :CVE-2026-16511 Published : Nov. 4, 2026, 6:17 a.m. | 3 hours, 54 minutes ago 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. Severity: 8.8 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...