Skip to main content

Zephyr RTOS EUVDEUVD-2026-137836

| CVE-2026-105415 HIGH
Out-of-bounds Write (CWE-787)
2026-11-29 zephyr
7.0
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Run as unprivileged user thread with MCPWM access
  2. Delivery
    Call pwm_set_cycles with out-of-bounds channel_idx
  3. Exploit
    Driver indexes channel_config[] past array end
  4. Execution
    Write freq/duty into adjacent kernel RAM
  5. Impact
    Kernel crash or privilege escalation

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires a Zephyr build with CONFIG_USERSPACE enabled on an Espressif RISC-V SoC that has PMP (ESP32-C6, and ESP32-C5 in later code), AND an unprivileged user-mode thread that has already been granted access to the MCPWM device object. Given those, the thread invokes the pwm_set_cycles() syscall with an arbitrary channel_idx exceeding the channel_config[] bounds (6, or 8 when PWM_CAPTURE is enabled); neither z_vrfy_pwm_set_cycles() nor z_impl_pwm_set_cycles() validates the channel, so the index reaches the driver. Limiting factors: this is local-only (no network reach), CONFIG_USERSPACE is a non-default/opt-in configuration, the affected SoC family is specific, device access must be explicitly granted to the thread, and builds without CONFIG_USERSPACE are not security-affected because only trusted code can call the driver. Affected versions >= 4.4.0 and < 4.5.0; fixed in 4.5.0.

Impact

This is a genuine but narrowly-scoped memory-corruption issue, not a drive-by threat. The CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:N) correctly frames it as a local, privilege-requiring, high-complexity bug: an attacker must already be running code as an unprivileged user-mode thread on the device and must have been granted access to the MCPWM peripheral, and the whole attack surface only exists when CONFIG_USERSPACE is built on a specific Espressif RISC-V SoC with PMP (ESP32-C6, later also ESP32-C5). The C:H/I:H/A:H impact rests on the out-of-bounds write landing in a writable static (config) in kernel RAM, giving a partially controlled kernel write plus stray peripheral register writes - credible for a crash (DoS) and plausibly for privilege escalation, though escalation is characterized by the vendor as a possibility rather than demonstrated. No EPSS score was supplied and the CVE is not in CISA KEV; there is no public exploit identified at time of analysis - the two references are the fix commit and the GHSA advisory, not proof-of-concept code. The vuln.today priority of 'this_week' and the 'Available from vendor' patch align: treat as a this-week patch item for affected Zephyr/ESP32-C6 userspace builds, but it is a real-but-conditional issue rather than an internet-facing emergency. No signals conflict; the main caveat is that privilege escalation is asserted as potential, not confirmed.

Exploit ScenarioDerived

On an ESP32-C6 running a Zephyr 4.4.x image built with CONFIG_USERSPACE, a low-privilege user-mode thread that has legitimately been granted the MCPWM device calls pwm_set_cycles() with a channel index far beyond the 6/8-element channel_config[] array. The kernel-mode driver dereferences the out-of-bounds element and writes attacker-influenced freq/duty/inverted values into adjacent kernel RAM and into hardware registers addressed by garbage timer/operator/generator IDs, crashing the system and potentially corrupting kernel state toward privilege escalation. No public PoC is available; attacker complexity is high because the vulnerable userspace configuration and granted device access must both be present.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 29, 2026

An out-of-bounds write in Zephyr's Espressif MCPWM PWM driver (drivers/pwm/pwm_mc_esp32.c) lets an unprivileged user-mode thread with access to the MCPWM device pass an arbitrary channel index to the pwm_set_cycles() syscall, corrupting writable kernel RAM and stray MCPWM registers. Only Zephyr 4.4.0 through 4.4.x builds with CONFIG_USERSPACE enabled on Espressif RISC-V SoCs with PMP (ESP32-C6, and ESP32-C5 in later code) are security-affected; builds without CONFIG_USERSPACE are not. The issue is fixed in Zephyr 4.5.0; no public exploit code was identified at time of analysis, and exploitation is local-only with high attack complexity.

RemediationAI

Upgrade to Zephyr 4.5.0, which contains the bounds check added by commit 4e42cd021b1b41e4d80cf56839432adb8360fe88 (main PR #115158, backport PR #122044 merged to v4.4-branch); release lines that have not taken the backport remain affected per GHSA-wjc6-4j74-9wrh. If upgrading is not immediately possible, the practical trade-offs are: do not grant MCPWM device access to unprivileged user-mode threads, which removes the attack path at the cost of keeping PWM control in supervisor mode; or disable CONFIG_USERSPACE for affected ESP32-C6/ESP32-C5 builds, which forfeits memory protection isolation for all user threads; or restrict PWM handling to supervisor-mode threads. Builds without CONFIG_USERSPACE need no action for this issue.

Affected VersionsENISA

Zephyr 4.4.0 <4.5.0

Affected Packages

euvd zephyr fix: 4.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The driver keeps a static, non-const struct mcpwm_esp32_config in kernel RAM containing channel_config[MCPWM_CHANNEL_NUM] - six entries, or eight when PWM_CAPTURE is enabled - where each element stores freq, duty, inverted plus timer_id, operator_id and generator_id. In mcpwm_esp32_set_cycles() the pre-fix code took the address of channel_config[channel_idx] without validating channel_idx; the accompanying if (!channel) test could never fail because the address of an array element is never NULL. The out-of-bounds element was then written with attacker-influenced freq, duty and inverted values, and its timer_id/operator_id/generator_id fields were used to index MCPWM memory-mapped registers, producing stray peripheral writes. pwm_set_cycles() is declared __syscall, but neither z_vrfy_pwm_set_cycles() in drivers/pwm/pwm_handlers.c nor z_impl_pwm_set_cycles() validated the channel - the implementation only checks pulse versus period - so a user-mode thread holding a granted device object could reach the kernel-mode driver with an arbitrary index. The flaw is CWE-787 (out-of-bounds write); it traces to commit 80fbef96772 (driver introduction, v3.2.0) and became security-relevant once userspace support landed for ESP32-C6 (b75d67fb1f5/52c9bd85caa, v4.4.0), since RISCV_PMP selects ARCH_HAS_USERSPACE. The upstream fix adds a channel_idx >= OPERATORS_PER_GROUP * GENERATORS_PER_OPERATOR bounds check before indexing, plus a period_cycles == 0 check and corrected prescale arithmetic.

Know when Zephyr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (zephyr) PRIMARY 7.0 HIGH
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local syscall from an unprivileged user thread (AV:L, PR:L); AC:H because the non-default USERSPACE build, specific SoC and granted device access must all be present; kernel write/crash with privilege-escalation potential gives C/I/A:H.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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().

Technical POC Analysis

CWE-787 (out-of-bounds write) in drivers/pwm/pwmmcesp32.c, function mcpwmesp32setcycles().

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-105415 is a high-severity memory corruption flaw in Zephyr's Espressif MCPWM PWM driver that affects products using Zephyr 4.4.x with userspace enabled on ESP32-C6 and ESP32-C5 chips. A local unprivileged thread could corrupt kernel memory, potentially leading to crashes or arbitrary code execution, but exploitation requires local access and high complexity, and no public exploit code exists. Leadership should prioritize patching products built on these configurations to prevent potential operational disruptions and security breaches.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 96% exploitable
Prevalence
Low
embedded RTOS; vulnerable path limited to ESP32-C6 userspace builds
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2026-1678 CRITICAL POC
9.8 Mar 05

An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy