diff options
| author | Ankur Tyagi <ankur.tyagi85@gmail.com> | 2025-10-29 00:32:45 +1300 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@intel.com> | 2025-10-30 14:43:34 +0800 |
| commit | 73e3b3c308465de94293ca477f11dfb5d893cf49 (patch) | |
| tree | f492dbe840904109b8a311c4ced20bba365764c2 /meta-oe/recipes-support | |
| parent | 547d4e1daeb39573e003b16c4a4f1e4271d2d159 (diff) | |
| download | meta-openembedded-73e3b3c308465de94293ca477f11dfb5d893cf49.tar.gz | |
hdf5: patch CVE-2025-2924
Details https://nvd.nist.gov/vuln/detail/CVE-2025-2924
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta-oe/recipes-support')
| -rw-r--r-- | meta-oe/recipes-support/hdf5/files/CVE-2025-2924.patch | 37 | ||||
| -rw-r--r-- | meta-oe/recipes-support/hdf5/hdf5_1.14.4-3.bb | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/hdf5/files/CVE-2025-2924.patch b/meta-oe/recipes-support/hdf5/files/CVE-2025-2924.patch new file mode 100644 index 0000000000..1a9185dd66 --- /dev/null +++ b/meta-oe/recipes-support/hdf5/files/CVE-2025-2924.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | From 3a6f6c1f57c09281d4a9d11a1ae809fd21b666dd Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Glenn Song <43005495+glennsong09@users.noreply.github.com> | ||
| 3 | Date: Mon, 15 Sep 2025 07:56:54 -0500 | ||
| 4 | Subject: [PATCH] Fixes heap-based buffer overflow in H5HL__fl_deserialize by adding an overflow check. | ||
| 5 | |||
| 6 | CVE: CVE-2025-2924 | ||
| 7 | Upstream-Status: Backport [https://github.com/HDFGroup/hdf5/commit/0a57195ca67d278f1cf7d01566c121048e337a59] | ||
| 8 | |||
| 9 | (cherry picked from commit 0a57195ca67d278f1cf7d01566c121048e337a59) | ||
| 10 | Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> | ||
| 11 | --- | ||
| 12 | src/H5HLcache.c | 5 +++++ | ||
| 13 | 1 file changed, 5 insertions(+) | ||
| 14 | |||
| 15 | diff --git a/src/H5HLcache.c b/src/H5HLcache.c | ||
| 16 | index d0836fe..7f412d2 100644 | ||
| 17 | --- a/src/H5HLcache.c | ||
| 18 | +++ b/src/H5HLcache.c | ||
| 19 | @@ -225,6 +225,7 @@ H5HL__fl_deserialize(H5HL_t *heap) | ||
| 20 | /* check arguments */ | ||
| 21 | assert(heap); | ||
| 22 | assert(!heap->freelist); | ||
| 23 | + HDcompile_assert(sizeof(hsize_t) == sizeof(uint64_t)); | ||
| 24 | |||
| 25 | /* Build free list */ | ||
| 26 | free_block = heap->free_block; | ||
| 27 | @@ -232,6 +233,10 @@ H5HL__fl_deserialize(H5HL_t *heap) | ||
| 28 | const uint8_t *image; /* Pointer into image buffer */ | ||
| 29 | |||
| 30 | /* Sanity check */ | ||
| 31 | + | ||
| 32 | + if (free_block > UINT64_MAX - (2 * heap->sizeof_size)) | ||
| 33 | + HGOTO_ERROR(H5E_HEAP, H5E_BADRANGE, FAIL, "decoded heap block address overflow"); | ||
| 34 | + | ||
| 35 | if ((free_block + (2 * heap->sizeof_size)) > heap->dblk_size) | ||
| 36 | HGOTO_ERROR(H5E_HEAP, H5E_BADRANGE, FAIL, "bad heap free list"); | ||
| 37 | |||
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 ca963fdc8f..6bc56f22cc 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 | |||
| @@ -19,6 +19,7 @@ SRC_URI = " \ | |||
| 19 | file://CVE-2025-2914.patch \ | 19 | file://CVE-2025-2914.patch \ |
| 20 | file://CVE-2025-2915.patch \ | 20 | file://CVE-2025-2915.patch \ |
| 21 | file://CVE-2025-2923-CVE-2025-6816-CVE-2025-6856.patch \ | 21 | file://CVE-2025-2923-CVE-2025-6816-CVE-2025-6856.patch \ |
| 22 | file://CVE-2025-2924.patch \ | ||
| 22 | " | 23 | " |
| 23 | SRC_URI[sha256sum] = "019ac451d9e1cf89c0482ba2a06f07a46166caf23f60fea5ef3c37724a318e03" | 24 | SRC_URI[sha256sum] = "019ac451d9e1cf89c0482ba2a06f07a46166caf23f60fea5ef3c37724a318e03" |
| 24 | 25 | ||
