7.8high
A flaw was found in glibc.
- Severity
- 7.8high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.81% (higher than 58% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
A flaw was found in glibc. An off-by-one buffer overflow and underflow in getcwd() may lead to memory corruption when the size of the buffer is exactly 1. A local attacker who can control the input buffer and size passed to getcwd() in a setuid program could use this flaw to potentially execute arbitrary code and escalate their privileges on the system.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| glibc | Fixed in glibc v2.31 and above. | CVE List |
| gnu glibc | before 2.31 | NVD |
| debian debian_linux | 10.0, 11.0 | NVD |
| netapp e-series_performance_analyzer | Not specified | NVD |
| netapp nfs_plug-in | Not specified | NVD |
| netapp ontap_select_deploy_administration_utility | Not specified | NVD |
| netapp h300s_firmware | Not specified | NVD |
| netapp h500s_firmware | Not specified | NVD |
| netapp h700s_firmware | Not specified | NVD |
| netapp h410s_firmware | Not specified | NVD |
| netapp h410c_firmware | Not specified | NVD |
All scores
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
A flaw was found in glibc. An off-by-one buffer overflow and underflow in getcwd() may lead to memory corruption when the size of the buffer is exactly 1. A local attacker who can control the input buffer and size passed to getcwd() in a setuid program could use this flaw to potentially execute arbitrary code and escalate their privileges on the system.
NVD (es)
Se ha encontrado un fallo en glibc. Un desbordamiento y subdesbordamiento de búfer en la función getcwd() puede conllevar a una corrupción de memoria cuando el tamaño del búfer es exactamente 1. Un atacante local que pueda controlar el búfer de entrada y el tamaño pasado a getcwd() en un programa setuid podría usar este fallo para ejecutar potencialmente código arbitrario y escalar sus privilegios en el sistema.
References
| https://www.openwall.com/lists/oss-security/2022/01/24/4 | exploit, mailing-list, third-party-advisory | |
| https://sourceware.org/bugzilla/show_bug.cgi?id=28769 | issue-tracking, third-party-advisory | |
| https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e | ||
| https://bugzilla.redhat.com/show_bug.cgi?id=2024637 | issue-tracking, third-party-advisory | |
| https://access.redhat.com/security/cve/CVE-2021-3999 | third-party-advisory | |
| https://security-tracker.debian.org/tracker/CVE-2021-3999 | third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html | mailing-list, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20221104-0001/ | third-party-advisory | |
| https://cert-portal.siemens.com/productcert/html/ssa-831302.html | ||
| https://cert-portal.siemens.com/productcert/html/ssa-398330.html | ||
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-3999 changed 2026-10-14 | CVE Terms of Use |
| NVD | CVE-2021-3999 changed 2026-10-14 | Public domain |