diff options
| -rw-r--r-- | meta-oe/recipes-support/imagemagick/files/CVE-2025-62171.patch | 26 | ||||
| -rw-r--r-- | meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/imagemagick/files/CVE-2025-62171.patch b/meta-oe/recipes-support/imagemagick/files/CVE-2025-62171.patch new file mode 100644 index 0000000000..7b6012657e --- /dev/null +++ b/meta-oe/recipes-support/imagemagick/files/CVE-2025-62171.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | From 12e9e846c20e8429940c1aab01ca8ffb9067bed0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Dirk Lemstra <dirk@lemstra.org> | ||
| 3 | Date: Sun, 12 Oct 2025 20:43:14 +0200 | ||
| 4 | Subject: [PATCH] Added extra check to resolve issue on 32-bit systems | ||
| 5 | (https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9pp9-cfwx-54rm) | ||
| 6 | |||
| 7 | CVE: CVE-2025-62171 | ||
| 8 | Upstream-Status: Backport [https://github.com/ImageMagick/ImageMagick/commit/cea1693e2ded51b4cc91c70c54096cbed1691c00] | ||
| 9 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 10 | --- | ||
| 11 | coders/bmp.c | 2 ++ | ||
| 12 | 1 file changed, 2 insertions(+) | ||
| 13 | |||
| 14 | diff --git a/coders/bmp.c b/coders/bmp.c | ||
| 15 | index 37f54e7f8..26deb34fe 100644 | ||
| 16 | --- a/coders/bmp.c | ||
| 17 | +++ b/coders/bmp.c | ||
| 18 | @@ -976,6 +976,8 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception) | ||
| 19 | ThrowReaderException(CorruptImageError,"ImproperImageHeader"); | ||
| 20 | if (bmp_info.compression == BI_RLE4) | ||
| 21 | bmp_info.bits_per_pixel<<=1; | ||
| 22 | + if (BMPOverflowCheck(image->columns,bmp_info.bits_per_pixel) != MagickFalse) | ||
| 23 | + ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); | ||
| 24 | extent=image->columns*bmp_info.bits_per_pixel; | ||
| 25 | bytes_per_line=4*((extent+31)/32); | ||
| 26 | if (BMPOverflowCheck(bytes_per_line,image->rows) != MagickFalse) | ||
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 83e9ff2fd0..81f4596456 100644 --- a/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb +++ b/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb | |||
| @@ -47,6 +47,7 @@ SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=htt | |||
| 47 | file://0011-ImageMagick-Fix-CVE-2023-34151.patch \ | 47 | file://0011-ImageMagick-Fix-CVE-2023-34151.patch \ |
| 48 | file://CVE-2022-1115.patch \ | 48 | file://CVE-2022-1115.patch \ |
| 49 | file://CVE-2025-65955.patch \ | 49 | file://CVE-2025-65955.patch \ |
| 50 | file://CVE-2025-62171.patch \ | ||
| 50 | " | 51 | " |
| 51 | 52 | ||
| 52 | SRCREV = "35b4991eb0939a327f3489988c366e21068b0178" | 53 | SRCREV = "35b4991eb0939a327f3489988c366e21068b0178" |
