Skip to content
OpenAdvisories
Unscored CVE-2021-20277 EUVD-2021-7711GHSA-96fm-7x9f-hmmw

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, le…

Published May 12, 2021 · Updated Aug 3, 2024 · Assigned by redhat

Description

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.

Affected products

VendorProductAffectedFixed
— samba samba 4.14.1, samba 4.13.6, samba 4.12.13 —

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.

ReleasePackageFixed inAdvisory
Debian 14 samba 2:4.13.13+dfsg-1 —
Debian 13 samba 2:4.13.13+dfsg-1 —
Debian 12 samba 2:4.13.13+dfsg-1 —
Debian 10 ldb 2:1.5.1+really1.4.6-3+deb10u1 DSA-4884-1
Debian 9 ldb 2:1.1.27-1+deb9u2 DLA-2611-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS ldb 2:2.0.10-0ubuntu0.20.04.3 USN-4888-1
Ubuntu 18.04 LTS ldb 2:1.2.3-1ubuntu0.2 USN-4888-1
Ubuntu 16.04 LTS ldb 2:1.1.24-1ubuntu3.2 USN-4888-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS ldb 1:1.1.24-0ubuntu0.14.04.2+esm1 USN-4888-2
ReleasePackageFixed inAdvisory
RHEL 8 libldb +3 2.1.3-3.el8_3 RHSA-2021:1197
RHEL 7 pyldb +4 1.5.4-2.el7_9 RHSA-2021:1072
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.2 EUS libldb +3 2.0.7-4.el8_2 RHSA-2021:1213
RHEL 8.1 EUS libldb +3 1.5.4-3.el8_1 RHSA-2021:1214
RHEL 7.7 EUS pyldb +4 1.4.2-2.el7_7 RHSA-2021:2331
RHEL 7.6 TUS pyldb +4 1.3.4-2.el7_6 RHSA-2021:2786
RHEL 7.6 E4S pyldb +4 1.3.4-2.el7_6 RHSA-2021:2786
RHEL 7.6 AUS pyldb +4 1.3.4-2.el7_6 RHSA-2021:2786
ReleasePackageFixed inAdvisory
SLES 15 SP3 apparmor 2.13.6-150300.3.11.2 SUSE-SU-2022:0283-1
SLES 15 SP3 krb5 1.19.2-150300.8.3.2 SUSE-SU-2022:0283-1
SLES 15 SP3 ldb 2.4.1-150300.3.10.1 SUSE-SU-2022:0283-1
SLES 15 SP3 libapparmor 2.13.6-150300.3.11.1 SUSE-SU-2022:0283-1
SLES 15 SP3 samba 4.13.6+git.211.555d60b24ba-3.7.1 SUSE-SU-2022:0283-1, SUSE-SU-2021:3187-1
SLES 15 SP3 sssd 1.16.1-150300.23.17.3 SUSE-SU-2022:0283-1
SLES 15 SP3 talloc 2.3.3-150300.3.3.2 SUSE-SU-2022:0283-1
SLES 15 SP3 talloc-man 2.3.3-150300.3.3.1 SUSE-SU-2022:0283-1
SLES 15 SP3 tdb 1.4.4-150300.3.3.2 SUSE-SU-2022:0283-1
SLES 15 SP3 tevent 0.11.0-150300.3.3.2 SUSE-SU-2022:0283-1
SLES 15 SP3 tevent-man 0.11.0-150300.3.3.1 SUSE-SU-2022:0283-1
SLES 15 SP2 ldb 2.0.12-3.6.1 SUSE-SU-2021:0945-1
SLES 15 SP2 samba 4.11.14+git.247.8c858f7ee14-4.19.1 SUSE-SU-2021:1444-1
SLES 15 SP1 ldb 1.4.6-3.8.1 SUSE-SU-2021:0944-1
SLES 15 SP1 samba 4.9.5+git.432.d9b18c4f390-3.50.1 SUSE-SU-2021:1498-1
SLES 2 ldb 1.4.6-3.8.1 SUSE-SU-2021:0944-1
SLES 2 samba 4.11.14+git.247.8c858f7ee14-4.19.1 SUSE-SU-2022:0283-1, SUSE-SU-2021:3187-1, SUSE-SU-2021:1444-1
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP1 ldb 1.4.6-3.8.1 SUSE-SU-2021:0944-1
SLES for SAP 15 SP1 samba 4.9.5+git.432.d9b18c4f390-3.50.1 SUSE-SU-2021:1498-1
SLE Micro 5.1 apparmor 2.13.6-150300.3.11.2 SUSE-SU-2022:0283-1
SLE Micro 5.1 krb5 1.19.2-150300.8.3.2 SUSE-SU-2022:0283-1
SLE Micro 5.1 ldb 2.4.1-150300.3.10.1 SUSE-SU-2022:0283-1
SLE Micro 5.1 libapparmor 2.13.6-150300.3.11.1 SUSE-SU-2022:0283-1
SLE Micro 5.1 sssd 1.16.1-150300.23.17.3 SUSE-SU-2022:0283-1
SLE Micro 5.1 talloc 2.3.3-150300.3.3.2 SUSE-SU-2022:0283-1
SLE Micro 5.1 tdb 1.4.4-150300.3.3.2 SUSE-SU-2022:0283-1
SLE Micro 5.1 tevent 0.11.0-150300.3.3.2 SUSE-SU-2022:0283-1
SLE HPC 15 SP1 ldb 1.4.6-3.8.1 SUSE-SU-2021:0944-1
SLE HPC 15 SP1 samba 4.9.5+git.432.d9b18c4f390-3.50.1 SUSE-SU-2021:1498-1
SUSE Manager Server 4.0 ldb 1.4.6-3.8.1 SUSE-SU-2021:0944-1
SUSE Manager Server 4.0 samba 4.9.5+git.432.d9b18c4f390-3.50.1 SUSE-SU-2021:1498-1
SUSE Manager Retail Branch Server 4.0 ldb 1.4.6-3.8.1 SUSE-SU-2021:0944-1
SUSE Manager Retail Branch Server 4.0 samba 4.9.5+git.432.d9b18c4f390-3.50.1 SUSE-SU-2021:1498-1
SUSE Manager Proxy 4.0 ldb 1.4.6-3.8.1 SUSE-SU-2021:0944-1
SUSE Manager Proxy 4.0 samba 4.9.5+git.432.d9b18c4f390-3.50.1 SUSE-SU-2021:1498-1
SUSE Enterprise Storage 7 ldb 2.2.1-4.3.1 SUSE-SU-2021:1440-1
SUSE Enterprise Storage 7 samba 4.13.6+git.211.555d60b24ba-3.9.1 SUSE-SU-2021:1440-1
SUSE Enterprise Storage 6 ldb 1.4.6-3.8.1 SUSE-SU-2021:0944-1
SUSE Enterprise Storage 6 samba 4.9.5+git.432.d9b18c4f390-3.50.1 SUSE-SU-2021:1498-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ldb 2.3.0-1.3 openSUSE-SU-2024:10911-1
openSUSE Tumbleweed samba 4.14.6+git.182.2205d5224e3-1.1 openSUSE-SU-2024:11365-1
openSUSE Leap 15.3 apparmor 2.13.6-150300.3.11.2 openSUSE-SU-2022:0283-1
openSUSE Leap 15.3 krb5 +1 1.19.2-150300.8.3.2 openSUSE-SU-2022:0283-1
openSUSE Leap 15.3 ldb 2.4.1-150300.3.10.1 openSUSE-SU-2022:0283-1
openSUSE Leap 15.3 libapparmor 2.13.6-150300.3.11.1 openSUSE-SU-2022:0283-1
openSUSE Leap 15.3 samba 4.13.6+git.211.555d60b24ba-3.7.1 openSUSE-SU-2022:0283-1, openSUSE-SU-2021:3187-1
openSUSE Leap 15.3 sssd 1.16.1-150300.23.17.3 openSUSE-SU-2022:0283-1
openSUSE Leap 15.3 talloc 2.3.3-150300.3.3.2 openSUSE-SU-2022:0283-1
openSUSE Leap 15.3 talloc-man 2.3.3-150300.3.3.1 openSUSE-SU-2022:0283-1
openSUSE Leap 15.3 tdb 1.4.4-150300.3.3.2 openSUSE-SU-2022:0283-1
openSUSE Leap 15.3 tevent 0.11.0-150300.3.3.2 openSUSE-SU-2022:0283-1
openSUSE Leap 15.3 tevent-man 0.11.0-150300.3.3.1 openSUSE-SU-2022:0283-1
openSUSE Leap 15.2 ldb 2.0.12-lp152.2.9.1 openSUSE-SU-2021:0469-1
openSUSE Leap 15.2 samba 4.11.14+git.247.8c858f7ee14-lp152.3.19.1 openSUSE-SU-2021:0636-1
ReleasePackageFixed inAdvisory
Alpine v3.24 samba 4.14.2-r0 —
Alpine v3.23 samba 4.14.2-r0 —
Alpine v3.22 samba 4.14.2-r0 —
Alpine v3.21 samba 4.14.2-r0 —
Alpine v3.20 samba 4.14.2-r0 —
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 samba 4.14.2-r0 —
Alpine v3.18 samba 4.14.2-r0 —
Alpine v3.17 samba 4.14.2-r0 —
Alpine v3.16 samba 4.14.2-r0 —
Alpine v3.15 samba 4.14.2-r0 —
Alpine v3.14 samba 4.14.2-r0 —
Alpine v3.13 samba 4.13.7-r0 —
Alpine v3.12 samba 4.12.14-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 pyldb +4 1.5.4-2.amzn2 ALAS2-2021-1628

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libldb 2.7.2-1 —
Azure Linux 3 samba 4.18.3-1 —
Azure Linux 2 (CBL-Mariner) samba No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 libldb +3 2.1.3-3.el8_3 ELSA-2021-1197
Oracle Linux 7 pyldb +4 1.5.4-2.el7_9 ELSA-2021-1072

Advisories 27

References