imagemagick: patch CVE-2022-1115
PATCH 1/5 imagemagick: patch CVE-2022-1115
Details: https://nvd.nist.gov/vuln/detail/CVE-2022-1115
Pick the patch referenced in the NVD report.
Tested successfully against the PoC described in the related Github issue[1].
[1]: https://github.com/ImageMagick/ImageMagick/issues/4974
--- .../imagemagick/files/CVE-2022-1115.patch | 25 +++++++++++++++++++ .../imagemagick/imagemagick_7.0.10.bb | 1 + 2 files changed, 26 insertions(+) create mode 100644 meta-oe/recipes-support/imagemagick/files/CVE-2022-1115.patch
meta-oe/recipes-support/imagemagick/files/CVE-2022-1115.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 0d8ca198fd90d882e524a3bc2eed55aff5c737c1 Mon Sep 17 00:00:00 2001 +From: Cristy <[email protected]> +Date: Tue, 22 Mar 2022 20:11:27 -0400 +Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/4974 + +CVE: CVE-2022-1115 +Upstream-Status: Backport [https://github.com/ImageMagick/ImageMagick6/commit/1f860f52bd8d58737ad883072203391096b30b51] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + coders/tiff.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/coders/tiff.c b/coders/tiff.c +index d8e9a8953..c3767c8c3 100644 +--- a/coders/tiff.c ++++ b/coders/tiff.c +@@ -1993,7 +1993,7 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, + number_pixels=(MagickSizeType) columns*rows; + if (HeapOverflowSanityCheck(rows,sizeof(*tile_pixels)) != MagickFalse) + ThrowTIFFException(ResourceLimitError,"MemoryAllocationFailed"); +- extent=TIFFTileSize(tiff); ++ extent=4*MagickMax(rows*TIFFTileRowSize(tiff),TIFFTileSize(tiff)); + #if defined(TIFF_VERSION_BIG) + extent+=columns*sizeof(uint64); + #else
meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb +1 -0
@@ -45,6 +45,7 @@ SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=htt file://0011-ImageMagick-Add-support-patch-2-to-fix-CVE-2023-3415.patch \ file://0011-ImageMagick-Add-support-patch-3-to-fix-CVE-2023-3415.patch \ file://0011-ImageMagick-Fix-CVE-2023-34151.patch \ + file://CVE-2022-1115.patch \ " SRCREV = "35b4991eb0939a327f3489988c366e21068b0178"
PATCH 2/5 imagemagick: patch CVE-2025-65955
Details: https://nvd.nist.gov/vuln/detail/CVE-2025-65955
Pick the patch referenced by the NVD report.
--- .../imagemagick/files/CVE-2025-65955.patch | 25 +++++++++++++++++++ .../imagemagick/imagemagick_7.0.10.bb | 1 + 2 files changed, 26 insertions(+) create mode 100644 meta-oe/recipes-support/imagemagick/files/CVE-2025-65955.patch
meta-oe/recipes-support/imagemagick/files/CVE-2025-65955.patch new file +25 -0
@@ -0,0 +1,25 @@ +From f4e53579d8906c939e4169b9e14c5fe867e2b6b8 Mon Sep 17 00:00:00 2001 +From: Dirk Lemstra <[email protected]> +Date: Sun, 23 Nov 2025 09:17:29 +0100 +Subject: [PATCH] Correct incorrect free (GHSA-q3hc-j9x5-mp9m) + +CVE: CVE-2025-65955 +Upstream-Status: Backport [https://github.com/ImageMagick/ImageMagick/commit/6f81eb15f822ad86e8255be75efad6f9762c32f8] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + Magick++/lib/Options.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Magick++/lib/Options.cpp b/Magick++/lib/Options.cpp +index 9d2a5904b..14b06a724 100644 +--- a/Magick++/lib/Options.cpp ++++ b/Magick++/lib/Options.cpp +@@ -308,7 +308,7 @@ void Magick::Options::fontFamily(const std::string &family_) + { + if (family_.length() == 0) + { +- _drawInfo->family=(char *) RelinquishMagickMemory(_drawInfo->font); ++ _drawInfo->family=(char *) RelinquishMagickMemory(_drawInfo->family); + DestroyString(RemoveImageOption(imageInfo(),"family")); + } + else
meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb +1 -0
@@ -46,6 +46,7 @@ SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=htt file://0011-ImageMagick-Add-support-patch-3-to-fix-CVE-2023-3415.patch \ file://0011-ImageMagick-Fix-CVE-2023-34151.patch \ file://CVE-2022-1115.patch \ + file://CVE-2025-65955.patch \ " SRCREV = "35b4991eb0939a327f3489988c366e21068b0178"
PATCH 3/5 imagemagick: patch CVE-2025-62171
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2025-62171
Pick the patch that's mentioned in the nvd report.
--- .../imagemagick/files/CVE-2025-62171.patch | 26 +++++++++++++++++++ .../imagemagick/imagemagick_7.0.10.bb | 1 + 2 files changed, 27 insertions(+) create mode 100644 meta-oe/recipes-support/imagemagick/files/CVE-2025-62171.patch
meta-oe/recipes-support/imagemagick/files/CVE-2025-62171.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 12e9e846c20e8429940c1aab01ca8ffb9067bed0 Mon Sep 17 00:00:00 2001 +From: Dirk Lemstra <[email protected]> +Date: Sun, 12 Oct 2025 20:43:14 +0200 +Subject: [PATCH] Added extra check to resolve issue on 32-bit systems + (https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9pp9-cfwx-54rm) + +CVE: CVE-2025-62171 +Upstream-Status: Backport [https://github.com/ImageMagick/ImageMagick/commit/cea1693e2ded51b4cc91c70c54096cbed1691c00] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + coders/bmp.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/coders/bmp.c b/coders/bmp.c +index 37f54e7f8..26deb34fe 100644 +--- a/coders/bmp.c ++++ b/coders/bmp.c +@@ -976,6 +976,8 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception) + ThrowReaderException(CorruptImageError,"ImproperImageHeader"); + if (bmp_info.compression == BI_RLE4) + bmp_info.bits_per_pixel<<=1; ++ if (BMPOverflowCheck(image->columns,bmp_info.bits_per_pixel) != MagickFalse) ++ ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); + extent=image->columns*bmp_info.bits_per_pixel; + bytes_per_line=4*((extent+31)/32); + if (BMPOverflowCheck(bytes_per_line,image->rows) != MagickFalse)
meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb +1 -0
@@ -47,6 +47,7 @@ SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=htt file://0011-ImageMagick-Fix-CVE-2023-34151.patch \ file://CVE-2022-1115.patch \ file://CVE-2025-65955.patch \ + file://CVE-2025-62171.patch \ " SRCREV = "35b4991eb0939a327f3489988c366e21068b0178"
PATCH 4/5 zabbix: patch CVE-2025-49643
In reply to Gyorgy SarvariThe actual patch was identified by checking the file that was modified in the tag 6.0.42, and also by looking at the Jira item referenced by it:
the patch references DEV-4466, the same ID that is referenced in the Jira ticket[1] referenced by the NVD report (look in the "All Activity" tab).
[1]: https://support.zabbix.com/browse/ZBX-27284
--- .../zabbix/zabbix/CVE-2025-49643.patch | 38 +++++++++++++++++++ .../zabbix/zabbix_5.4.12.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-oe/recipes-connectivity/zabbix/zabbix/CVE-2025-49643.patch
meta-oe/recipes-connectivity/zabbix/zabbix/CVE-2025-49643.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 2fe5c1d761226d73fe49269eac96dcd99860efa6 Mon Sep 17 00:00:00 2001 +From: Ginta Berzina <[email protected]> +Date: Mon, 1 Sep 2025 14:10:12 +0300 +Subject: [PATCH] ..F....... [DEV-4466] fixed resource usage for image resize + +CVE: CVE-2025-49643 +Upstream-Status: Backport [https://github.com/zabbix/zabbix/commit/aeada86d3c8231e1e173c6a7ac19ea60bf899b86] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + ui/imgstore.php | 8 ++------ + 1 file changed, 2 insertions(+), 6 deletions(-) + +diff --git a/ui/imgstore.php b/ui/imgstore.php +index 38661f5..6a616df 100644 +--- a/ui/imgstore.php ++++ b/ui/imgstore.php +@@ -34,8 +34,8 @@ $fields = [ + 'css' => [T_ZBX_INT, O_OPT, P_SYS, null, null], + 'imageid' => [T_ZBX_STR, O_OPT, P_SYS, null, null], + 'iconid' => [T_ZBX_INT, O_OPT, P_SYS, DB_ID, null], +- 'width' => [T_ZBX_INT, O_OPT, P_SYS, BETWEEN(1, 2000), null], +- 'height' => [T_ZBX_INT, O_OPT, P_SYS, BETWEEN(1, 2000), null], ++ 'width' => [T_ZBX_INT, O_OPT, P_SYS, BETWEEN(1, 200), null], ++ 'height' => [T_ZBX_INT, O_OPT, P_SYS, BETWEEN(1, 200), null], + 'unavailable' => [T_ZBX_INT, O_OPT, null, IN([0, 1]), null] + ]; + check_fields($fields); +@@ -58,10 +58,6 @@ if (isset($_REQUEST['css'])) { + foreach ($images as $image) { + $image['image'] = base64_decode($image['image']); + $ico = imagecreatefromstring($image['image']); +- +- if ($resize) { +- $ico = imageThumb($ico, $width, $height); +- } + $w = imagesx($ico); + $h = imagesy($ico); +
meta-oe/recipes-connectivity/zabbix/zabbix_5.4.12.bb +1 -0
@@ -34,6 +34,7 @@ SRC_URI = "https://cdn.zabbix.com/zabbix/sources/oldstable/5.4/${BPN}-${PV}.tar. file://CVE-2023-32726.patch \ file://CVE-2023-32727_0001.patch \ file://CVE-2023-32727_0002.patch \ + file://CVE-2025-49643.patch \ " SRC_URI[md5sum] = "f295fd2df86143d72f6ff26e47d9e39e"
PATCH 5/5 libmediaart-2.0: upgrade 1.9.6 -> 1.9.7
In reply to Gyorgy SarvariThis is a bugfix release, fixing some memory leaks and compiler warning (and it also has a couple of commits related to the project's own CI system, which doesn't affect the application)
Changelog: https://gitlab.gnome.org/GNOME/libmediaart/-/blob/master/NEWS
---
.../{libmediaart-2.0_1.9.6.bb => libmediaart-2.0_1.9.7.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-multimedia/recipes-support/libmediaart/{libmediaart-2.0_1.9.6.bb => libmediaart-2.0_1.9.7.bb} (90%)meta-multimedia/recipes-support/libmediaart/libmediaart-2.0_1.9.7.bb renamed from meta-multimedia/recipes-support/libmediaart/libmediaart-2.0_1.9.6.bb +1 -1
@@ -12,7 +12,7 @@ GNOMEBASEBUILDCLASS = "meson" inherit gnomebase gobject-introspection vala features_check SRC_URI = "${GNOME_MIRROR}/libmediaart/1.9/libmediaart-${PV}.tar.xz" -SRC_URI[sha256sum] = "c3bc5025d7db380587f9c8eb800c611f6b5a16d6b4b78fcff93f62876a677f17" +SRC_URI[sha256sum] = "2b43dd9f54f0d8d0b89e2addb83341ab06d7b98cb1b2e704383584af9c560f6b" S = "${WORKDIR}/libmediaart-${PV}"