CVE-2026-105415
7.0HighPublished Nov 29, 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Local
- Complexity
- High
- Privileges
- Low
- User action
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-787
What an attacker gets
Local unprivileged users can trigger a kernel memory write and potential privilege escalation. This requires the device to have CONFIG_USERSPACE enabled and the user to have access to the MCPWM device.
Root cause
The mcpwm_esp32_set_cycles function lacks bounds checking on the user-supplied channel index, allowing out-of-bounds writes to kernel memory.
Affected versions
Zephyr RTOS versions prior to the fix on ESP32-C6 and ESP32-C5 SoCs with CONFIG_USERSPACE enabled.
CVSS v3.1 · CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Fix & remediation
Update to the latest Zephyr RTOS release containing the fix for GHSA-wjc6-4j74-9wrh. If unable to patch, disable CONFIG_USERSPACE or restrict access to the MCPWM device.
AI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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().
References
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1304778.8HighLocal unprivileged users can gain full kernel-mode code execution and bypass memory isolation. This requires the ability to create threads and trigger syscalls in an environment with userspace support enabled.
- CVE-2026-1043767.7HighLocal attackers can corrupt kernel memory and escape userspace isolation to gain supervisor-mode privileges. This requires the Zephyr kernel to be built with CONFIG_OBJ_CORE, CONFIG_USERSPACE, and CONFIG_DYNAMIC_OBJECTS enabled.
- CVE-2026-1043788.8HighLocal attackers can escalate privileges or cause a kernel panic by triggering a buffer overflow in the I3C controller driver. This requires the attacker to have access to the I3C controller device node.
- CVE-2026-1029577.7HighLocal unprivileged users can trigger kernel memory corruption and potentially escalate privileges. This occurs when a user-mode thread calls pwm_capture_cycles with a K_NO_WAIT timeout on a system with CONFIG_USERSPACE and CONFIG_PWM_CAPTURE enabled.
- CVE-2026-958267.5HighAn adjacent attacker can cause kernel memory corruption and potential code execution. They need to be on the same local network to send a malicious Router Advertisement to trigger the buffer overflow.
- CVE-2026-1400418.8HighLocal attackers can execute arbitrary OS commands with elevated privileges. This requires local access to the device to manipulate the mac argument in the protocol.csp endpoint.