!193 [sync] PR-189: Fix CVE-2023-3428
From: @openeuler-sync-bot Reviewed-by: @wang--ge Signed-off-by: @wang--ge
This commit is contained in:
commit
5daca8fc09
25
CVE-2023-3428.patch
Normal file
25
CVE-2023-3428.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From a531d28e31309676ce8168c3b6dbbb5374b78790 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cristy <urban-warrior@imagemagick.org>
|
||||||
|
Date: Mon, 26 Jun 2023 19:38:12 -0400
|
||||||
|
Subject: [PATCH] heap-buffer-overflow in ImageMagick <= 7.1.1-12, contributed
|
||||||
|
by Hardik shah of Vehere (Dawn Treaders team)
|
||||||
|
|
||||||
|
Origin: https://github.com/ImageMagick/ImageMagick/commit/a531d28e31309676ce8168c3b6dbbb5374b78790
|
||||||
|
|
||||||
|
---
|
||||||
|
coders/tiff.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/coders/tiff.c b/coders/tiff.c
|
||||||
|
index 9e0d0b1201..df4274cacd 100644
|
||||||
|
--- a/coders/tiff.c
|
||||||
|
+++ b/coders/tiff.c
|
||||||
|
@@ -2010,7 +2010,7 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
|
||||||
|
number_pixels=(MagickSizeType) columns*rows;
|
||||||
|
if (HeapOverflowSanityCheck(rows,sizeof(*tile_pixels)) != MagickFalse)
|
||||||
|
ThrowTIFFException(ResourceLimitError,"MemoryAllocationFailed");
|
||||||
|
- extent=4*(samples_per_pixel+1)*MagickMax(rows*TIFFTileRowSize(tiff),
|
||||||
|
+ extent=4*(samples_per_pixel+1)*MagickMax((rows+1)*TIFFTileRowSize(tiff),
|
||||||
|
TIFFTileSize(tiff));
|
||||||
|
tile_pixels=(unsigned char *) AcquireQuantumMemory(extent,
|
||||||
|
sizeof(*tile_pixels));
|
||||||
@ -1,7 +1,7 @@
|
|||||||
Name: ImageMagick
|
Name: ImageMagick
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 7.1.1.8
|
Version: 7.1.1.8
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Create, edit, compose, or convert bitmap images
|
Summary: Create, edit, compose, or convert bitmap images
|
||||||
License: ImageMagick and MIT
|
License: ImageMagick and MIT
|
||||||
Url: http://www.imagemagick.org/
|
Url: http://www.imagemagick.org/
|
||||||
@ -9,6 +9,7 @@ Source0: https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1
|
|||||||
Patch0: CVE-2023-34151.patch
|
Patch0: CVE-2023-34151.patch
|
||||||
Patch1: CVE-2023-34153.patch
|
Patch1: CVE-2023-34153.patch
|
||||||
Patch2: CVE-2023-34474-and-CVE-2023-34475.patch
|
Patch2: CVE-2023-34474-and-CVE-2023-34475.patch
|
||||||
|
Patch3: CVE-2023-3428.patch
|
||||||
|
|
||||||
BuildRequires: bzip2-devel freetype-devel libjpeg-devel libpng-devel perl-generators
|
BuildRequires: bzip2-devel freetype-devel libjpeg-devel libpng-devel perl-generators
|
||||||
BuildRequires: libtiff-devel giflib-devel zlib-devel perl-devel >= 5.8.1 jbigkit-devel
|
BuildRequires: libtiff-devel giflib-devel zlib-devel perl-devel >= 5.8.1 jbigkit-devel
|
||||||
@ -163,6 +164,9 @@ rm PerlMagick/demo/Generic.ttf
|
|||||||
%{_libdir}/pkgconfig/ImageMagick*
|
%{_libdir}/pkgconfig/ImageMagick*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 24 2023 wangkai <13474090681@163.com> - 1:7.1.1.8-4
|
||||||
|
- Fix CVE-2023-3428
|
||||||
|
|
||||||
* Thu Jun 29 2023 wangkai <13474090681@163.com> - 1:7.1.1.8-3
|
* Thu Jun 29 2023 wangkai <13474090681@163.com> - 1:7.1.1.8-3
|
||||||
- Fix CVE-2023-34474 and CVE-2023-34475
|
- Fix CVE-2023-34474 and CVE-2023-34475
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user