Your submission was sent successfully! Close

CVE-2021-3999

Published: 1 February 2022

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.

Priority

Medium

CVSS 3 base score: 7.8

Status

Package Release Status
eglibc
Launchpad, Ubuntu, Debian
bionic Does not exist

focal Does not exist

hirsute Does not exist

impish Does not exist

jammy Does not exist

trusty Needs triage

upstream Needs triage

xenial Does not exist

glibc
Launchpad, Ubuntu, Debian
bionic
Released (2.27-3ubuntu1.5)
focal
Released (2.31-0ubuntu9.7)
hirsute Ignored
(reached end-of-life)
impish
Released (2.34-0ubuntu3.2)
jammy Not vulnerable
(2.35-0ubuntu1)
upstream Needs triage

xenial
Released (2.23-0ubuntu11.3+esm1)
Patches:
upstream: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e
upstream: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=472e799a5f2102bc0c3206dbd5a801765fceb39c