Out-of-bounds write in Eclipse ThreadX
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-787 and the CVSS impact.
Summary
The vulnerability stems from an incorrect error-checking logic in the CreateCounter() function (in threadx/utility/rtos_compatibility_layers/OSEK/tx_osek.c) when handling the return value of osek_get_counter(). Specifically, the current code checks if cntr_id equals 0u to determine failure, but @osek_get_counter() actually returns E_OS_SYS_STACK (defined as 12U) when it fails. This mismatch causes the error branch to never execute even when the counter pool is exhausted. As a result, when the counter pool is depleted, the code proceeds to cast the error code (12U) to a pointer (OSEK_COUNTER *), creating a wild pointer. Subsequent writes to members of this pointer lead to writes to illegal memory addresses (e.g., 0x0000000C), which can trigger immediate HardFaults or silent memory corruption. This vulnerability poses significant risks, including potential denial-of-service attacks (via repeated calls to exhaust the counter pool) and unauthorized memory access.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Eclipse Foundation | Eclipse ThreadX | 6.1.7 – 6.4.3 | — | No fix listed | CNA |
- Eclipse ThreadX VendorEclipse Foundation Affected 6.1.7 – 6.4.3 Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:eclipse:threadx:*:*:*:*:*:*:*:* | 6.1.7 to before 6.4.5 | Vulnerable | Eclipse Foundation |
- cpe:2.3:a:eclipse:threadx:*:*:*:*:*:*:*:* Versions 6.1.7 to before 6.4.5 Vulnerable ·Eclipse Foundation
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-0648
References
More Eclipse Foundation Threadx vulnerabilities
- TI-2024-02054 Heap-based buffer overflow in Eclipse Foundation ThreadX CVSS 3.1HIGH 7.8
- TI-2024-02056 Missing array size check in _Mtxinit() in the Xtensa port CVSS 3.1HIGH 7.8
- TI-2025-34770 Improper Parameter Check in ThreadX Syscall Implementation CVSS 4.0HIGH 7.2
- TI-2025-34769 Missing check for thread priority CVSS 4.0MEDIUM 5.7
- TI-2025-34768 Incomplete validation of kernel object pointers in system calls CVSS 4.0MEDIUM 5.7
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences