CVE-2026-87038
Last modified
CVE-2026-87038 is a high-severity vulnerability rated 7/10 on the CVSS scale. The user-mode verification handler for the i3c_transfer() system call, z_vrfy_i3c_transfer() in drivers/i3c/i3c_handlers.c, validated the caller-supplied struct i3c_device_desc in place instead of snapshotting it. It confirmed only that the descriptor was readable by the calling thread (K_SYSCALL_MEMORY_READ()), read target->bus once to check it with K_SYSCALL_OBJ(), and then passed the caller's live pointer down.
Description
The user-mode verification handler for the i3c_transfer() system call, z_vrfy_i3c_transfer() in drivers/i3c/i3c_handlers.c, validated the caller-supplied struct i3c_device_desc in place instead of snapshotting it. It confirmed only that the descriptor was readable by the calling thread (K_SYSCALL_MEMORY_READ()), read target->bus once to check it with K_SYSCALL_OBJ(), and then passed the caller's live pointer down. The implementation z_impl_i3c_transfer() re-reads target->bus from that user memory and dispatches through it as DEVICE_API_GET(i3c, target->bus)->i3c_xfers(...), so the bus that was validated is not necessarily the bus that is used. DEVICE_API_GET() performs no runtime type check outside CONFIG_DEVICE_API_ASSERT builds. On a build with CONFIG_USERSPACE and an I3C controller driver, a user thread that has been granted an I3C device object can exploit this with a second thread in the same memory domain: one thread calls i3c_transfer() while the other rewrites the bus field of the descriptor. The window between the check and the use spans the num_msgs validation, the message-array access check, a stack VLA allocation and a memcpy() of up to 32 struct i3c_msg, so the race is repeatable and can simply be retried until it lands. When the substitution succeeds, the kernel dereferences an attacker-chosen pointer as a struct device, loads a function pointer from the attacker-controlled api table and calls it in supervisor mode with attacker-influenced arguments. This yields kernel-mode code execution from an unprivileged user thread — a complete escape of the userspace memory-protection sandbox; lesser outcomes are an arbitrary two-level kernel read or a kernel fault. Builds without CONFIG_USERSPACE, or without an I3C driver, are unaffected. The fix copies the descriptor into a kernel-stack local with k_usermode_from_copy(), validates the bus in that copy, and dispatches on the copy, so the validated value is provably the value used.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 3.2.0, < 4.3.2; >= 4.4.0, < 4.5.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-87038?
How severe is CVE-2026-87038?
How do I fix CVE-2026-87038?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-87032Tanium addressed an information disclosure vulnerability in …4.3
- CVE-2026-87033Tanium addressed an improper access controls vulnerability i…5.4
- CVE-2026-87034Tanium addressed a SQL injection vulnerability in Comply.8.3
- CVE-2026-87035Tanium addressed an information disclosure vulnerability in …4.3
- CVE-2026-87036Tanium addressed an improper access controls vulnerability i…8.1
- CVE-2026-87037Tanium addressed an improper access controls vulnerability i…5.4
- CVE-2026-87039The user-mode syscall verifier z_vrfy_i2s_configure() in dri…7.8
- CVE-2026-8704Crypt::DSA versions through 1.19 for Perl use 2-args open, a…6.5
- CVE-2026-87040The nRF link-layer receive paths of the open-source Bluetoot…8.3
- CVE-2026-87041The RTIO submission-queue verifier rtio_vrfy_sqe() in subsys…7.8
- CVE-2026-87043The entropy-device random number generator in subsys/random/…4.8
- CVE-2026-87044The Mbed TLS crypto shim driver in drivers/crypto/crypto_mbe…6.5
Are you affected by CVE-2026-87038?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
