CVE-2026-0648
High · 7.8CVSS
7.8
EPSS
0.1%
Published
Jan 27, 2026
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-15686 Adminer multi_query Incorrect Check of Function Return Value Remote Code Execution… CWE-253
- CVE-2026-59847 A flaw was found in libssh. CWE-253
- CVE-2026-5818 Incorrect check of function return value in Caliptra Core Runtime Firmware… CWE-253
- CVE-2026-46419 Yubico webauthn-server-core (aka java-webauthn-server) 2.8.0 before 2.8.2 incorrectly… CWE-253
- CVE-2026-43863 mutt before 2.3.2 has an infinite loop in data_object_to_stream in crypt-gpgme.c. CWE-253
- GHSA-88ch-q68x-36v7 uutils coreutils has an Incorrect Check of Function Return Value CWE-253
- GHSA-vp6q-mv9j-j428 uutils coreutils incorrectly handles exit codes when processing multiple files CWE-253
- CVE-2026-35340 A flaw in the ChownExecutor used by uutils coreutils chown and chgrp causes the utilities… CWE-253