---
title: "CVE-2021-31870"
canonical_url: "https://pkgseek.com/security/CVE-2021-31870"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "critical"
---

# CVE-2021-31870

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.

CVE-2021-31870 is rated CRITICAL (9.8), with 3 indexed affected package builds across 1 distributions.

- **Severity / Score**: CRITICAL (9.8)
- **Affected builds**: 3
- **Affected distros**: 1
- **Distros with fixed_in**: Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | focal | klibc-utils | 2.0.7-1ubuntu5 | 2.0.7-1ubuntu5.1 |
| Ubuntu | focal | libklibc | 2.0.7-1ubuntu5 | 2.0.7-1ubuntu5.1 |
| Ubuntu | focal | libklibc-dev | 2.0.7-1ubuntu5 | 2.0.7-1ubuntu5.1 |
