diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-03-08 15:20:53 +0100 |
|---|---|---|
| committer | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-03-08 15:23:50 +0100 |
| commit | 0cf1cbb6f75da3bb5c5b8e2aca10207885d8bb6e (patch) | |
| tree | 15cdc90b579c3e1178f17ab0f1d9e0e96577008f /meta-oe | |
| parent | 6d6d36409cbcc28c1b5cf77b40bae0157294a98d (diff) | |
| download | meta-openembedded-0cf1cbb6f75da3bb5c5b8e2aca10207885d8bb6e.tar.gz | |
lmdb: patch CVE-2026-22185
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-22185
Pick the patch that is mentioned as a solution in the related upstream bug[1].
[1]: https://bugs.openldap.org/show_bug.cgi?id=10421
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-dbs/lmdb/files/CVE-2026-22185.patch | 29 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-dbs/lmdb/files/CVE-2026-22185.patch b/meta-oe/recipes-dbs/lmdb/files/CVE-2026-22185.patch new file mode 100644 index 0000000000..c5a44d179e --- /dev/null +++ b/meta-oe/recipes-dbs/lmdb/files/CVE-2026-22185.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From 145cff10d8ce9adbd0bee07447e103680081c297 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Howard Chu <hyc@openldap.org> | ||
| 3 | Date: Tue, 6 Jan 2026 20:52:25 +0000 | ||
| 4 | Subject: [PATCH] ITS#10421 mdb_load: check for malicious input | ||
| 5 | |||
| 6 | CVE: CVE-2026-22185 | ||
| 7 | Upstream-Status: Backport [https://github.com/LMDB/lmdb/commit/8e1fda85532a3c74276df38a42d234dcdfa1e40d] | ||
| 8 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 9 | --- | ||
| 10 | libraries/liblmdb/mdb_load.c | 6 ++++++ | ||
| 11 | 1 file changed, 6 insertions(+) | ||
| 12 | |||
| 13 | diff --git a/libraries/liblmdb/mdb_load.c b/libraries/liblmdb/mdb_load.c | ||
| 14 | index d2a3cec..7eccf40 100644 | ||
| 15 | --- a/libraries/liblmdb/mdb_load.c | ||
| 16 | +++ b/libraries/liblmdb/mdb_load.c | ||
| 17 | @@ -208,6 +208,12 @@ badend: | ||
| 18 | |||
| 19 | c1 = buf->mv_data; | ||
| 20 | len = strlen((char *)c1); | ||
| 21 | + if (!len) { | ||
| 22 | + /* This can only happen with an intentionally invalid input | ||
| 23 | + * with a NUL byte after the leading SPACE | ||
| 24 | + */ | ||
| 25 | + goto badend; | ||
| 26 | + } | ||
| 27 | l2 = len; | ||
| 28 | |||
| 29 | /* Is buffer too short? */ | ||
diff --git a/meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb b/meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb index a76d388d70..531ec045d1 100644 --- a/meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb +++ b/meta-oe/recipes-dbs/lmdb/lmdb_0.9.29.bb | |||
| @@ -12,6 +12,7 @@ SRC_URI = "git://github.com/LMDB/lmdb.git;nobranch=1;protocol=https \ | |||
| 12 | file://run-ptest \ | 12 | file://run-ptest \ |
| 13 | file://0001-Makefile-use-libprefix-instead-of-libdir.patch \ | 13 | file://0001-Makefile-use-libprefix-instead-of-libdir.patch \ |
| 14 | file://0001-make-set-soname-on-liblmdb.patch;patchdir=../.. \ | 14 | file://0001-make-set-soname-on-liblmdb.patch;patchdir=../.. \ |
| 15 | file://CVE-2026-22185.patch;patchdir=../.. \ | ||
| 15 | " | 16 | " |
| 16 | 17 | ||
| 17 | SRCREV = "8ad7be2510414b9506ec9f9e24f24d04d9b04a1a" | 18 | SRCREV = "8ad7be2510414b9506ec9f9e24f24d04d9b04a1a" |
