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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | ldb | 1:1.1.24-0ubuntu0.14.04.2+esm1 | USN-4888-2 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | pyldb +4 | 1.5.4-2.amzn2 | ALAS2-2021-1628 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- WID-SEC-2026-3128 Samba: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Aug 31, 2026
- RHSA-2021:2786 Red Hat Security Advisory: libldb security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2021:2331 Red Hat Security Advisory: libldb security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2021:1214 Red Hat Security Advisory: libldb security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2021:1213 Red Hat Security Advisory: libldb security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2021:1197 Red Hat Security Advisory: libldb security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2021:1072 Red Hat Security Advisory: libldb security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- USN-4888-1 ldb vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- USN-4888-2 ldb vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4884-1 ldb - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2611-1 ldb - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2021:1444-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:0283-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11365-1 ctdb-4.14.6+git.182.2205d5224e3-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:0944-1 Security update for ldb SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0283-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:0945-1 Security update for ldb SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:0469-1 Security update for ldb SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:1440-1 Security update for ldb, samba SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:0636-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10911-1 ldb-tools-2.3.0-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:3187-1 Security update for samba SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:3187-1 Security update for samba SUSE / openSUSE Security Updates · May 7, 2025
- SUSE-SU-2021:1498-1 Security update for samba SUSE / openSUSE Security Updates · May 2, 2025
- ALAS2-2021-1628 Important: libldb security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Apr 21, 2021
- ELSA-2021-1197 Important: libldb security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Apr 14, 2021
- ELSA-2021-1072 Important: libldb security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Apr 8, 2021
References
- https://security.netapp.com/advisory/ntap-20210326-0007/
- FEDORA-2021-c2d8628d33 vendor-advisory
- [debian-lts-announce] 20210331 [SECURITY] [DLA 2611-1] ldb security update mailing-list
- DSA-4884 vendor-advisory
- FEDORA-2021-1a8e93a285 vendor-advisory
- FEDORA-2021-c93a3a5d3f vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1941402
- https://www.samba.org/samba/security/CVE-2021-20277.html
- GLSA-202105-22 vendor-advisory