CVE-2026-105415 - Out-of-bounds write via unchecked channel index in ESP32 MCPWM PWM driver set_cycles syscall

Vulnerability · Reported by NVD · · CWE-787

Severity
High Risk score 70/100
CVSS
7.0 v3.1 · from NVD
Exploit chance (EPSS)
– Not available yet
Known exploited
No Not in CISA KEV

Summary

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 p

How this vulnerability can be exploited

This is a out-of-bounds write flaw (CWE-787). An attacker can exploit this vulnerability with local access to the system, with a low-privileged account, and without any action from a user. Attack complexity is high, meaning specific conditions must exist first. If successful, the attacker could read sensitive data, modify data or code and crash or disrupt the service.

Is it being exploited?

There is no public evidence of active exploitation yet. Monitor for exploit releases, especially if the product is internet-facing.

Patch priority and what to do

Schedule patching in your next maintenance window, and sooner for internet-facing systems. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Review logs for signs of exploitation since the publication date.

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

See what each part means in the official CVSS calculator ↗

Tags

CVE-2026-105415, Linux

Sources & references

How this data is collected: methodology & sources.

Run this software? Get free alerts for new vulnerabilities →

Need to block attackers? Free hourly IOC blocklists (IPs, domains, URLs, hashes) →

Open the live threat dashboard →

Subscribe via RSS.