CVE-2026-26399
Received
Received - Intake
Stack Use-After-Return in Arduino_Core_STM32 pwm_start() Causes Memory Corruption
Publication date: 2026-04-20
Last updated on: 2026-04-22
Assigner: MITRE
Description
Description
A stack-use-after-return issue exists in the Arduino_Core_STM32 library prior to version 1.7.0. The pwm_start() function allocates a TIM_HandleTypeDef structure on the stack and passes its address to HAL initialization routines, where it is stored in a global timer handle registry. After the function returns, interrupt service routines may dereference this dangling pointer, resulting in memory corruption.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| arduino | arduino_core_stm32 | to 1.7.0 (exc) |
| stm32duino | arduino_core_stm32 | to 1.7.0 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-825 | The product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid. |
| CWE-562 | A function returns the address of a stack variable, which will cause unintended program behavior, typically in the form of a crash. |