Vulnerabilities / CVE-2021-31873

critical

CVE-2021-31873

An issue was discovered in klibc before 2.0.9. Additions in the malloc ...

Published Modified CWE 190
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Ubuntu (low).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.19klibc2.0.9-r0
alpine 3.20klibc2.0.9-r0
alpine 3.21klibc2.0.9-r0
alpine 3.22klibc2.0.9-r0
alpine 3.23klibc2.0.9-r0
alpine 3.24klibc2.0.9-r0
alpine edgeklibc2.0.9-r0
debian 10klibc2.0.6-1+deb10u1
debian 11klibc2.0.8-6
debian 12klibc2.0.8-6
debian 13klibc2.0.8-6
debian 14klibc2.0.8-6
Show all 20 entries from 20 sources
SourcePackageFixed in
alpine 3.19klibc2.0.9-r0
alpine 3.20klibc2.0.9-r0
alpine 3.21klibc2.0.9-r0
alpine 3.22klibc2.0.9-r0
alpine 3.23klibc2.0.9-r0
alpine 3.24klibc2.0.9-r0
alpine edgeklibc2.0.9-r0
debian 10klibc2.0.6-1+deb10u1
debian 11klibc2.0.8-6
debian 12klibc2.0.8-6
debian 13klibc2.0.8-6
debian 14klibc2.0.8-6
debian 9klibc2.0.4-9+deb9u1
echoklibc2.0.8-6
ubuntu 14.04-ESMklibc2.0.3-0ubuntu1.14.04.3+esm2
ubuntu 16.04-ESMklibc2.0.4-8ubuntu1.16.04.4+esm1
ubuntu 18.04klibc2.0.4-9ubuntu2.1
ubuntu 18.04-ESMklibc2.0.4-9ubuntu2.1
ubuntu 20.04klibc2.0.7-1ubuntu5.1
ubuntu 20.04-ESMklibc2.0.7-1ubuntu5.1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.