diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-12-24 20:34:30 +0100 |
|---|---|---|
| committer | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-12-25 10:17:02 +0100 |
| commit | 4eae56f5d0d827bc6097c47f933c94576a965432 (patch) | |
| tree | 419e81c92b7e188f531fc2b8ce31ce443c563648 /meta-oe | |
| parent | 4ac316bf47260fa7b6bfba546dd38e02f9440d4b (diff) | |
| download | meta-openembedded-4eae56f5d0d827bc6097c47f933c94576a965432.tar.gz | |
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
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-support/imagemagick/files/CVE-2022-1115.patch | 25 | ||||
| -rw-r--r-- | meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/imagemagick/files/CVE-2022-1115.patch b/meta-oe/recipes-support/imagemagick/files/CVE-2022-1115.patch new file mode 100644 index 0000000000..51a441cfe3 --- /dev/null +++ b/meta-oe/recipes-support/imagemagick/files/CVE-2022-1115.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | From 0d8ca198fd90d882e524a3bc2eed55aff5c737c1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Cristy <urban-warrior@imagemagick.org> | ||
| 3 | Date: Tue, 22 Mar 2022 20:11:27 -0400 | ||
| 4 | Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/4974 | ||
| 5 | |||
| 6 | CVE: CVE-2022-1115 | ||
| 7 | Upstream-Status: Backport [https://github.com/ImageMagick/ImageMagick6/commit/1f860f52bd8d58737ad883072203391096b30b51] | ||
| 8 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 9 | --- | ||
| 10 | coders/tiff.c | 2 +- | ||
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 12 | |||
| 13 | diff --git a/coders/tiff.c b/coders/tiff.c | ||
| 14 | index d8e9a8953..c3767c8c3 100644 | ||
| 15 | --- a/coders/tiff.c | ||
| 16 | +++ b/coders/tiff.c | ||
| 17 | @@ -1993,7 +1993,7 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, | ||
| 18 | number_pixels=(MagickSizeType) columns*rows; | ||
| 19 | if (HeapOverflowSanityCheck(rows,sizeof(*tile_pixels)) != MagickFalse) | ||
| 20 | ThrowTIFFException(ResourceLimitError,"MemoryAllocationFailed"); | ||
| 21 | - extent=TIFFTileSize(tiff); | ||
| 22 | + extent=4*MagickMax(rows*TIFFTileRowSize(tiff),TIFFTileSize(tiff)); | ||
| 23 | #if defined(TIFF_VERSION_BIG) | ||
| 24 | extent+=columns*sizeof(uint64); | ||
| 25 | #else | ||
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 0b2eeb2ad4..350b504400 100644 --- a/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb +++ b/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb | |||
| @@ -45,6 +45,7 @@ SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=htt | |||
| 45 | file://0011-ImageMagick-Add-support-patch-2-to-fix-CVE-2023-3415.patch \ | 45 | file://0011-ImageMagick-Add-support-patch-2-to-fix-CVE-2023-3415.patch \ |
| 46 | file://0011-ImageMagick-Add-support-patch-3-to-fix-CVE-2023-3415.patch \ | 46 | file://0011-ImageMagick-Add-support-patch-3-to-fix-CVE-2023-3415.patch \ |
| 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 | " | 49 | " |
| 49 | 50 | ||
| 50 | SRCREV = "35b4991eb0939a327f3489988c366e21068b0178" | 51 | SRCREV = "35b4991eb0939a327f3489988c366e21068b0178" |
