diff options
| author | Nitin Wankhade <nitin.wankhade333@gmail.com> | 2026-03-18 02:09:37 -0700 |
|---|---|---|
| committer | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-03-18 13:39:27 +0100 |
| commit | b091a7cc1266946b3dfc960c6969d16061da32d1 (patch) | |
| tree | 00f9a032e423a0270bb718fd2ea07b198c6af71b | |
| parent | 6afc673218cc023cae1a438b3945b2f12490eaa2 (diff) | |
| download | meta-openembedded-b091a7cc1266946b3dfc960c6969d16061da32d1.tar.gz | |
imagemagick: Fix CVE-2026-22770
Reference: https://github.com/ImageMagick/ImageMagick/commit/3e0330721020e0c5bb52e4b77c347527dd71658e
Signed-off-by: Nitin Wankhade <nitin.wankhade333@gmail.com>
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/imagemagick/files/CVE-2026-22770.patch | 37 | ||||
| -rw-r--r-- | meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/imagemagick/files/CVE-2026-22770.patch b/meta-oe/recipes-support/imagemagick/files/CVE-2026-22770.patch new file mode 100644 index 0000000000..f370d3eec5 --- /dev/null +++ b/meta-oe/recipes-support/imagemagick/files/CVE-2026-22770.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | From 3e0330721020e0c5bb52e4b77c347527dd71658e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Dirk Lemstra <dirk@lemstra.org> | ||
| 3 | Date: Sun, 4 Jan 2026 15:26:48 +0100y | ||
| 4 | |||
| 5 | Subject: [PATCH] imagemagick: Fix CVE-2026-22770 | ||
| 6 | CVE: CVE-2026-22770 | ||
| 7 | Upstream-Status: Backport [https://github.com/ImageMagick/ImageMagick/commit/3e0330721020e0c5bb52e4b77c347527dd71658e] | ||
| 8 | Signed-off-by: Nitin Wankhade <nitin.wankhade333@gmail.com> | ||
| 9 | === | ||
| 10 | diff --git a/MagickCore/effect.c b/MagickCore/effect.c | ||
| 11 | index bfb1363..3a44240 100644 | ||
| 12 | --- a/MagickCore/effect.c | ||
| 13 | +++ b/MagickCore/effect.c | ||
| 14 | @@ -880,16 +880,21 @@ static double **AcquireBilateralThreadSet(const size_t number_threads, | ||
| 15 | double | ||
| 16 | **weights; | ||
| 17 | |||
| 18 | + size_t | ||
| 19 | + count; | ||
| 20 | + | ||
| 21 | ssize_t | ||
| 22 | i; | ||
| 23 | |||
| 24 | + if (HeapOverflowSanityCheckGetSize(height,sizeof(**weights),&count) != MagickFalse) | ||
| 25 | + return((double **) NULL); | ||
| 26 | weights=(double **) AcquireQuantumMemory(number_threads+1,sizeof(*weights)); | ||
| 27 | if (weights == (double **) NULL) | ||
| 28 | return((double **) NULL); | ||
| 29 | - (void) memset(weights,0,number_threads*sizeof(*weights)); | ||
| 30 | + (void) memset(weights,0,(number_threads+1)*sizeof(*weights)); | ||
| 31 | for (i=0; i <= (ssize_t) number_threads; i++) | ||
| 32 | { | ||
| 33 | - weights[i]=(double *) AcquireQuantumMemory(width,height*sizeof(**weights)); | ||
| 34 | + weights[i]=(double *) AcquireQuantumMemory(width,count); | ||
| 35 | if (weights[i] == (double *) NULL) | ||
| 36 | return(DestroyBilateralThreadSet(number_threads,weights)); | ||
| 37 | } | ||
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 1afc8bbe2c..e235b9eb89 100644 --- a/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb +++ b/meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb | |||
| @@ -51,6 +51,7 @@ SRC_URI = "git://github.com/ImageMagick/ImageMagick.git;branch=main;protocol=htt | |||
| 51 | file://CVE-2025-43965.patch \ | 51 | file://CVE-2025-43965.patch \ |
| 52 | file://CVE-2025-66628.patch \ | 52 | file://CVE-2025-66628.patch \ |
| 53 | file://CVE-2025-68618.patch \ | 53 | file://CVE-2025-68618.patch \ |
| 54 | file://CVE-2026-22770.patch \ | ||
| 54 | " | 55 | " |
| 55 | 56 | ||
| 56 | SRCREV = "35b4991eb0939a327f3489988c366e21068b0178" | 57 | SRCREV = "35b4991eb0939a327f3489988c366e21068b0178" |
