CVE-2021-26706

CRITICALCVSS 9.8/10EPSS 1.94%

Last modified

CVE-2021-26706 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 1.94% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
9.8/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
1.94%

77.5th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
MicriumUc\/Lib1.38.00
MicriumUc\/Lib1.38.01
MicriumUc\/Lib1.38.02
MicriumUc\/Lib1.38.03
MicriumUc\/Lib1.38.04
MicriumUc\/Lib1.38.05
MicriumUc\/Lib1.39.00

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-26706?
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.
How severe is CVE-2021-26706?
CVE-2021-26706 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 1.94% probability of exploitation in the next 30 days.
How do I fix CVE-2021-26706?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-26706?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST