Description
The ldb_wildcard_compare function in ldb_match.c in ldb before 1.1.24, as used in the AD LDAP server in Samba 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3, mishandles certain zero values, which allows remote attackers to cause a denial of service (infinite loop) via crafted packets.
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.1.22+dfsg-1 | — |
| Debian 13 | samba | 2:4.1.22+dfsg-1 | — |
| Debian 12 | samba | 2:4.1.22+dfsg-1 | — |
| Debian 8 | samba | 2:4.1.17+dfsg-2+deb8u1 | DSA-3433-1 |
| Debian 7 | samba | 2:3.6.6-6+deb7u6 | DSA-3433-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | ldb | 2:1.1.24-1ubuntu1 | — |
| Ubuntu 16.04 LTS | samba | 2:4.3.3+dfsg-1ubuntu1 | — |
| Ubuntu 14.04 LTS | ldb | 1:1.1.16-1ubuntu0.1 | USN-2856-1 |
| Ubuntu 14.04 LTS | samba | 2:4.1.6+dfsg-1ubuntu2.14.04.11 | USN-2855-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | pyldb +4 | 1.1.20-1.el7_2.2 | RHSA-2016:0009 |
| RHEL 6 | pyldb +4 | 1.1.13-3.el6_7.1 | RHSA-2016:0009 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Gluster Storage 3 | pyldb +4 | 1.1.20-3.el6rhs | RHSA-2016:0014 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | ldb | 1.1.24-4.1 | SUSE-SU-2015:2305-1 |
| SLES 12 SP1 | samba | 4.2.4-6.1 | SUSE-SU-2015:2305-1 |
| SLES 12 SP1 | talloc | 2.1.5-4.1 | SUSE-SU-2015:2305-1 |
| SLES 12 SP1 | tdb | 1.3.8-4.1 | SUSE-SU-2015:2305-1 |
| SLES 12 SP1 | tevent | 0.9.26-4.1 | SUSE-SU-2015:2305-1 |
| SLES 12 | ldb | 1.1.24-4.3.1 | SUSE-SU-2015:2304-1 |
| SLES 12 | samba | 4.1.12-18.3.1 | SUSE-SU-2015:2304-1 |
| SLES 12 | talloc | 2.1.5-3.4.1 | SUSE-SU-2015:2304-1 |
| SLES 12 | tdb | 1.3.8-2.3.1 | SUSE-SU-2015:2304-1 |
| SLES 12 | tevent | 0.9.26-3.3.1 | SUSE-SU-2015:2304-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP1 | ldb | 1.1.24-4.1 | SUSE-SU-2015:2305-1 |
| SLES for SAP 12 SP1 | samba | 4.2.4-6.1 | SUSE-SU-2015:2305-1 |
| SLES for SAP 12 SP1 | talloc | 2.1.5-4.1 | SUSE-SU-2015:2305-1 |
| SLES for SAP 12 SP1 | tdb | 1.3.8-4.1 | SUSE-SU-2015:2305-1 |
| SLES for SAP 12 SP1 | tevent | 0.9.26-4.1 | SUSE-SU-2015:2305-1 |
| SLES for SAP 12 | ldb | 1.1.24-4.3.1 | SUSE-SU-2015:2304-1 |
| SLES for SAP 12 | samba | 4.1.12-18.3.1 | SUSE-SU-2015:2304-1 |
| SLES for SAP 12 | talloc | 2.1.5-3.4.1 | SUSE-SU-2015:2304-1 |
| SLES for SAP 12 | tdb | 1.3.8-2.3.1 | SUSE-SU-2015:2304-1 |
| SLES for SAP 12 | tevent | 0.9.26-3.3.1 | SUSE-SU-2015:2304-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ldb | 1.1.27-1.1 | openSUSE-SU-2024:10074-1 |
| openSUSE Tumbleweed | samba | 4.5.0-1.1 | openSUSE-SU-2024:10069-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | pyldb +4 | 1.1.20-1.el7_2.2 | ELSA-2016-0009 |
| Oracle Linux 7 | samba +23 | 4.2.3-11.el7_2 | ELSA-2016-0006 |
Advisories 12
- WID-SEC-2026-3111 Samba: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 31, 2026
- RHSA-2016:0014 Red Hat Security Advisory: libldb security update Red Hat Security Advisories (RHSA) · Jun 27, 2026
- RHSA-2016:0009 Red Hat Security Advisory: libldb security update Red Hat Security Advisories (RHSA) · Jun 27, 2026
- USN-2855-1 samba vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- USN-2856-1 ldb vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-3433-1 samba - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10074-1 ldb-tools-1.1.27-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2015:2304-1 Security update for ldb, samba, talloc, tdb, tevent SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10069-1 ctdb-4.5.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2015:2305-1 Security update for ldb, samba, talloc, tdb, tevent SUSE / openSUSE Security Updates · May 2, 2025
- ELSA-2016-0009 Moderate: libldb security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jan 7, 2016
- ELSA-2016-0006 Moderate: samba security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jan 7, 2016
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1290287
- FEDORA-2015-0e0879cc8a vendor-advisory
- openSUSE-SU-2016:1064 vendor-advisory
- USN-2855-2 vendor-advisory
- https://www.samba.org/samba/security/CVE-2015-3223.html
- USN-2856-1 vendor-advisory
- SUSE-SU-2015:2304 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- SUSE-SU-2015:2305 vendor-advisory
- 79731 vdb-entry
- https://git.samba.org/?p=samba.git%3Ba=commit%3Bh=ec504dbf69636a554add1f3d5703dd6c3ad450b8
- openSUSE-SU-2015:2354 vendor-advisory
- FEDORA-2015-b36076d32e vendor-advisory
- 1034493 vdb-entry
- DSA-3433 vendor-advisory
- https://git.samba.org/?p=samba.git%3Ba=commit%3Bh=aa6c27148b9d3f8c1e4fdd5dd46bfecbbd0ca465
- GLSA-201612-47 vendor-advisory
- USN-2855-1 vendor-advisory
- openSUSE-SU-2015:2356 vendor-advisory