PT-2026-161685

CVE-2026-105415

·

Published

2026-11-29

·

Updated

2026-11-29

Description by

CVSS 3.1
7.0
High
MetricsAV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
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().
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Weakness enumeration
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾