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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| micrium uc/lib | 1.38.00, 1.38.01, 1.38.02, 1.38.03, 1.38.04, 1.38.05, 1.39.00 | NVD |
All scores
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV: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
| https://docs.silabs.com/micrium/latest/micrium-common/ | vendor-advisory | |
| https://micrium.atlassian.net/wiki/spaces/libdoc138/ | third-party-advisory | |
| https://www.cisa.gov/uscert/ics/advisories/icsa-21-119-04 | third-party-advisory, us-government-resource | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-26706 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-26706 changed 2026-06-17 | Public domain |