# CVE-2021-31870

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-04-30 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-31870, DEBIAN-CVE-2021-31870, ALPINE-CVE-2021-31870
- Record: https://cvemate.com/vulnerability/CVE-2021-31870 · JSON: https://cvemate.com/vulnerability/CVE-2021-31870/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.117%, percentile 82.468%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine klibc (Alpine Linux): \< 2.0.9-r0
- debian klibc (Debian): \< 2.0.8-6
- ubuntu klibc (Ubuntu): \< 2.0.3-0ubuntu1.14.04.3+esm2 \| \< 2.0.4-8ubuntu1.16.04.4+esm1 \| \< 2.0.4-9ubuntu2.1 \| \< 2.0.7-1ubuntu5.1
- debian debian\_linux: 9.0
- klibc\_project klibc: \< 2.0.9

## References

- <https://kernel.org/pub/linux/libs/klibc/2.0/>
- <https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=292650f04c2b5348b4efbad61fb014ed09b4f3f2>
- <https://lists.zytor.com/archives/klibc/2021-April/004593.html>
- <http://www.openwall.com/lists/oss-security/2021/04/30/1>
- <https://lists.debian.org/debian-lts-announce/2021/06/msg00025.html>
- <https://ubuntu.com/security/CVE-2021-31870>
- <https://ubuntu.com/security/notices/USN-5379-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-31870>
- <https://security-tracker.debian.org/tracker/CVE-2021-31870>
- <https://security.alpinelinux.org/vuln/CVE-2021-31870>

---

Data as of 2026-12-05T06:27:16.071Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
