CVEfocus › CVE database › CVE-2021-20277

CVE-2021-20277

CVSS 7.5 HighEPSS 4.2% (higher than 92% of CVEs)Published 2021-05-12Updated 2024-08-03Assigner: redhat

A flaw was found in Samba's libldb. Multiple, consecutive leading spaces in an LDAP attribute can lead to an out-of-bounds memory write, leading to a crash of the LDAP server process handling the request. The highest threat from this vulnerability is to system availability.

CWE-125

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

28Fixed
1Fix pending
5Will not fix
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04ldbFixed2:2.0.10-0ubuntu0.20.04.3UBUNTU-CVE-2021-20277
Ubuntu 18.04ldbFixed2:1.2.3-1ubuntu0.2UBUNTU-CVE-2021-20277
Ubuntu 16.04ldbFixed2:1.1.24-1ubuntu3.2UBUNTU-CVE-2021-20277
Ubuntu 16.04sambaNot affected
vulnerable_code_not_present
Ubuntu 14.04ldbFix pending1:1.1.24-0ubuntu0.14.04.2+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-20277
Debian 14sambaFixed2:4.13.13+dfsg-1DEBIAN-CVE-2021-20277
Debian 13sambaFixed2:4.13.13+dfsg-1DEBIAN-CVE-2021-20277
Debian 12sambaFixed2:4.13.13+dfsg-1DEBIAN-CVE-2021-20277
Red Hat Enterprise Linux 9ldb-toolsNot affected
Red Hat Enterprise Linux 9libldbNot affected
Red Hat Enterprise Linux 9libldb-develNot affected
Red Hat Enterprise Linux 9python3-ldbNot affected
Red Hat Enterprise Linux 8ldb-toolsFixed0:2.1.3-3.el8_3RHSA-2021:1197
Red Hat Enterprise Linux 8libldbFixed0:2.1.3-3.el8_3RHSA-2021:1197
Red Hat Enterprise Linux 8libldb-develFixed0:2.1.3-3.el8_3RHSA-2021:1197
Red Hat Enterprise Linux 8python3-ldbFixed0:2.1.3-3.el8_3RHSA-2021:1197
Red Hat Enterprise Linux 7ldb-toolsFixed0:1.5.4-2.el7_9RHSA-2021:1072
Red Hat Enterprise Linux 7libldbFixed0:1.5.4-2.el7_9RHSA-2021:1072
Red Hat Enterprise Linux 7libldb-develFixed0:1.5.4-2.el7_9RHSA-2021:1072
Red Hat Enterprise Linux 7pyldbFixed0:1.5.4-2.el7_9RHSA-2021:1072
Red Hat Enterprise Linux 7pyldb-develFixed0:1.5.4-2.el7_9RHSA-2021:1072
Red Hat Enterprise Linux 6ldb-toolsWill not fix
Out of support scope
Red Hat Enterprise Linux 6libldbWill not fix
Out of support scope
Red Hat Enterprise Linux 6libldb-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6pyldbWill not fix
Out of support scope
Red Hat Enterprise Linux 6pyldb-develWill not fix
Out of support scope
Alpine Linux 3.24sambaFixed4.14.2-r0ALPINE-CVE-2021-20277
Alpine Linux 3.23sambaFixed4.14.2-r0ALPINE-CVE-2021-20277
Alpine Linux 3.22sambaFixed4.14.2-r0ALPINE-CVE-2021-20277
Alpine Linux 3.21sambaFixed4.14.2-r0ALPINE-CVE-2021-20277
Alpine Linux 3.20sambaFixed4.14.2-r0ALPINE-CVE-2021-20277
Alpine Linux 3.19sambaFixed4.14.2-r0ALPINE-CVE-2021-20277
Alpine Linux 3.18sambaFixed4.14.2-r0ALPINE-CVE-2021-20277
Alpine Linux 3.17sambaFixed4.14.2-r0ALPINE-CVE-2021-20277
Alpine Linux 3.16sambaFixed4.14.2-r0ALPINE-CVE-2021-20277
Alpine Linux 3.15sambaFixed4.14.2-r0ALPINE-CVE-2021-20277
Alpine Linux 3.14sambaFixed4.14.2-r0ALPINE-CVE-2021-20277
Alpine Linux 3.13sambaFixed4.13.7-r0ALPINE-CVE-2021-20277
Alpine Linux 3.12sambaFixed4.12.14-r0ALPINE-CVE-2021-20277

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.