CVE-2021-26706
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
2.06% (higher than 81% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

Description

An issue was discovered in lib_mem.c in Micrium uC/OS uC/LIB 1.38.x and 1.39.00. The following memory allocation functions do not check for integer overflow when allocating a pool whose size exceeds the address space: Mem_PoolCreate, Mem_DynPoolCreate, and Mem_DynPoolCreateHW. Because these functions use multiplication to calculate the pool sizes, the operation may cause an integer overflow if the arguments are large enough. The resulting memory pool will be smaller than expected and may be exploited by an attacker.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
micrium uc/lib1.38.00, 1.38.01, 1.38.02, 1.38.03, 1.38.04, 1.38.05, 1.39.00NVD

All scores

NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

An issue was discovered in lib_mem.c in Micrium uC/OS uC/LIB 1.38.x and 1.39.00. The following memory allocation functions do not check for integer overflow when allocating a pool whose size exceeds the address space: Mem_PoolCreate, Mem_DynPoolCreate, and Mem_DynPoolCreateHW. Because these functions use multiplication to calculate the pool sizes, the operation may cause an integer overflow if the arguments are large enough. The resulting memory pool will be smaller than expected and may be exploited by an attacker.

NVD (es)

Se ha detectado un problema en el archivo lib_mem.c en Micrium uC/OS uC/LIB versiones 1.38.x y 1.39.00. Las siguientes funciones de asignación de memoria no comprueban el desbordamiento de enteros cuando es asignado un pool cuyo tamaño excede el espacio de direcciones: Mem_PoolCreate, Mem_DynPoolCreate y Mem_DynPoolCreateHW. Dado que estas funciones usan la multiplicación para calcular el tamaño de los pools, la operación puede causar un desbordamiento de enteros si los argumentos son lo suficientemente grandes. El pool de memoria resultante será más pequeño de lo esperado y puede ser explotado por un atacante

References

Sources

SourceRecordLicence
CVE ListCVE-2021-26706 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-26706 changed 2026-06-17Public domain