CVE-2026-26399 Details
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.
A stack-use-after-return vulnerability has been identified in the Arduino_Core_STM32 library, affecting versions prior to 1.7.0. The issue arises in the pwm_start() function, where a TIM_HandleTypeDef structure is allocated on the stack and its address is passed to HAL initialization routines. This address is then stored in a global timer handle registry. After the function returns, interrupt service routines may dereference this dangling pointer, leading to memory corruption.
Users can upgrade to Arduino_Core_STM32 version 1.7.0 or later, where this vulnerability has been fixed. The updated version is available through the Arduino library manager or can be downloaded from the Arduino_Core_STM32 GitHub releases page.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Acen28/CVE-2026-26399-Disclosure | [email protected] | |
| https://github.com/stm32duino/Arduino_Core_STM32/releases/tag/1.6.1 | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-562 | Return of Stack Variable Address | CISA-ADP |
Affected Products
No affected product data is available for this CVE.
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 22, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | CVE Modified | CISA-ADP |
| Apr 20, 2026 | New CVE Received | [email protected] |