From: Ankur Tyagi <[email protected]>

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

Signed-off-by: Ankur Tyagi <[email protected]>
---
 .../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 --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 <[email protected]>
+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 <[email protected]>
+---
+ 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"
 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#121855): 
https://lists.openembedded.org/g/openembedded-devel/message/121855
Mute This Topic: https://lists.openembedded.org/mt/116354280/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to