Skip to content
OpenAdvisories
Medium · 4.6 CVE-2026-22185 EUVD-2026-1169GHSA-gcc9-wqf3-69qj

OpenLDAP LMDB mdb_load Heap Buffer Underflow in readline()

Published Jan 7, 2026 · Updated Oct 29, 2026 · Assigned by VulnCheck

Description

OpenLDAP Lightning Memory-Mapped Database (LMDB) versions 0.9.14 before 0.9.34, prior to commit 8e1fda8, contain a heap buffer underflow in the readline() function of mdb_load. When processing malformed input containing an embedded NUL byte, an unsigned offset calculation can underflow and cause an out-of-bounds read of one byte before the allocated heap buffer. This can cause mdb_load to crash, leading to a limited denial-of-service condition.

Affected products

VendorProductAffectedFixed
OpenLDAP Foundation OpenLDAP 0.9.14 – < 0.9.34 0.9.34

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 lmdb 0.9.35-1 —
Debian 14 openldap No fix yet —
Debian 13 lmdb +1 No fix yet —
Debian 12 lmdb +1 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 lmdb No fix yet —
Ubuntu 26.04 LTS lmdb No fix yet —
Ubuntu 25.10 lmdb No fix yet —
Ubuntu 24.04 LTS lmdb No fix yet —
Ubuntu 22.04 LTS lmdb No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS lmdb No fix yet —
Ubuntu 18.04 LTS lmdb No fix yet —
Ubuntu 16.04 LTS lmdb No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 openldap2_5 2.5.20+11-150500.11.38.1 SUSE-SU-2026:0256-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 openldap2_5 2.5.20+11-150500.11.38.1 SUSE-SU-2026:0256-1

Advisories 2

References