Skip to main content
← Vulnerabilities

Inverted memory-permission check in the RTIO syscall verifier allows a user-mode thread to read and write arbitrary kernel memory

Only Zephyr builds with CONFIG_USERSPACE and CONFIG_RTIO both enabled are affected, and only for threads granted an RTIO context and rtio_iodev. Fixed in 4.3.2 and 4.5.0.

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

7.8HighCNA
Exploited
No known exploitation
Fix
Fixed in 4.3.2, 4.5.0
Who is exposed
Specific setups only

Do first: Check whether your setup matches what the bug needs. Zephyr built with CONFIG_USERSPACE and CONFIG_RTIO enabled The attacker thread must have been granted an RTIO context and an rtio_iodev object Affected release lines are 3.3.0 up to 4.3.2 and 4.4.0 up to 4.5.0

13Pcve.now Index 13 of 100 · methodology v3 · provisional
  • Exploitation?/40Exploitation: unknown (data gap). No CISA SSVC exploitation rating yet
  • Exposure5/25Specific setups only
  • Reach?/20Reach: unknown (data gap). No tracked technology or package matched
  • Severity7.8/10CVSS 7.8
  • No patch0/5No signal

What would change the score

  • Would score about 63 if added to CISA KEV
  • Would score about 58 if CISA's SSVC rates exploitation active
  • Would score about 23 if CISA's SSVC rates it automatable

CVE-2026-87041 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.8 (high) and affects zephyr; fixed in 4.3.2 and 4.5.0.

Published
Last modified
Published
Not listed in CISA KEV
0.11% · 1st percentile
13/100 · provisional
Specific setups only
Fix
Fixed in 4.3.2, 4.5.0
None on Exploit-DB, Metasploit or GitHub

Summary

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.

What to do

  • Check whether your setup matches what the bug needs.

    Zephyr built with CONFIG_USERSPACE and CONFIG_RTIO enabled The attacker thread must have been granted an RTIO context and an rtio_iodev object Affected release lines are 3.3.0 up to 4.3.2 and 4.4.0 up to 4.5.0
  • Upgrade to a fixed version: 4.3.2, 4.5.0.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • zephyr

    From 3.3.0 · fixed in 4.3.2; From 4.4.0 · fixed in 4.5.0

Evidence 2

  1. Advisory
  2. Patch

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

FAQ

Questions about CVE-2026-87041

Is CVE-2026-87041 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data

What does this mean?

The RTIO syscall verifier checks memory permissions backwards, which lets a user-mode thread read and write arbitrary kernel memory. This is a full escape from the user-mode isolation that CONFIG_USERSPACE is meant to enforce. An invalid pointer can also fault the kernel.Source: github.com

Which versions are affected by CVE-2026-87041?

zephyr: from 3.3.0 before 4.3.2; from 4.4.0 before 4.5.0.Source: cve.now feed data

Am I affected, and how do I check?

Zephyr 3.3.0 up to 4.3.2 and 4.4.0 up to 4.5.0 are in the affected ranges, but only in builds with both CONFIG_USERSPACE and CONFIG_RTIO enabled, and only for threads granted an RTIO context and an rtio_iodev object. To check a build, look at whether these two options are set in its Kconfig configuration and which Zephyr version it was built from.Source: github.com

How do I fix CVE-2026-87041?

Upgrade to Zephyr 4.3.2 or 4.5.0, which contain the fix. The sources provided do not list a workaround.Source: github.com