diff --git a/meta-oe/recipes-support/imagemagick/files/CVE-2025-43965.patch b/meta-oe/recipes-support/imagemagick/files/CVE-2025-43965.patch new file mode 100644 index 0000000000..385536957f --- /dev/null +++ b/meta-oe/recipes-support/imagemagick/files/CVE-2025-43965.patch @@ -0,0 +1,21 @@ +From bac413a26073923d3ffb258adaab07fb3fe8fdc9 Mon Sep 17 00:00:00 2001 +From: Dirk Lemstra +Date: Sat, 8 Feb 2025 23:31:39 +0100 + +Subject: [PATCH] imagemagick: Fix CVE-2025-43965 +CVE: CVE-2025-43965 +Upstream-Status: Backport [https://github.com/ImageMagick/ImageMagick/commit/bac413a26073923d3ffb258adaab07fb3fe8fdc9] +Signed-off-by: Nitin Wankhade +=== +diff --git a/coders/miff.c b/coders/miff.c +index 21b91d0..91bd36a 100644 +--- a/coders/miff.c ++++ b/coders/miff.c +@@ -1307,6 +1307,7 @@ static Image *ReadMIFFImage(const ImageInfo *image_info, + if (quantum_format != UndefinedQuantumFormat) + { + status=SetQuantumFormat(image,quantum_info,quantum_format); ++ image->depth=quantum_info->depth; + if (status == MagickFalse) + ThrowMIFFException(ResourceLimitError,"MemoryAllocationFailed"); + } diff --git a/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb b/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb index 81f4596456..c4e48b4bbe 100644 --- a/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb +++ b/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb @@ -48,6 +48,7 @@ SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=htt file://CVE-2022-1115.patch \ file://CVE-2025-65955.patch \ file://CVE-2025-62171.patch \ + file://CVE-2025-43965.patch \ " SRCREV = "35b4991eb0939a327f3489988c366e21068b0178"