Vulnerability · Published Apr 30, 2021 · Assigned by mitre
CVE-2021-31870
Critical 9.8
In plain English
A critical-severity security flaw in the klibc package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)2.1%top 18.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
An issue was discovered in klibc before 2.0.9. Multiplication in the calloc() function may result in an integer overflow and a subsequent heap buffer overflow.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | klibc | 2.0.9-r0 | ALPINE-CVE-2021-31870 |
| Alpine:v3.21 | klibc | 2.0.9-r0 | ALPINE-CVE-2021-31870 |
| Alpine:v3.22 | klibc | 2.0.9-r0 | ALPINE-CVE-2021-31870 |
| Alpine:v3.23 | klibc | 2.0.9-r0 | ALPINE-CVE-2021-31870 |
| Alpine:v3.24 | klibc | 2.0.9-r0 | ALPINE-CVE-2021-31870 |
| Debian:12 | klibc | 2.0.8-6 | DEBIAN-CVE-2021-31870 |
| Debian:13 | klibc | 2.0.8-6 | DEBIAN-CVE-2021-31870 |
| Debian:14 | klibc | 2.0.8-6 | DEBIAN-CVE-2021-31870 |
Affected products (as reported)
References
- https://kernel.org/pub/linux/libs/klibc/2.0/ x_refsource_MISC
- https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=292650f04c2b5348b4efbad61fb014ed09b4f3f2 x_refsource_MISC
- https://lists.zytor.com/archives/klibc/2021-April/004593.html x_refsource_MISC
- [oss-security] 20210430 [ANNOUNCE] klibc 2.0.9 mailing-list, x_refsource_MLIST
- [debian-lts-announce] 20210628 [SECURITY] [DLA 2695-1] klibc security update mailing-list, x_refsource_MLIST