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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | glibc | Fixed in glibc v2.31 and above. | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | glibc | 2.33-4 | — |
| Debian 13 | glibc | 2.33-4 | — |
| Debian 12 | glibc | 2.33-4 | — |
| Debian 10 | glibc | 2.28-10+deb10u2 | DLA-3152-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | glibc | 2.31-0ubuntu9.7 | USN-5310-1 |
| Ubuntu 18.04 LTS | glibc | 2.27-3ubuntu1.5 | USN-5310-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | glibc | 2.27-3ubuntu1.6+esm2 | USN-6762-1 |
| Ubuntu Pro 16.04 LTS | glibc | 2.23-0ubuntu11.3+esm1 | USN-6762-1, USN-5310-2 |
| Ubuntu Pro 14.04 LTS | eglibc | 2.19-0ubuntu6.15+esm3 | USN-6762-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | nscd +212 | 2.28-164.el8_5.3 | RHSA-2022:0896 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | nss_hesiod +5 | 2.28-164.el8_5.3 | ALSA-2022:0896 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | glibc | 2.28-164.el8_5.3 | RLSA-2022:0896 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | glibc | 2.31-150300.9.12.1 | SUSE-SU-2022:0330-1 |
| SLES 15 SP2 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SLES 15 SP1 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SLES 15 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SLES 12 SP5 | glibc | 2.22-114.19.1 | SUSE-SU-2022:0441-1 |
Show 27 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP4 | glibc | 2.22-114.19.1 | SUSE-SU-2022:0441-1 |
| SLES 12 SP3 | glibc | 2.22-119.1 | SUSE-SU-2022:0909-1 |
| SLES 12 SP2 | glibc | 2.22-119.1 | SUSE-SU-2022:0909-1 |
| SLES 11 SP4 | glibc | 2.11.3-17.110.40.1 | SUSE-SU-2022:14923-1 |
| SLES for SAP 15 SP2 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SLES for SAP 15 SP1 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SLES for SAP 15 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SLES for SAP 12 SP5 | glibc | 2.22-114.19.1 | SUSE-SU-2022:0441-1 |
| SLES for SAP 12 SP4 | glibc | 2.22-114.19.1 | SUSE-SU-2022:0441-1 |
| SLES for SAP 12 SP3 | glibc | 2.22-119.1 | SUSE-SU-2022:0909-1 |
| SLE Real Time 15 SP2 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SLE Micro 5.1 | glibc | 2.31-150300.9.12.1 | SUSE-SU-2022:0330-1 |
| SLE Micro 5.0 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SLE HPC 15 SP2 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SLE HPC 15 SP1 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SLE HPC 15 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SUSE OpenStack Cloud Crowbar 9 | glibc | 2.22-114.19.1 | SUSE-SU-2022:0441-1 |
| SUSE OpenStack Cloud Crowbar 8 | glibc | 2.22-119.1 | SUSE-SU-2022:0909-1 |
| SUSE OpenStack Cloud 9 | glibc | 2.22-114.19.1 | SUSE-SU-2022:0441-1 |
| SUSE OpenStack Cloud 8 | glibc | 2.22-119.1 | SUSE-SU-2022:0909-1 |
| SUSE Manager Server 4.1 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SUSE Manager Retail Branch Server 4.1 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SUSE Manager Proxy 4.1 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | glibc | 2.11.3-17.110.40.1 | SUSE-SU-2022:14923-1 |
| SUSE HPE Helion OpenStack 8 | glibc | 2.22-119.1 | SUSE-SU-2022:0909-1 |
| SUSE Enterprise Storage 7 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
| SUSE Enterprise Storage 6 | glibc | 2.26-13.65.1 | SUSE-SU-2022:0832-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | glibc | 2.35-1.1 | openSUSE-SU-2024:11850-1 |
| openSUSE Leap 15.3 | glibc | 2.31-150300.9.12.1 | openSUSE-SU-2022:0330-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | nscd +199 | 2.26-61.amzn2 | ALAS2-2022-1857 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | nscd +211 | 2.28-164.0.5.el8_5.3 | ELSA-2022-0896 |
Advisories 23
- RHSA-2022:0896 Red Hat Security Advisory: glibc security update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- ALSA-2022:0896 Moderate: glibc security update AlmaLinux Security Advisories · Oct 29, 2026
- SSA-398330 SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5 Siemens ProductCERT · Oct 13, 2026
- USN-6762-1 eglibc, glibc vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-5310-2 glibc vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-5310-1 glibc vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-3152-1 glibc - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2022:0896 Moderate: glibc security update Rocky Linux Security Advisories · Feb 5, 2026
- SUSE-SU-2022:14923-1 Security update for glibc SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:0330-1 Security update for glibc SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0330-1 Security update for glibc SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0909-1 Security update for glibc SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0832-1 Security update for glibc SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0441-1 Security update for glibc SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-1186 IBM DB2 REST: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 25, 2026
- WID-SEC-2022-1206 GNU libc: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 17, 2025
- ICSA-23-348-10 Siemens SIMATIC S7-1500 CISA ICS & IT advisories · Aug 12, 2025
- openSUSE-SU-2024:11850-1 glibc-2.35-1.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025
- ICSA-23-166-10 Siemens SIMATIC S7-1500 TM MFP BIOS CISA ICS & IT advisories · Apr 9, 2024
- SSA-831302 SSA-831302: Vulnerabilities in the BIOS of the SIMATIC S7-1500 TM MFP before V1.3.0 Siemens ProductCERT · Apr 9, 2024
- WID-SEC-2023-1432 Siemens SIMATIC S7: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 22, 2023
- ALAS2-2022-1857 Moderate: glibc security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 19, 2022
- ELSA-2022-0896 Moderate: glibc security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Mar 16, 2022
References
- https://www.openwall.com/lists/oss-security/2022/01/24/4
- https://sourceware.org/bugzilla/show_bug.cgi?id=28769
- https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e
- https://bugzilla.redhat.com/show_bug.cgi?id=2024637
- https://access.redhat.com/security/cve/CVE-2021-3999
- https://security-tracker.debian.org/tracker/CVE-2021-3999
- [debian-lts-announce] 20221017 [SECURITY] [DLA 3152-1] glibc security update mailing-list
- https://security.netapp.com/advisory/ntap-20221104-0001/