# CVE-2021-31873

- 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-31873, DEBIAN-CVE-2021-31873, ALPINE-CVE-2021-31873
- Record: https://cvemate.com/vulnerability/CVE-2021-31873 · JSON: https://cvemate.com/vulnerability/CVE-2021-31873/json

## Description

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

## 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.207%, percentile 83.177%, 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://lists.zytor.com/archives/klibc/2021-April/004593.html>
- <https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=a31ae8c508fc8d1bca4f57e9f9f88127572d5202>
- <http://www.openwall.com/lists/oss-security/2021/04/30/1>
- <https://lists.debian.org/debian-lts-announce/2021/06/msg00025.html>
- <https://github.com/huolinjue/klibc/commit/a31ae8c508fc8d1bca4f57e9f9f88127572d5202>
- <https://ubuntu.com/security/CVE-2021-31873>
- <https://ubuntu.com/security/notices/USN-5379-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-31873>
- <https://security-tracker.debian.org/tracker/CVE-2021-31873>
- <https://security.alpinelinux.org/vuln/CVE-2021-31873>

---

Data as of 2026-12-05T06:43:05.412Z. 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
