CVE-2021-26706

An issue was discovered in lib_mem.c in Micrium uC/OS uC/LIB 1.38.x and 1.39.00

published January 24, 2022

CVSS
—
EPSS
2%
Percentile
80.0
In the wild
Unconfirmed
What it is

⚠️ A sneaky integer overflow lurks in Micrium's memory allocation functions! 😱 When sizes exceed the address space, the memory pool created could be far smaller than it should be. Think of it like a restaurant trying to serve meals to more tables than it has space for. When the kitchen miscalculates the size of the dining area, the result could leave diners hungry and dissatisfied. An attacker could exploit this integer overflow to create a memory pool that doesn't meet their needs, leading to unexpected behavior or vulnerabilities. This could result in crashes or data corruption, making it a frustrating experience for developers and users alike.

Put simply

Think of it like a restaurant trying to serve meals to more tables than it has space for. When the kitchen miscalculates the size of the dining area, the result could leave diners hungry and dissatisfied. This vulnerability occurs in Micrium uC/OS uC/LIB versions 1.38.x and 1.39.00, where functions like Mem_PoolCreate and Mem_DynPoolCreate fail to validate the sizes of memory pools accurately, potentially leading to under-allocated memory due to integer overflow during multiplication operations.

What to do

An attacker could exploit this integer overflow to create a memory pool that doesn't meet their needs, leading to unexpected behavior or vulnerabilities. This could result in crashes or data corruption, making it a frustrating experience for developers and users alike. To mitigate this issue, developers should patch their systems to the latest version of Micrium uC/OS uC/LIB that resolves this overflow problem. It's also crucial to audit all existing memory allocation calls to ensure they handle size parameters safely. You've got this! With the right patching and auditing, you'll have your system secured in no time. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01939 · 80.0th percentile
Published
2022-01-24T00:19Z
EPSS history
Timeline
  • 24 JAN 00:19Z
    An issue was discovered in lib_mem.c in Micrium uC/OS uC/LIB 1.38.x and 1.39.00
    cvelistv5