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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 3, 2026-11-28)
- **CWE:** CWE-125, CWE-787, CWE-822
- **Published:** 2026-11-04T06:09:07.368Z
- **Modified:** 2026-11-09T22:18:56.253Z

## Who should check

- Anyone running zephyrproject zephyr \>= 3.3.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0

## 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.

## Affected and fixed versions

- zephyrproject zephyr: \>= 3.3.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0 (cvelist)

## Mitigation

- Upgrade zephyr to 4.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-87041. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-87041.md
Affected: zephyrproject zephyr >= 3.3.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-87041 being exploited?

There is no confirmed exploitation: CVE-2026-87041 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-87041?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-87041?

zephyrproject zephyr \>= 3.3.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0.

### Is there a fix for CVE-2026-87041?

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

### How do I check if I'm affected by CVE-2026-87041?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-mvxr-jx9h-jxh4>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/454a848006595ce2d77fc2c9e458b0c557f5e4af>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-87041>

HTML: <https://flawdb.com/CVE-2026-87041> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-87041>
