
CVE catalog
CVE-2021-31872
klibc: CVE-2021-31872
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.08% · Oct 25, 2026
An issue was discovered in klibc before 2.0.9. Multiple possible integer overflows in the cpio command on 32-bit systems may result in a buffer overflow or other security impact.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | klibc | sid | 2.0.14-1 | fixed |
| Debian | klibc | forky | 2.0.14-1 | fixed |
| Debian | klibc | trixie | 2.0.14-1 | fixed |
| Debian | klibc | bookworm | 2.0.12-1 | fixed |
| Ubuntu | klibc | pro | 2.0.3-0ubuntu1 | vulnerable |
| Ubuntu | klibc | pro | 2.0.4-4 | vulnerable |
| Ubuntu | klibc | pro | 2.0.4-6 | vulnerable |
| Ubuntu | klibc | pro | 2.0.4-7 | vulnerable |
| Ubuntu | klibc | pro | 2.0.4-8 | vulnerable |
| Ubuntu | klibc | pro | 2.0.4-8ubuntu1 | vulnerable |
| Ubuntu | klibc | pro | 2.0.4-8ubuntu1.16.04.1 | vulnerable |
| Ubuntu | klibc | pro | 2.0.4-8ubuntu1.16.04.2 | vulnerable |
| Ubuntu | klibc | pro | 2.0.4-8ubuntu1.16.04.3 | vulnerable |
| Ubuntu | klibc | pro | 2.0.4-8ubuntu1.16.04.4 | vulnerable |
| Ubuntu | klibc | pro | 2.0.4-8ubuntu1.16.04.4+esm1 | fixed |
| Ubuntu | klibc | 18.04 | 2.0.4-9ubuntu1 | vulnerable |
| Ubuntu | klibc | 18.04 | 2.0.4-9ubuntu2 | vulnerable |
| Ubuntu | klibc | 18.04 | 2.0.4-9ubuntu2.1 | fixed |
| Ubuntu | klibc | 20.04 | 2.0.6-1ubuntu1 | vulnerable |
| Ubuntu | klibc | 20.04 | 2.0.6-1ubuntu2 | vulnerable |
| Ubuntu | klibc | 20.04 | 2.0.7-1ubuntu1 | vulnerable |
| Ubuntu | klibc | 20.04 | 2.0.7-1ubuntu3 | vulnerable |
| Ubuntu | klibc | 20.04 | 2.0.7-1ubuntu4 | vulnerable |
| Ubuntu | klibc | 20.04 | 2.0.7-1ubuntu5 | vulnerable |
| Ubuntu | klibc | 20.04 | 2.0.7-1ubuntu5.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | klibc | source | sid | 2.0.8-6 | not yet assigned | Not reported | [989505] |
| Debian | klibc | source | forky | 2.0.8-6 | not yet assigned | Not reported | [989505] |
| Debian | klibc | source | trixie | 2.0.8-6 | not yet assigned | Not reported | [989505] |
| Debian | klibc | source | bookworm | 2.0.8-6 | not yet assigned | Not reported | [989505] |
| Ubuntu | klibc | deb | pro | 2.0.4-8ubuntu1.16.04.4+esm1 | Not reported | UBUNTU-CVE-2021-31872 | Not reported |
| Ubuntu | klibc | deb | 18.04 | 2.0.4-9ubuntu2.1 | Not reported | UBUNTU-CVE-2021-31872 | Not reported |
| Ubuntu | klibc | deb | 20.04 | 2.0.7-1ubuntu5.1 | Not reported | UBUNTU-CVE-2021-31872 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [klibc-utils]Fixed
Source package: [klibc]
Details (2)
2.0.12-1· amd64 · bookwormFixed · Fixed:
2.0.8-6dsa · klibc · debian · bookworm; dsa · klibc · debian · 12
2.0.12-1· arm64 · bookwormFixed · Fixed:
2.0.8-6dsa · klibc · debian · bookworm; dsa · klibc · debian · 12
- [libklibc]Fixed
Source package: [klibc]
Details (2)
2.0.12-1· amd64 · bookwormFixed · Fixed:
2.0.8-6dsa · klibc · debian · bookworm; dsa · klibc · debian · 12
2.0.12-1· arm64 · bookwormFixed · Fixed:
2.0.8-6dsa · klibc · debian · bookworm; dsa · klibc · debian · 12
- [libklibc-dev]Fixed
Source package: [klibc]
Details (2)
2.0.12-1· amd64 · bookwormFixed · Fixed:
2.0.8-6dsa · klibc · debian · bookworm; dsa · klibc · debian · 12
2.0.12-1· arm64 · bookwormFixed · Fixed:
2.0.8-6dsa · klibc · debian · bookworm; dsa · klibc · debian · 12
[Debian 13 (Trixie)]
- [klibc-utils]Fixed
Source package: [klibc]
Details (2)
2.0.14-1· amd64 · trixieFixed · Fixed:
2.0.8-6dsa · klibc · debian · 13
2.0.14-1· arm64 · trixieFixed · Fixed:
2.0.8-6dsa · klibc · debian · 13
- [libklibc]Fixed
Source package: [klibc]
Details (2)
2.0.14-1· amd64 · trixieFixed · Fixed:
2.0.8-6dsa · klibc · debian · 13
2.0.14-1· arm64 · trixieFixed · Fixed:
2.0.8-6dsa · klibc · debian · 13
- [libklibc-dev]Fixed
Source package: [klibc]
Details (2)
2.0.14-1· amd64 · trixieFixed · Fixed:
2.0.8-6dsa · klibc · debian · 13
2.0.14-1· arm64 · trixieFixed · Fixed:
2.0.8-6dsa · klibc · debian · 13
Observed: