Unrated severityNVD Advisory· Published Aug 24, 2022· Updated Dec 2, 2025
CVE-2021-3999
CVE-2021-3999
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 products
49- glibc/getcwd()description
- osv-coords48 versionspkg:rpm/almalinux/compat-libpthread-nonsharedpkg:rpm/almalinux/glibc-benchtestspkg:rpm/almalinux/glibc-nss-develpkg:rpm/almalinux/glibc-staticpkg:rpm/almalinux/glibc-utilspkg:rpm/almalinux/nss_hesiodpkg:rpm/opensuse/glibc&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/glibc&distro=openSUSE%20Tumbleweedpkg:rpm/suse/glibc&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/glibc&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/glibc&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOSpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Micro%205.0pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP3pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Point%20of%20Sale%2011%20SP3pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP2pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4-LTSSpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCLpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/glibc&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/glibc&distro=SUSE%20Manager%20Proxy%204.1pkg:rpm/suse/glibc&distro=SUSE%20Manager%20Retail%20Branch%20Server%204.1pkg:rpm/suse/glibc&distro=SUSE%20Manager%20Server%204.1pkg:rpm/suse/glibc&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/glibc&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/glibc&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/glibc&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209
< 2.28-164.el8_5.3+ 47 more
- (no CPE)range: < 2.28-164.el8_5.3
- (no CPE)range: < 2.28-164.el8_5.3
- (no CPE)range: < 2.28-164.el8_5.3
- (no CPE)range: < 2.28-164.el8_5.3
- (no CPE)range: < 2.28-164.el8_5.3
- (no CPE)range: < 2.28-164.el8_5.3
- (no CPE)range: < 2.31-150300.9.12.1
- (no CPE)range: < 2.35-1.1
- (no CPE)range: < 2.22-119.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.31-150300.9.12.1
- (no CPE)range: < 2.31-150300.9.12.1
- (no CPE)range: < 2.31-150300.9.12.1
- (no CPE)range: < 2.11.3-17.110.40.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.11.3-17.110.40.1
- (no CPE)range: < 2.22-119.1
- (no CPE)range: < 2.22-119.1
- (no CPE)range: < 2.22-119.1
- (no CPE)range: < 2.22-114.19.1
- (no CPE)range: < 2.22-114.19.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.22-119.1
- (no CPE)range: < 2.22-114.19.1
- (no CPE)range: < 2.22-114.19.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.22-114.19.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.26-13.65.1
- (no CPE)range: < 2.22-119.1
- (no CPE)range: < 2.22-114.19.1
- (no CPE)range: < 2.22-119.1
- (no CPE)range: < 2.22-114.19.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
7- lists.debian.org/debian-lts-announce/2022/10/msg00021.htmlmitremailing-list
- access.redhat.com/security/cve/CVE-2021-3999mitre
- bugzilla.redhat.com/show_bug.cgimitre
- security-tracker.debian.org/tracker/CVE-2021-3999mitre
- security.netapp.com/advisory/ntap-20221104-0001/mitre
- sourceware.org/bugzilla/show_bug.cgimitre
- www.openwall.com/lists/oss-security/2022/01/24/4mitre
News mentions
0No linked articles in our index yet.