CVE-2026-16513: memory-safety in zephyrproject zephyr
CVE-2026-16513 is a memory-safety vulnerability in the Zephyr RTOS affecting the userspace verifier function z_vrfy_rtio_sqe_copy_in_get_handles(). It allows a user-mode thread with access to an RTIO kernel object to perform a write-what-where operation by storing a kernel address through an unchecked pointer, potentially corrupting kernel memory and escalating privileges. This affects builds with CONFIG_USERSPACE and CONFIG_RTIO enabled. The vulnerability is fixed by adding a memory write check on the handle parameter to ensure it lies in writable user memory.
AI Analysis
Technical Summary
The vulnerability exists in the userspace verifier function z_vrfy_rtio_sqe_copy_in_get_handles() in Zephyr's RTIO subsystem. The function validates the RTIO object handle and input array but does not validate the handle out-parameter before writing to it. This allows a user-mode thread with a struct rtio kernel object to supply an arbitrary address for the handle parameter, resulting in a write-what-where primitive that writes a kernel pointer to an attacker-chosen kernel address. This can corrupt kernel function pointers, thread structures, or memory-domain partition tables, enabling privilege escalation from user mode to kernel mode. The issue affects Zephyr versions >=3.4.0 and <4.4.2 with CONFIG_USERSPACE and CONFIG_RTIO enabled. The fix adds a K_SYSCALL_MEMORY_WRITE check on the handle parameter to ensure it is writable by the calling thread, preventing the exploit.
Potential Impact
This vulnerability allows a user-mode thread with access to an RTIO kernel object to perform arbitrary kernel memory writes, potentially corrupting critical kernel data structures and enabling privilege escalation to kernel mode. It compromises the isolation boundary enforced by CONFIG_USERSPACE, leading to a high impact on confidentiality, integrity, and availability of the system. At minimum, it can cause reliable kernel crashes.
Mitigation Recommendations
A fix is available that adds a K_SYSCALL_MEMORY_WRITE check on the handle parameter before the write operation. This ensures the destination address lies within the calling thread's writable memory domain, terminating the thread if not. Users should upgrade to Zephyr version 4.4.2 or later where this fix is included. Until then, avoid enabling both CONFIG_USERSPACE and CONFIG_RTIO simultaneously if possible.
CVE-2026-16513: memory-safety in zephyrproject zephyr
Description
CVE-2026-16513 is a memory-safety vulnerability in the Zephyr RTOS affecting the userspace verifier function z_vrfy_rtio_sqe_copy_in_get_handles(). It allows a user-mode thread with access to an RTIO kernel object to perform a write-what-where operation by storing a kernel address through an unchecked pointer, potentially corrupting kernel memory and escalating privileges. This affects builds with CONFIG_USERSPACE and CONFIG_RTIO enabled. The vulnerability is fixed by adding a memory write check on the handle parameter to ensure it lies in writable user memory.
CVSS v3.1
Score 7.8high
Affected software
zephyrproject
zephyr
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the userspace verifier function z_vrfy_rtio_sqe_copy_in_get_handles() in Zephyr's RTIO subsystem. The function validates the RTIO object handle and input array but does not validate the handle out-parameter before writing to it. This allows a user-mode thread with a struct rtio kernel object to supply an arbitrary address for the handle parameter, resulting in a write-what-where primitive that writes a kernel pointer to an attacker-chosen kernel address. This can corrupt kernel function pointers, thread structures, or memory-domain partition tables, enabling privilege escalation from user mode to kernel mode. The issue affects Zephyr versions >=3.4.0 and <4.4.2 with CONFIG_USERSPACE and CONFIG_RTIO enabled. The fix adds a K_SYSCALL_MEMORY_WRITE check on the handle parameter to ensure it is writable by the calling thread, preventing the exploit.
Potential Impact
This vulnerability allows a user-mode thread with access to an RTIO kernel object to perform arbitrary kernel memory writes, potentially corrupting critical kernel data structures and enabling privilege escalation to kernel mode. It compromises the isolation boundary enforced by CONFIG_USERSPACE, leading to a high impact on confidentiality, integrity, and availability of the system. At minimum, it can cause reliable kernel crashes.
Mitigation Recommendations
A fix is available that adds a K_SYSCALL_MEMORY_WRITE check on the handle parameter before the write operation. This ensures the destination address lies within the calling thread's writable memory domain, terminating the thread if not. Users should upgrade to Zephyr version 4.4.2 or later where this fix is included. Until then, avoid enabling both CONFIG_USERSPACE and CONFIG_RTIO simultaneously if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-07-21T21:42:58.503Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6abacf14f7a7c541062b9a53
Added to database: 09/28/2026, 20:33:24 UTC
Last enriched: 09/28/2026, 20:47:48 UTC
Last updated: 09/28/2026, 20:47:48 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.