new file mode 100644
@@ -0,0 +1,21 @@
+From bac413a26073923d3ffb258adaab07fb3fe8fdc9 Mon Sep 17 00:00:00 2001
+From: Dirk Lemstra <dirk@lemstra.org>
+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 <nitin.wankhade333@gmail.com>
+===
+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");
+ }
@@ -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"
Reference: https://github.com/ImageMagick/ImageMagick/commit/bac413a26073923d3ffb258adaab07fb3fe8fdc9 Signed-off-by: Nitin Wankhade <nitin.wankhade333@gmail.com> --- .../imagemagick/files/CVE-2025-43965.patch | 21 +++++++++++++++++++ .../imagemagick/imagemagick_7.0.10.bb | 1 + 2 files changed, 22 insertions(+) create mode 100644 meta-oe/recipes-support/imagemagick/files/CVE-2025-43965.patch