Integer Overflow or Wraparound Affecting klibc package, versions <2.0.7-1ubuntu5.1
Threat Intelligence
EPSS
0.65% (80th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-UBUNTU2004-KLIBC-1278706
- published 29 Jan 2022
- disclosed 30 Apr 2021
Introduced: 30 Apr 2021
CVE-2021-31873 Open this link in a new tabHow to fix?
Upgrade Ubuntu:20.04 klibc to version 2.0.7-1ubuntu5.1 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream klibc package and not the klibc package as distributed by Ubuntu.
See How to fix? for Ubuntu:20.04 relevant fixed versions and status.
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.
References
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2021-31873
- https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=a31ae8c508fc8d1bca4f57e9f9f88127572d5202
- https://kernel.org/pub/linux/libs/klibc/2.0/
- https://lists.zytor.com/archives/klibc/2021-April/004593.html
- https://lists.debian.org/debian-lts-announce/2021/06/msg00025.html
- http://www.openwall.com/lists/oss-security/2021/04/30/1
- https://github.com/huolinjue/klibc/commit/a31ae8c508fc8d1bca4f57e9f9f88127572d5202
CVSS Scores
version 3.1