SecurityContext

CVE-2026-87041: Zephyr RTIO - Memory Validation Bypass

  • Cve: CVE-2026-87041
  • Name: Zephyr RTIO - Memory Validation Bypass
  • Description: 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.
  • Impact: User-mode threads can achieve arbitrary kernel memory read/write or cause kernel oops, escaping the userspace isolation boundary.
  • Remediation: Update to Zephyr v4.3.0 or later.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: data_tampering, denial_of_service, file_system_read, file_system_write, information_disclosure
  • Requirement type: logged_in
  • Requirements: Attacker needs a user-mode thread with an RTIO context and rtio_iodev object granted via rtio_access_grant().
  • Labels source: securitycontext
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00114
  • Epss percentile: 0.0152
  • Assignee: [email protected]
  • Published at: 2026-11-04T06:17:06Z
  • Age in days: 20
  • Modified at: 2026-11-09T22:18:56Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-87041
  • Nvd status: awaiting_analysis
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-125Out-of-bounds Read

References

UrlSourceTags
https://github.com/zephyrproject-rtos/zephyr/commit/454a848006595ce2d77fc2c9e458b0c557f5e4afnvd
https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-mvxr-jx9h-jxh4nvd

Products

ProductAffectedPlatform boundSourcesUrl
zephyrproject:zephyr>= 4.4.0, < 4.5.0; >= 3.3.0, < 4.3.2nocna_alias/v1/products/zephyrproject/zephyr

Projects

RepositoryLink kindsIndexedUrl
zephyrproject-rtos/zephyrcommit, fix, security_advisoryyes/v1/repositories/zephyrproject-rtos/zephyr

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts