Description
The ber_get_next function in libraries/liblber/io.c in OpenLDAP 2.4.42 and earlier allows remote attackers to cause a denial of service (reachable assertion and application crash) via crafted BER data, as demonstrated by an attack against slapd.
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 | openldap | 2.4.42+dfsg-2 | — |
| Debian 13 | openldap | 2.4.42+dfsg-2 | — |
| Debian 12 | openldap | 2.4.42+dfsg-2 | — |
| Debian 8 | openldap | 2.4.40+dfsg-1+deb8u1 | DSA-3356-1 |
| Debian 7 | openldap | 2.4.31-2+deb7u1 | DSA-3356-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | openldap | 2.4.23-7.3+deb6u2 | DLA-309-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | openldap | 2.4.31-1+nmu2ubuntu8.2 | USN-2742-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | openldap +4 | 2.4.39-7.ael7b_1 | RHSA-2015:1840 |
| RHEL 6 | openldap +4 | 2.4.40-6.el6_7 | RHSA-2015:1840 |
| RHEL 5 | compat-openldap | 2.3.43_2.2.29-29.el5_11 | RHSA-2015:1840 |
| RHEL 5 | openldap +5 | 2.3.43-29.el5_11 | RHSA-2015:1840 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | openldap2 | 2.4.41-18.13.4 | SUSE-SU-2016:0224-1 |
| SLES 12 SP1 | openldap2-client | 2.4.41-18.13.1 | SUSE-SU-2016:0224-1 |
| SLES 12 | openldap2 | 2.4.41-18.13.4 | SUSE-SU-2016:0224-1 |
| SLES 12 | openldap2-client | 2.4.41-18.13.1 | SUSE-SU-2016:0224-1 |
| SLES 11 SP4 | openldap2 +1 | 2.4.26-0.62.2 | SUSE-SU-2016:0090-1 |
| SLES 11 SP3 | openldap2 +1 | 2.4.26-0.62.2 | SUSE-SU-2016:0090-1 |
| SLES 11 | openldap2-client-openssl1 | 2.4.26-0.62.3 | SUSE-SU-2016:0090-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Studio Onsite 1.3 | openldap2-client | 2.4.26-0.17.23.1 | SUSE-SU-2016:0262-1 |
| SLES for SAP 12 SP1 | openldap2 | 2.4.41-18.13.4 | SUSE-SU-2016:0224-1 |
| SLES for SAP 12 SP1 | openldap2-client | 2.4.41-18.13.1 | SUSE-SU-2016:0224-1 |
| SLES for SAP 12 | openldap2 | 2.4.41-18.13.4 | SUSE-SU-2016:0224-1 |
| SLES for SAP 12 | openldap2-client | 2.4.41-18.13.1 | SUSE-SU-2016:0224-1 |
| SLES for SAP 11 SP4 | openldap2 +1 | 2.4.26-0.62.2 | SUSE-SU-2016:0090-1 |
| SLES for SAP 11 SP3 | openldap2 +1 | 2.4.26-0.62.2 | SUSE-SU-2016:0090-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | openldap2 | 1.2-22.1 | openSUSE-SU-2024:10012-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | compat-openldap | 2.3.43_2.2.29-29.el5_11 | ELSA-2015-1840 |
| Oracle Linux 7 | openldap +4 | 2.4.40-6.el6_7 | ELSA-2015-1840 |
| Oracle Linux 7 | openldap-servers-overlays | 2.3.43-29.el5_11 | ELSA-2015-1840 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- OpenLDAP 2.4.42 - ber_get_next Denial of Service EDB-38145 · dos · Sep 11, 2015
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 9
- RHSA-2015:1840 Red Hat Security Advisory: openldap security update Red Hat Security Advisories (RHSA) · Jun 27, 2026
- USN-2742-1 openldap vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-309-1 openldap - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3356-1 openldap - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2016:0090-1 Security update for openldap2 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10012-1 libldap-2_4-2-2.4.44-22.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:0224-1 Security update for openldap2 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:0262-1 Security update for openldap2 SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2015-1840 Important: openldap security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Sep 29, 2015
References
- 76714 vdb-entry
- http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html
- http://www.security-assessment.com/files/documents/advisory/OpenLDAP-ber_get_next-Denial-of-Service.pdf
- https://support.apple.com/HT205637
- openSUSE-SU-2016:0255 vendor-advisory
- SUSE-SU-2016:0224 vendor-advisory
- http://www.openldap.org/devel/gitweb.cgi?p=openldap.git%3Ba=commit%3Bh=6fe51a9ab04fd28bbc171da3cf12f1c1040d6629
- DSA-3356 vendor-advisory
- APPLE-SA-2015-12-08-3 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
- USN-2742-1 vendor-advisory
- http://www.openldap.org/its/index.cgi/Software%20Bugs?id=8240
- RHSA-2015:1840 vendor-advisory
- 1033534 vdb-entry
- openSUSE-SU-2016:0261 vendor-advisory
- SUSE-SU-2016:0262 vendor-advisory
- openSUSE-SU-2016:0226 vendor-advisory