CVE-2021-3999
An off-by-one buffer overflow and underflow in getcwd() may lead to memory corruption when the size of the buffer is exactly 1.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.75%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 7.8 HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 0.75% probability · 53th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-193
- Affected
- gnu/glibc · debian/debian linux · netapp/e-series performance analyzer · netapp/nfs plug-in · netapp/ontap select deploy administration utility · netapp/h300s firmware · netapp/h500s firmware · netapp/h700s firmware · netapp/h410s firmware · netapp/h410c firmware
- Source
- secalert@redhat.com
References
- https://access.redhat.com/security/cve/CVE-2021-3999Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2024637Issue Tracking, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/10/msg00021.htmlMailing List, Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2021-3999Third Party Advisory
- https://security.netapp.com/advisory/ntap-20221104-0001/Third Party Advisory
- https://sourceware.org/bugzilla/show_bug.cgi?id=28769Issue Tracking, Third Party Advisory
- https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e
- https://www.openwall.com/lists/oss-security/2022/01/24/4Exploit, Mailing List, Third Party Advisory
- https://access.redhat.com/security/cve/CVE-2021-3999Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2024637Issue Tracking, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/10/msg00021.htmlMailing List, Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2021-3999Third Party Advisory
- https://security.netapp.com/advisory/ntap-20221104-0001/Third Party Advisory
- https://sourceware.org/bugzilla/show_bug.cgi?id=28769Issue Tracking, Third Party Advisory
- https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e
- https://www.openwall.com/lists/oss-security/2022/01/24/4Exploit, Mailing List, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.