{"id":"CVE-2026-105415","aliases":[],"cve":{"records":[{"id":"CVE-2026-105415","source":"zephyr","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-10-05T11:28:41.799Z","published":"2026-11-29T20:56:53.074Z","modified":"2026-11-29T20:56:53.074Z"}],"publishers":[{"name":"zephyr","role":"CNA","organizationId":"e2e69745-5e70-4e92-8431-deb5529a81ad","modified":"2026-11-29T20:56:53.074Z"}],"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/4e42cd021b1b41e4d80cf56839432adb8360fe88","tags":["patch"],"source":"zephyr"},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-wjc6-4j74-9wrh","tags":[],"source":"zephyr"}],"weaknesses":[{"id":"CWE-787","description":"bounds","source":"zephyr"}],"applicability":[],"prioritization":[]},"title":"Out-of-bounds write via unchecked channel index in ESP32 MCPWM PWM driver set_cycles syscall","titleSource":"zephyr","descriptionSource":"zephyr","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.\n\npwm_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.\n\nThe 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().","score":7,"severity":"high","published":"2026-11-29T20:56:53.074Z","modified":"2026-11-29T20:56:53.074Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"zephyrproject","name":"zephyr","platforms":[],"versions":[{"version":"4.4.0","status":"affected","lessThan":"4.5.0","versionType":"semver"}],"defaultStatus":"unaffected","cpes":[],"source":"zephyr","url":"https://www.cve.org/CVERecord?id=CVE-2026-105415"}],"remediation":[],"references":["https://github.com/zephyrproject-rtos/zephyr/commit/4e42cd021b1b41e4d80cf56839432adb8360fe88","https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-wjc6-4j74-9wrh"],"sources":[{"name":"CVE","id":"CVE-2026-105415","modified":"2026-11-29T20:56:53.074Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-105415"}],"assessments":[{"source":"zephyr","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7}],"sourceAffected":[],"observedAt":"2026-11-29T21:05:49.958Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T22:30:32.898Z"},"coverage":[{"source":"NVD","status":"no-result","checkedAt":"2026-11-29T21:10:32.899Z","attemptedAt":"2026-11-29T21:10:32.899Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-29T21:10:32.913Z","attemptedAt":"2026-11-29T21:10:32.913Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-29T21:10:33.363Z","attemptedAt":"2026-11-29T21:10:33.363Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-29T21:10:32.940Z","attemptedAt":"2026-11-29T21:10:32.940Z"}],"evidence":[],"aiSummary":{"text":"Zephyr versions before 4.5.0 have a weakness in the ESP32 MCPWM PWM driver, allowing an unprivileged user-mode thread to cause a kernel memory write via an unchecked channel index. This can crash the system and may be leveraged for privilege escalation. The issue requires access to the MCPWM device.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-29T21:06:14.560Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-105415"}]}}