Vulnerability · Published Apr 30, 2021 · Assigned by mitre
CVE-2021-31873
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.2% (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.2%top 17.7% 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. Additions in the malloc() 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-31873 |
| Alpine:v3.21 | klibc | 2.0.9-r0 | ALPINE-CVE-2021-31873 |
| Alpine:v3.22 | klibc | 2.0.9-r0 | ALPINE-CVE-2021-31873 |
| Alpine:v3.23 | klibc | 2.0.9-r0 | ALPINE-CVE-2021-31873 |
| Alpine:v3.24 | klibc | 2.0.9-r0 | ALPINE-CVE-2021-31873 |
| Debian:12 | klibc | 2.0.8-6 | DEBIAN-CVE-2021-31873 |
| Debian:13 | klibc | 2.0.8-6 | DEBIAN-CVE-2021-31873 |
| Debian:14 | klibc | 2.0.8-6 | DEBIAN-CVE-2021-31873 |
Affected products (as reported)
References
- https://kernel.org/pub/linux/libs/klibc/2.0/
- https://lists.zytor.com/archives/klibc/2021-April/004593.html
- https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=a31ae8c508fc8d1bca4f57e9f9f88127572d5202
- [oss-security] 20210430 [ANNOUNCE] klibc 2.0.9 mailing-list
- [debian-lts-announce] 20210628 [SECURITY] [DLA 2695-1] klibc security update mailing-list
- https://github.com/huolinjue/klibc/commit/a31ae8c508fc8d1bca4f57e9f9f88127572d5202