Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-26399
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 03:05 UTC · Revision 1
Source evidence
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.
osv:CVE-2026-26399
Complete source record
{
"id": "8af5574df6750619d5cab5bbd9555a0ca84f3af28a2d5b27337419a3de10a318",
"url": "https://osv.dev/vulnerability/CVE-2026-26399",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2026-26399",
"summary": "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.",
"evidence": "osv:CVE-2026-26399",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-26399",
"aliases": [
"CVE-2026-26399"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/stm32duino/arduino_core_stm32",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "5e43e63e80519c971217285718539ef3b6189a14"
},
{
"fixed": "e6a56b3dec4ac1b715ca5eb94f0b51678be9cc60"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.7.0"
}
],
"source": "DESCRIPTION"
},
{
"range": [
{
"fixed": "e6a56b3dec4ac1b715ca5eb94f0b51678be9cc60"
}
],
"source": "REFERENCES_TAG",
"original_tag": "1.6.1"
}
]
}
}
],
"versions": [
"1.6.0",
"1.5.0",
"1.4.0",
"1.3.0",
"1.2.0",
"2018.1.18",
"1.1.1",
"2017.11.24",
"1.1.0",
"2017.9.22",
"1.0.1",
"2017.8.31",
"1.0.0",
"STM32-2017.8.4",
"0.2.1",
"STM32-2017.7.13",
"0.2.0",
"STM32-2017.6.2",
"0.1.1",
"STM32-2017.5.12",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-26399.json"
}
}
],
"modified": "2026-10-28T02:30:32.797919394Z",
"provider": "osv",
"references": [
"https://github.com/stm32duino/Arduino_Core_STM32/releases/tag/1.6.1",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26399.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-26399",
"https://github.com/Acen28/CVE-2026-26399-Disclosure"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26399.json"
}
},
"related_cves": [
{
"value": "CVE-2026-26399",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 499898,
"published_at": "2026-04-20T00:00:00+00:00"
}