https://bugs.openldap.org/show_bug.cgi?id=10522
Issue ID: 10522 Summary: Heap-buffer-overflow in mdb_cursor_last Product: LMDB Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: liblmdb Assignee: bugs@openldap.org Reporter: renault.cle@gmail.com Target Milestone: ---
Created attachment 1155 --> https://bugs.openldap.org/attachment.cgi?id=1155&action=edit Reproducer for a heap-buffer-overflow
Hello,
I was fuzzing a bit LMDB on my personnal time and found memory issue. I attached the reproducer. It is only reproducible when compiled with ASan/UBSan (-fsanitize=address,undefined) on macOS and you can get a segfault on Linux (6.1.0-44-amd64, Debian 6.1.164-1).
The issue appears in the mdb_cursor_last function line 8257 on commit 7bcb4d05da7cf1546133baf51178e5e1b53cdd53 from branch mdb.RE/1.0.
Thank you for your help, Have a nice day
PS: I cannot specify the right version in the version list. PS2: I get a 401 Authorization Required when I try to connect through GitHub from Arc Browser.
https://bugs.openldap.org/show_bug.cgi?id=10522
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #1 from Howard Chu hyc@openldap.org --- Fixed in git.
https://bugs.openldap.org/show_bug.cgi?id=10522
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@openldap.org |hyc@openldap.org Target Milestone|--- |1.0.0 Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=10522
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- mdb.RE/1.0:
• 6e866d92 by Howard Chu at 2026-06-10T20:34:05+01:00 ITS#10521 LMDB: fix mdb_txn_begin
• 7bcb4d05 by Howard Chu at 2026-06-10T20:42:25+01:00 ITS#10521 LMDB: more for prev commit
mdb.master3:
• 962f072a by Howard Chu at 2026-06-10T20:32:41+01:00 ITS#10521 LMDB: fix mdb_txn_begin
• a06bcbbd by Howard Chu at 2026-06-10T20:42:09+01:00 ITS#10521 LMDB: more for prev commit
https://bugs.openldap.org/show_bug.cgi?id=10522
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.0.0 |0.9.36
https://bugs.openldap.org/show_bug.cgi?id=10522
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- mdb.RE/0.9:
• da837d2d by Howard Chu at 2026-06-13T23:48:30+01:00 ITS#10522 LMDB: reject 0-length values in DUPSORT DBs
https://bugs.openldap.org/show_bug.cgi?id=10522
--- Comment #4 from Quanah Gibson-Mount quanah@openldap.org --- mdb.master:
• 18969b53 by Howard Chu at 2026-06-13T23:48:17+01:00 ITS#10522 LMDB: reject 0-length values in DUPSORT DBs
https://bugs.openldap.org/show_bug.cgi?id=10522
--- Comment #5 from Quanah Gibson-Mount quanah@openldap.org --- mdb.RE/1.0:
• a2d9ea1f by Howard Chu at 2026-06-12T15:12:32+01:00 ITS#10522 LMDB: reject 0-length values in DUPSORT DBs
mdb.master3:
• a67cd63a by Howard Chu at 2026-06-12T15:12:00+01:00 ITS#10522 LMDB: reject 0-length values in DUPSORT DBs
https://bugs.openldap.org/show_bug.cgi?id=10522
--- Comment #6 from Quanah Gibson-Mount quanah@openldap.org --- mdb.RE/1.0:
• 16d65e34 by Howard Chu at 2026-06-24T21:19:58+01:00 ITS#10522 lmdb: fix prev commit
* f1a8d69e by Howard Chu ITS#10522 lmdb: cleanup again
mdb.master3:
• 704dc702 by Howard Chu at 2026-06-24T21:19:33+01:00 ITS#10522 lmdb: fix prev commit
* 7ed58053 by Howard Chu ITS#10522 lmdb: cleanup again
mdb.RE/0.9:
• e0451734 by Howard Chu at 2026-06-24T21:20:53+01:00 ITS#10522 lmdb: fix prev comm
* 4d6bfbe7
by Howard Chu ITS#10522 lmdb: cleanup again
https://bugs.openldap.org/show_bug.cgi?id=10522
--- Comment #7 from Quanah Gibson-Mount quanah@openldap.org --- mdb.master:
• 0c8b9473 by Howard Chu at 2026-06-24T21:21:29+01:00 ITS#10522 lmdb: fix prev commit
* a76084d1
by Howard Chu ITS#10522 lmdb: cleanup again
https://bugs.openldap.org/show_bug.cgi?id=10522
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED