CVE-2026-105415
Out-of-bounds write via unchecked channel index in ESP32 MCPWM PWM driver set_cycles syscall
AI summary AI generated
An unprivileged user thread can pass an out-of-range channel index to the ESP32 MCPWM PWM driver's set_cycles syscall, causing out-of-bounds kernel memory writes in Zephyr RTOS.
Mitigation
- Upgrade zephyr to 4.5.0 or later.
Who should check
- Anyone running zephyrproject zephyr >= 4.4.0, < 4.5.0
Vulnerability facts
- Affected
- zephyrproject zephyr >= 4.4.0, < 4.5.0
- Fixed in
- 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
- 7.0 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.18% chance of exploitation in 30 days (percentile 4, 2026-11-30)
- CWE
- CWE-787
- Modified
Description
The Espressif MCPWM PWM driver (drivers/pwm/pwm_mc_esp32.c) indexed its per-channel configuration array config->channel_config[] with the caller-supplied channel_idx in mcpwm_esp32_set_cycles() without any bounds check; the existing if (!channel) test can never fail. The driver then wrote channel->freq, channel->duty and channel->inverted through the out-of-bounds element and used out-of-bounds timer_id/operator_id/generator_id values to index MCPWM hardware registers. pwm_set_cycles() is a system call, and neither z_vrfy_pwm_set_cycles() nor z_impl_pwm_set_cycles() validates the channel. With CONFIG_USERSPACE enabled on an Espressif RISC-V SoC with PMP (ESP32-C6, and ESP32-C5 in later code), an unprivileged user-mode thread that has been granted access to the MCPWM device can pass an arbitrary channel number and cause the kernel-mode driver to write outside the array. The configuration object is a writable static in kernel RAM, so this gives a user thread a partially controlled kernel memory write (and stray peripheral register writes), which can crash the system and may be leveraged for privilege escalation. Builds without CONFIG_USERSPACE are not affected in a security sense, since only trusted code can call the driver. The fix adds a channel bounds check to mcpwm_esp32_set_cycles().
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| zephyrproject zephyr | >= 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-105415. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-105415.md Affected: zephyrproject zephyr >= 4.4.0, < 4.5.0 Fixed in: 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-105415 being exploited?
There is no confirmed exploitation: CVE-2026-105415 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-30).
How serious is CVE-2026-105415?
High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-105415?
zephyrproject zephyr >= 4.4.0, < 4.5.0.
Is there a fix for CVE-2026-105415?
Yes. Fixed in zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.
How do I check if I'm affected by CVE-2026-105415?
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 4.6 | CVE-2026-104931 NULL pointer dereference in USB device_next class handlers on zero-length control OUT requests | Zephyr RTOS | ||
| MEDIUM 5.9 | CVE-2026-102961 Race between IP fragment reassembly and its timeout handler causes use-after-free in the Zephyr IPv6, IPv4 and 6LoWPAN stacks | Zephyr RTOS | EPSS 39% | |
| MEDIUM 5.9 | CVE-2026-104930 STM32 Ethernet driver (HAL API v2) RX path stalls permanently after a dropped frame | Zephyr RTOS | EPSS 30% | |
| MEDIUM 5.9 | CVE-2026-104379 Use-after-free of transmitted IPv6 packet in Zephyr net_if_try_send_data | Zephyr RTOS | EPSS 14% | |
| MEDIUM 6.5 | CVE-2026-104929 Remote Bluetooth RX livelock in STM32WBA HCI driver when receive errors are reported as busy | Zephyr RTOS | EPSS 16% |