diff mbox series

[meta-oe,scarthgap,4/5] hdf5: patch CVE-2025-2926

Message ID 20251118110320.1635988-4-ankur.tyagi85@gmail.com
State New
Headers show
Series [meta-oe,scarthgap,1/5] botan: patch CVE-2024-34703 | expand

Commit Message

Ankur Tyagi Nov. 18, 2025, 11:03 a.m. UTC
From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details https://nvd.nist.gov/vuln/detail/CVE-2025-2926

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../hdf5/files/CVE-2025-2926.patch            | 32 +++++++++++++++++++
 meta-oe/recipes-support/hdf5/hdf5_1.14.4-3.bb |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2025-2926.patch
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/hdf5/files/CVE-2025-2926.patch b/meta-oe/recipes-support/hdf5/files/CVE-2025-2926.patch
new file mode 100644
index 0000000000..c752de66e4
--- /dev/null
+++ b/meta-oe/recipes-support/hdf5/files/CVE-2025-2926.patch
@@ -0,0 +1,32 @@ 
+From 6680a7795b76d451ff17f193e5cdca7a86b01699 Mon Sep 17 00:00:00 2001
+From: bmribler <39579120+bmribler@users.noreply.github.com>
+Date: Mon, 3 Nov 2025 13:01:04 -0500
+Subject: [PATCH] Fix CVE-2025-2926 (#5841)
+
+An image size was corrupted and decoded as 0 resulting in a NULL image buffer,
+which caused a NULL pointer dereference when the image being copied to the buffer.
+The invalid image size was caught in the PR #5710.  This change catches right
+before the copying.
+
+Fixes GH issue #5384
+
+CVE: CVE-2025-2926
+Upstream-Status: Backport [https://github.com/HDFGroup/hdf5/commit/d37b537ff256f0fa65cb4f82b20f286ad9a2e1e2]
+(cherry picked from commit d37b537ff256f0fa65cb4f82b20f286ad9a2e1e2)
+Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
+---
+ src/H5Ocache.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/H5Ocache.c b/src/H5Ocache.c
+index 6916a9044c..9b82509812 100644
+--- a/src/H5Ocache.c
++++ b/src/H5Ocache.c
+@@ -610,6 +610,7 @@ H5O__cache_chk_get_initial_load_size(void *_udata, size_t *image_len)
+     assert(udata);
+     assert(udata->oh);
+     assert(image_len);
++    assert(udata->size);
+ 
+     /* Set the image length size */
+     *image_len = udata->size;
diff --git a/meta-oe/recipes-support/hdf5/hdf5_1.14.4-3.bb b/meta-oe/recipes-support/hdf5/hdf5_1.14.4-3.bb
index 80828ad30c..8a37323536 100644
--- a/meta-oe/recipes-support/hdf5/hdf5_1.14.4-3.bb
+++ b/meta-oe/recipes-support/hdf5/hdf5_1.14.4-3.bb
@@ -23,6 +23,7 @@  SRC_URI = " \
     file://CVE-2025-2925.patch \
     file://CVE-2025-6269-CVE-2025-6270-CVE-2025-6516_01.patch \
     file://CVE-2025-6269-CVE-2025-6270-CVE-2025-6516_02.patch \
+    file://CVE-2025-2926.patch \
 "
 SRC_URI[sha256sum] = "019ac451d9e1cf89c0482ba2a06f07a46166caf23f60fea5ef3c37724a318e03"