CVE-2026-0648CWE-253

The vulnerability stems from an incorrect error-checking logic in the CreateCounter() function (in threadx/utility/rtos_compatibility_layers/OSEK/tx_osek.c)…

High · published January 27, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
1.8
In the wild
Unconfirmed
What it is

🚨 A simple logic error in the CreateCounter() function could lead to a wild pointer situation, opening the door to significant risks! 🔥 Think of it like a restaurant running out of an essential ingredient but the chef mistakenly thinks they're still stocked up — they just keep serving meals until chaos ensues in the kitchen! If an attacker keeps depleting the counter pool, they could trigger HardFaults or cause silent memory corruption, leading to a denial-of-service attack. This could crash your services or allow unauthorized access to memory, causing a major headache!

Put simply

Think of it like a restaurant running out of an essential ingredient but the chef mistakenly thinks they're still stocked up — they just keep serving meals until chaos ensues in the kitchen! The vulnerability arises from a logic flaw in how the CreateCounter() function checks the return value of osek_get_counter(). Instead of checking for error codes correctly, it casts the failure code to a pointer, leading to illegal memory writes.

What to do

If an attacker keeps depleting the counter pool, they could trigger HardFaults or cause silent memory corruption, leading to a denial-of-service attack. This could crash your services or allow unauthorized access to memory, causing a major headache! To mitigate this, review and patch the CreateCounter() function to correctly handle the error codes returned by osek_get_counter(). Make sure your environment is updated to the latest version, and conduct thorough testing to catch any edge cases. You've got this! By addressing this vulnerability, you're one step closer to securing your application! 🛡️

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00122 · 1.8th percentile
Weakness
CWE-253 · Incorrect Check of Function Return Value
Published
2026-01-27T15:40Z
EPSS history
Timeline
  • 27 JAN 15:40Z
    The vulnerability stems from an incorrect error-checking logic in the CreateCounter() function (in threadx/utility/rtos_compatibility_layers/OSEK/tx_osek.c)…
    cvelistv5