Stack-Use-After-Return Vulnerability in Arduino_Core_STM32 Library
CVE-2026-26399
5.3MEDIUM
What is CVE-2026-26399?
A vulnerability exists in the Arduino_Core_STM32 library, where the pwm_start() function allocates a TIM_HandleTypeDef structure on the stack. This structure's address is passed to HAL initialization routines, subsequently stored in a global timer handle registry. Upon return from the function, the stack memory can be dereferenced by interrupt service routines, leading to potential memory corruption. Updating to version 1.7.0 or later is recommended to mitigate this issue.
