CVE-2026-104378
Out-of-bounds write in DesignWare I3C driver direct CCC handling via unbounded target count
AI summary AI generated
An unprivileged user-mode thread can overflow kernel memory via an unbounded target count in the Zephyr DesignWare I3C driver's direct CCC handling, enabling corruption, privilege escalation or denial of service.
Mitigation
- Upgrade zephyr to 4.5.0 or later.
Who should check
- Anyone running zephyrproject zephyr >= 4.1.0, < 4.3.2; >= 4.4.0, < 4.5.0
Vulnerability facts
- Affected
- zephyrproject zephyr >= 4.1.0, < 4.3.2; >= 4.4.0, < 4.5.0
- Fixed in
- zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 8.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.20% chance of exploitation in 30 days (percentile 10, 2026-12-01)
- CWE
- CWE-787
- Modified
Description
The Synopsys DesignWare I3C controller driver (drivers/i3c/i3c_dw.c) builds one command descriptor per target when issuing a direct CCC in dw_i3c_do_ccc(). It stored payload->targets.num_targets in xfer->ncmds and filled xfer->cmds[i] for every target without checking the count against the size of the cmds[] array (DW_I3C_MAX_CMD_BUF_SIZE, 16 entries). A direct CCC with more than 16 targets wrote command descriptors past the end of struct dw_i3c_xfer, which is embedded in the driver's per-instance struct dw_i3c_data. i3c_do_ccc() is a system call. On builds with CONFIG_USERSPACE, a user-mode thread that has been granted access to the I3C controller device can supply the payload. In released versions the z_vrfy_i3c_do_ccc() handler only checked that the caller's target array was accessible user memory and placed no upper bound on num_targets; the driver therefore performed the out-of-bounds writes in supervisor mode. The only requirement for each target is an address the controller already knows (the same address may be repeated), and the writes happen before any bus transaction. The overflowing descriptors contain values the caller largely controls (data length, defining byte, CCC id, a user buffer pointer and transfer lengths). They overwrite the rest of the driver data, including the device-index table, the deftgts_work work item and device pointer when both controller and target roles are enabled, and any memory that follows. This lets an unprivileged thread corrupt kernel memory, which can lead to privilege escalation or denial of service. In-kernel callers in the tree only issue single-target direct CCCs, so builds without CONFIG_USERSPACE are only exposed to their own application code.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| zephyrproject zephyr | >= 4.1.0, < 4.3.2; >= 4.4.0, < 4.5.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-104378. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-104378.md Affected: zephyrproject zephyr >= 4.1.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.
Technologies
References
Vendor advisories
FAQ
Is CVE-2026-104378 being exploited?
There is no confirmed exploitation: CVE-2026-104378 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-12-01).
How serious is CVE-2026-104378?
High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-104378?
zephyrproject zephyr >= 4.1.0, < 4.3.2; >= 4.4.0, < 4.5.0.
Is there a fix for CVE-2026-104378?
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-104378?
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.
More Zephyr RTOS vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 5.5 | CVE-2026-105418 NULL pointer dereference in SocketCAN getsockopt/setsockopt on an unbound socket | Zephyr RTOS | ||
| MEDIUM 5.4 | CVE-2026-125037 Zephyr Project Manager <= 3.3.210 - Authenticated (Subscriber+) Stored DOM-Based Cross-Site Scripting via 'attachments[0][attachment_id]' Parameter | WordPress+2 | ||
| MEDIUM 4.4 | CVE-2026-105417 Memory domain partition removal does not revoke user-thread access on ARMv8-R AArch64 MPU | Zephyr RTOS | ||
| MEDIUM 6.1 | CVE-2026-86086 Unvalidated userspace pointer dereference in zsock_getsockopt syscall verifier allows limited kernel memory disclosure and system halt | Zephyr RTOS | ||
| MEDIUM 4.2 | CVE-2026-105416 UART RX interrupt storm denial of service in ESP32 serial driver async API | Zephyr RTOS |