UBUNTU-CVE-2021-3999

Source
https://ubuntu.com/security/CVE-2021-3999
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3999.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-3999
Related
Published
2022-02-01T00:00:00Z
Modified
2022-02-01T00:00:00Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:14.04:LTS / eglibc

Package

Name
eglibc
Purl
pkg:deb/ubuntu/eglibc?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.19-0ubuntu6.15+esm3

Affected versions

2.*

2.17-93ubuntu4
2.18-0ubuntu1
2.18-0ubuntu2
2.18-0ubuntu4
2.18-0ubuntu5
2.18-0ubuntu6
2.18-0ubuntu7
2.19-0ubuntu2
2.19-0ubuntu3
2.19-0ubuntu4
2.19-0ubuntu5
2.19-0ubuntu6
2.19-0ubuntu6.1
2.19-0ubuntu6.3
2.19-0ubuntu6.4
2.19-0ubuntu6.5
2.19-0ubuntu6.6
2.19-0ubuntu6.7
2.19-0ubuntu6.8
2.19-0ubuntu6.9
2.19-0ubuntu6.10
2.19-0ubuntu6.11
2.19-0ubuntu6.13
2.19-0ubuntu6.14
2.19-0ubuntu6.15
2.19-0ubuntu6.15+esm1
2.19-0ubuntu6.15+esm2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "eglibc-source"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "glibc-doc"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc-bin"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc-bin-dbgsym"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc-dev-bin"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc-dev-bin-dbgsym"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-amd64"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-amd64-dbgsym"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-armel"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-armel-dbgsym"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-dbg"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-dbgsym"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-dev"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-dev-amd64"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-dev-armel"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-dev-i386"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-dev-x32"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-i386"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-i386-dbgsym"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-pic"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-prof"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-udeb"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-udeb-dbgsym"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-x32"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libc6-x32-dbgsym"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libnss-dns-udeb"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libnss-dns-udeb-dbgsym"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libnss-files-udeb"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "libnss-files-udeb-dbgsym"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "multiarch-support"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "nscd"
        },
        {
            "binary_version": "2.19-0ubuntu6.15+esm3",
            "binary_name": "nscd-dbgsym"
        }
    ]
}

Ubuntu:Pro:16.04:LTS / glibc

Package

Name
glibc
Purl
pkg:deb/ubuntu/glibc?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.23-0ubuntu11.3+esm1

Affected versions

2.*

2.21-0ubuntu4
2.21-0ubuntu5
2.21-0ubuntu6
2.23-0ubuntu1
2.23-0ubuntu2
2.23-0ubuntu3
2.23-0ubuntu4
2.23-0ubuntu5
2.23-0ubuntu6
2.23-0ubuntu7
2.23-0ubuntu9
2.23-0ubuntu10
2.23-0ubuntu11
2.23-0ubuntu11.2
2.23-0ubuntu11.3

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "glibc-doc"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "glibc-source"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc-bin"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc-bin-dbgsym"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc-dev-bin"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc-dev-bin-dbgsym"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-amd64"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-amd64-dbgsym"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-armel"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-armel-dbgsym"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-dbg"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-dbgsym"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-dev"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-dev-amd64"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-dev-armel"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-dev-i386"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-dev-s390"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-dev-x32"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-i386"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-i386-dbgsym"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-pic"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-s390"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-s390-dbgsym"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-udeb"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-udeb-dbgsym"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-x32"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "libc6-x32-dbgsym"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "locales"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "locales-all"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "multiarch-support"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "nscd"
        },
        {
            "binary_version": "2.23-0ubuntu11.3+esm1",
            "binary_name": "nscd-dbgsym"
        }
    ]
}

Ubuntu:18.04:LTS / glibc

Package

Name
glibc
Purl
pkg:deb/ubuntu/glibc?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.27-3ubuntu1.5

Affected versions

2.*

2.26-0ubuntu2
2.26-0ubuntu2.1
2.27-0ubuntu2
2.27-0ubuntu3
2.27-3ubuntu1
2.27-3ubuntu1.2
2.27-3ubuntu1.3
2.27-3ubuntu1.4

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "glibc-doc"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "glibc-source"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc-bin"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc-bin-dbgsym"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc-dev-bin"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc-dev-bin-dbgsym"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-amd64"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-amd64-dbgsym"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-armel"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-armel-dbgsym"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-dbg"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-dev"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-dev-amd64"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-dev-armel"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-dev-i386"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-dev-s390"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-dev-x32"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-i386"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-i386-dbgsym"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-lse"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-pic"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-s390"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-s390-dbgsym"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-udeb"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-x32"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "libc6-x32-dbgsym"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "locales"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "locales-all"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "multiarch-support"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "nscd"
        },
        {
            "binary_version": "2.27-3ubuntu1.5",
            "binary_name": "nscd-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / glibc

Package

Name
glibc
Purl
pkg:deb/ubuntu/glibc?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.31-0ubuntu9.7

Affected versions

2.*

2.30-0ubuntu2
2.30-0ubuntu3
2.31-0ubuntu5
2.31-0ubuntu6
2.31-0ubuntu7
2.31-0ubuntu9
2.31-0ubuntu9.1
2.31-0ubuntu9.2
2.31-0ubuntu9.3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "glibc-doc"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "glibc-source"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc-bin"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc-bin-dbgsym"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc-dev-bin"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc-dev-bin-dbgsym"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-amd64"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-amd64-dbgsym"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-armel"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-armel-dbgsym"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-dbg"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-dev"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-dev-amd64"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-dev-armel"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-dev-i386"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-dev-s390"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-dev-x32"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-i386"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-i386-dbgsym"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-lse"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-pic"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-prof"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-s390"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-s390-dbgsym"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-udeb"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-x32"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "libc6-x32-dbgsym"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "locales"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "locales-all"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "nscd"
        },
        {
            "binary_version": "2.31-0ubuntu9.7",
            "binary_name": "nscd-dbgsym"
        }
    ]
}

Ubuntu:22.04:LTS / glibc

Package

Name
glibc
Purl
pkg:deb/ubuntu/glibc?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.35-0ubuntu1

Affected versions

2.*

2.34-0ubuntu3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "glibc-doc"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "glibc-source"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc-bin"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc-bin-dbgsym"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc-dev-bin"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc-dev-bin-dbgsym"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc-devtools"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc-devtools-dbgsym"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-amd64"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-amd64-dbgsym"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-dbg"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-dev"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-dev-amd64"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-dev-i386"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-dev-s390"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-dev-x32"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-i386"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-i386-dbgsym"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-prof"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-s390"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-s390-dbgsym"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-x32"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "libc6-x32-dbgsym"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "locales"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "locales-all"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "nscd"
        },
        {
            "binary_version": "2.35-0ubuntu1",
            "binary_name": "nscd-dbgsym"
        }
    ]
}