package/graphicsmagick: add CVE-2008-6621 to IGNORE_CVES
PATCH 1/4 package/graphicsmagick: add CVE-2008-6621 to IGNORE_CVES
This vulnerability match on every version of graphicsmagick. Since it's really old it's unlikely it will be updated and is thus added to IGNORE_CVES. See [1].
[1] https://nvd.nist.gov//vuln/detail/CVE-2008-6621
--- package/graphicsmagick/graphicsmagick.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/graphicsmagick/graphicsmagick.mk +4 -0
@@ -11,6 +11,10 @@ GRAPHICSMAGICK_LICENSE = MIT GRAPHICSMAGICK_LICENSE_FILES = Copyright.txt GRAPHICSMAGICK_CPE_ID_VENDOR = graphicsmagick +# Wrong NVD annotations +# Fixed in version 1.2.3 +GRAPHICSMAGICK_IGNORE_CVES += CVE-2008-6621 + # 0001-ReadJXLImage-Apply-image-dimension-resource-limits.patch GRAPHICSMAGICK_IGNORE_CVES += CVE-2025-27795
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/4 package/graphicsmagick: add CVE-2007-0770 to IGNORE_CVES
This vulnerability match on every version of graphicsmagick [1]. It was issued because of an incomplete patch for CVE-2006-5456 and has been since remediated [2].
Since it's really old it's unlikely it will be updated and is thus added to IGNORE_CVES.
[1] https://nvd.nist.gov//vuln/detail/CVE-2007-0770
[2] https://bugzilla.redhat.com/show_bug.cgi?id=210921#c5
--- package/graphicsmagick/graphicsmagick.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/graphicsmagick/graphicsmagick.mk +5 -0
@@ -15,6 +15,11 @@ GRAPHICSMAGICK_CPE_ID_VENDOR = graphicsmagick # Fixed in version 1.2.3 GRAPHICSMAGICK_IGNORE_CVES += CVE-2008-6621 +# Wrong NVD annotations englobbing all versions +# Wrong patch for CVE-2006-5456 later updated +# https://bugzilla.redhat.com/show_bug.cgi?id=210921#c5 +GRAPHICSMAGICK_IGNORE_CVES += CVE-2007-0770 + # 0001-ReadJXLImage-Apply-image-dimension-resource-limits.patch GRAPHICSMAGICK_IGNORE_CVES += CVE-2025-27795
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedRe: [Buildroot] [PATCH 2/4] package/graphicsmagick: add CVE-2007-0770 to IGNORE_CVES
In reply of:
Quoted 11 lines
This vulnerability match on every version of graphicsmagick [1]. It was issued because of an incomplete patch for CVE-2006-5456 and has been since remediated [2].
Since it's really old it's unlikely it will be updated and is thus added to
IGNORE_CVES.[1] https://nvd.nist.gov//vuln/detail/CVE-2007-0770
[2] https://bugzilla.redhat.com/show_bug.cgi?id=210921#c5Signed-off-by Thomas Perale <[email protected]>
Applied to 2025.02.x & 2025.11.x. Thanks
Quoted 27 lines
--- package/graphicsmagick/graphicsmagick.mk | 5 +++++ 1 file changed, 5 insertions(+)package/graphicsmagick/graphicsmagick.mk +5
-0@@ -15,6 +15,11 @@ GRAPHICSMAGICK_CPE_ID_VENDOR = graphicsmagick # Fixed in version 1.2.3 GRAPHICSMAGICK_IGNORE_CVES += CVE-2008-6621 +# Wrong NVD annotations englobbing all versions +# Wrong patch for CVE-2006-5456 later updated +# https://bugzilla.redhat.com/show_bug.cgi?id=210921#c5 +GRAPHICSMAGICK_IGNORE_CVES += CVE-2007-0770 + # 0001-ReadJXLImage-Apply-image-dimension-resource-limits.patch GRAPHICSMAGICK_IGNORE_CVES += CVE-2025-27795Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/4 package/graphicsmagick: add patch for CVE-2025-27796
In reply to Thomas Perale via buildrootFixes the following vulnerability:
- CVE-2025-27796:
ReadWPGImage in WPG in GraphicsMagick before 1.3.46 mishandles palette buffer allocation, resulting in out-of-bounds access to heap memory in ReadBlob.
For more information, see
- https://www.cve.org/CVERecord?id=CVE-2025-27796
- https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/883ebf8cae6dfa5873d975fe3476b1a188ef3
--- ...er-is-allocated-and-the-current-size.patch | 55 +++++++++++++++++++ package/graphicsmagick/graphicsmagick.mk | 3 + 2 files changed, 58 insertions(+) create mode 100644 package/graphicsmagick/0003-Assure-that-palette-buffer-is-allocated-and-the-current-size.patch
package/graphicsmagick/0003-Assure-that-palette-buffer-is-allocated-and-the-current-size.patch new file +55 -0
@@ -0,0 +1,55 @@ +# HG changeset patch +# User Bob Friesenhahn <[email protected]> +# Date 1734634653 21600 +# Thu Dec 19 12:57:33 2024 -0600 +# Node ID 883ebf8cae6dfa5873d975fe3476b1a188ef3f9f +# Parent cf7cd5ebabb0ca40204de7539f4fb9ae02121958 +ReadWPGImage(): Assure that palette buffer is allocated and the current size. + +CVE: CVE-2025-27796 +Upstream: https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/883ebf8cae6dfa5873d975fe3476b1a188ef3f9f +[thomas: remove changelog and binary] +Signed-off-by: Thomas Perale <[email protected]> + +diff --git a/coders/wpg.c b/coders/wpg.c +--- a/coders/wpg.c ++++ b/coders/wpg.c +@@ -1704,28 +1704,23 @@ + ThrowReaderException(CorruptImageError,InvalidColormapIndex,image); + } + +- if(pPalette!=NULL && +- PaletteAllocBytes < 4*(WPG_Palette.StartIndex+WPG_Palette.NumOfEntries)) +- { +- MagickFreeResourceLimitedMemory(pPalette); +- PaletteAllocBytes = 0; +- } ++ /* Assure that buffer is allocated and the current size */ ++ if (PaletteAllocBytes != Max(4*(WPG_Palette.StartIndex+WPG_Palette.NumOfEntries),4*256)) ++ { ++ PaletteAllocBytes = Max(4*(WPG_Palette.StartIndex+WPG_Palette.NumOfEntries),4*256); ++ MagickReallocateResourceLimitedMemory(unsigned char *,pPalette,PaletteAllocBytes); ++ } + if(pPalette==NULL) +- { +- PaletteItems = WPG_Palette.NumOfEntries; +- PaletteAllocBytes = 4*(WPG_Palette.StartIndex+WPG_Palette.NumOfEntries); +- if(PaletteAllocBytes < 4*256) PaletteAllocBytes = 4*256; +- pPalette = MagickAllocateResourceLimitedMemory(unsigned char *,(size_t)PaletteAllocBytes); +- if(pPalette==NULL) +- ThrowReaderException(ResourceLimitError,MemoryAllocationFailed,image); +- for(i=0; i<=255; i++) ++ ThrowReaderException(ResourceLimitError,MemoryAllocationFailed,image); ++ ++ PaletteItems = WPG_Palette.NumOfEntries; ++ for(i=0; i<=255; i++) + { + pPalette[4*i] = WPG1_Palette[i].Red; + pPalette[4*i+1] = WPG1_Palette[i].Green; + pPalette[4*i+2] = WPG1_Palette[i].Blue; + pPalette[4*i+3] = OpaqueOpacity; + } +- } + if(ReadBlob(image,(size_t) PaletteItems*4,pPalette+((size_t)4*WPG_Palette.StartIndex)) != (size_t) PaletteItems*4) + { + MagickFreeResourceLimitedMemory(pPalette);
package/graphicsmagick/graphicsmagick.mk +3 -0
@@ -26,6 +26,9 @@ GRAPHICSMAGICK_IGNORE_CVES += CVE-2025-27795 # 0002-ReadJXLImage-pixel_format-num_channels-needs-to-be.patch GRAPHICSMAGICK_IGNORE_CVES += CVE-2025-32460 +# 0003-Assure-that-palette-buffer-is-allocated-and-the-current-size.patch +GRAPHICSMAGICK_IGNORE_CVES += CVE-2025-27796 + GRAPHICSMAGICK_INSTALL_STAGING = YES GRAPHICSMAGICK_CONFIG_SCRIPTS = GraphicsMagick-config GraphicsMagickWand-config
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedRe: [Buildroot] [PATCH 3/4] package/graphicsmagick: add patch for CVE-2025-27796
In reply of:
Quoted 7 lines
Fixes the following vulnerability:
- CVE-2025-27796:
ReadWPGImage in WPG in GraphicsMagick before 1.3.46 mishandles palette buffer allocation, resulting in out-of-bounds access to heap memory in ReadBlob.
Quoted 5 lines
For more information, see
- https://www.cve.org/CVERecord?id=CVE-2025-27796
- https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/883ebf8cae6dfa5873d975fe3476b1a188ef3Signed-off-by Thomas Perale <[email protected]>
Applied to 2025.02.x & 2025.11.x. Thanks
Quoted 88 lines
--- ...er-is-allocated-and-the-current-size.patch | 55 +++++++++++++++++++ package/graphicsmagick/graphicsmagick.mk | 3 + 2 files changed, 58 insertions(+) create mode 100644 package/graphicsmagick/0003-Assure-that-palette-buffer-is-allocated-and-the-current-size.patchpackage/graphicsmagick/0003-Assure-that-palette-buffer-is-allocated-and-the-current-size.patch new file +55
-0@@ -0,0 +1,55 @@ +# HG changeset patch +# User Bob Friesenhahn <[email protected]> +# Date 1734634653 21600 +# Thu Dec 19 12:57:33 2024 -0600 +# Node ID 883ebf8cae6dfa5873d975fe3476b1a188ef3f9f +# Parent cf7cd5ebabb0ca40204de7539f4fb9ae02121958 +ReadWPGImage(): Assure that palette buffer is allocated and the current size. + +CVE: CVE-2025-27796 +Upstream: https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/883ebf8cae6dfa5873d975fe3476b1a188ef3f9f +[thomas: remove changelog and binary] +Signed-off-by: Thomas Perale <[email protected]> + +diff --git a/coders/wpg.c b/coders/wpg.c +--- a/coders/wpg.c ++++ b/coders/wpg.c +@@ -1704,28 +1704,23 @@ + ThrowReaderException(CorruptImageError,InvalidColormapIndex,image); + } + +- if(pPalette!=NULL && +- PaletteAllocBytes < 4*(WPG_Palette.StartIndex+WPG_Palette.NumOfEntries)) +- { +- MagickFreeResourceLimitedMemory(pPalette); +- PaletteAllocBytes = 0; +- } ++ /* Assure that buffer is allocated and the current size */ ++ if (PaletteAllocBytes != Max(4*(WPG_Palette.StartIndex+WPG_Palette.NumOfEntries),4*256)) ++ { ++ PaletteAllocBytes = Max(4*(WPG_Palette.StartIndex+WPG_Palette.NumOfEntries),4*256); ++ MagickReallocateResourceLimitedMemory(unsigned char *,pPalette,PaletteAllocBytes); ++ } + if(pPalette==NULL) +- { +- PaletteItems = WPG_Palette.NumOfEntries; +- PaletteAllocBytes = 4*(WPG_Palette.StartIndex+WPG_Palette.NumOfEntries); +- if(PaletteAllocBytes < 4*256) PaletteAllocBytes = 4*256; +- pPalette = MagickAllocateResourceLimitedMemory(unsigned char *,(size_t)PaletteAllocBytes); +- if(pPalette==NULL) +- ThrowReaderException(ResourceLimitError,MemoryAllocationFailed,image); +- for(i=0; i<=255; i++) ++ ThrowReaderException(ResourceLimitError,MemoryAllocationFailed,image); ++ ++ PaletteItems = WPG_Palette.NumOfEntries; ++ for(i=0; i<=255; i++) + { + pPalette[4*i] = WPG1_Palette[i].Red; + pPalette[4*i+1] = WPG1_Palette[i].Green; + pPalette[4*i+2] = WPG1_Palette[i].Blue; + pPalette[4*i+3] = OpaqueOpacity; + } +- } + if(ReadBlob(image,(size_t) PaletteItems*4,pPalette+((size_t)4*WPG_Palette.StartIndex)) != (size_t) PaletteItems*4) + { + MagickFreeResourceLimitedMemory(pPalette);package/graphicsmagick/graphicsmagick.mk +3
-0@@ -26,6 +26,9 @@ GRAPHICSMAGICK_IGNORE_CVES += CVE-2025-27795 # 0002-ReadJXLImage-pixel_format-num_channels-needs-to-be.patch GRAPHICSMAGICK_IGNORE_CVES += CVE-2025-32460 +# 0003-Assure-that-palette-buffer-is-allocated-and-the-current-size.patch +GRAPHICSMAGICK_IGNORE_CVES += CVE-2025-27796 + GRAPHICSMAGICK_INSTALL_STAGING = YES GRAPHICSMAGICK_CONFIG_SCRIPTS = GraphicsMagick-config GraphicsMagickWand-configSignature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 4/4 package/graphicsmagick: bump to v1.3.46
In reply to Thomas Perale via buildrootFor more information, see the release note:
- http://www.graphicsmagick.org/NEWS.html#october-29-2025
- https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/compare/GraphicsMagick-1_3_45...GraphicsMagick-1_3_46
This release include now upstream fixes for CVE-2025-27795, CVE-2025-32460, CVE-2025-27796.
Copyright year updated in [1].
--- ...pply-image-dimension-resource-limits.patch | 33 ---------- ...ixel_format-num_channels-needs-to-be.patch | 61 ------------------- ...er-is-allocated-and-the-current-size.patch | 55 ----------------- package/graphicsmagick/graphicsmagick.hash | 4 +- package/graphicsmagick/graphicsmagick.mk | 11 +--- 5 files changed, 3 insertions(+), 161 deletions(-) delete mode 100644 package/graphicsmagick/0001-ReadJXLImage-Apply-image-dimension-resource-limits.patch delete mode 100644 package/graphicsmagick/0002-ReadJXLImage-pixel_format-num_channels-needs-to-be.patch delete mode 100644 package/graphicsmagick/0003-Assure-that-palette-buffer-is-allocated-and-the-current-size.patch
package/graphicsmagick/0001-ReadJXLImage-Apply-image-dimension-resource-limits.patch deleted +0 -33
@@ -1,33 +0,0 @@ -# HG changeset patch -# User Bob Friesenhahn <[email protected]> -# Date 1725886903 18000 -# Mon Sep 09 08:01:43 2024 -0500 -# Node ID 9bbae7314e3c3b19b830591010ed90bb136b9c42 -# Parent db3ff8d00c28c38895e1600a28706ce251dac570 -ReadJXLImage(): Apply image dimension resource limits. Addresses oss-fuzz Issue 69728 - -CVE: CVE-2025-27795 -Upstream: https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/9bbae7314e3c3b19b830591010ed90bb136b9c42 -Signed-off-by: Peter Korsgaard <[email protected]> -[Peter: drop ChangeLog/version changes] -diff --git a/coders/jxl.c b/coders/jxl.c ---- a/coders/jxl.c -+++ b/coders/jxl.c -@@ -571,6 +571,7 @@ - basic_info.alpha_bits, basic_info.num_color_channels, - basic_info.have_animation == JXL_FALSE ? "False" : "True"); - } -+ - if (basic_info.num_extra_channels) - { - size_t index; -@@ -637,6 +638,9 @@ - - image->orientation=convert_orientation(basic_info.orientation); - -+ if (CheckImagePixelLimits(image, exception) != MagickPass) -+ ThrowJXLReaderException(ResourceLimitError,ImagePixelLimitExceeded,image); -+ - pixel_format.endianness=JXL_NATIVE_ENDIAN; - pixel_format.align=0; - if (basic_info.num_color_channels == 1)
package/graphicsmagick/0002-ReadJXLImage-pixel_format-num_channels-needs-to-be.patch deleted +0 -61
61 lines not on this page · raw message
package/graphicsmagick/0003-Assure-that-palette-buffer-is-allocated-and-the-current-size.patch deleted +0 -55
55 lines not on this page · raw message
package/graphicsmagick/graphicsmagick.hash +2 -2
@@ -1,3 +1,3 @@ # Locally computed: -sha256 dcea5167414f7c805557de2d7a47a9b3147bcbf617b91f5f0f4afe5e6543026b GraphicsMagick-1.3.45.tar.xz -sha256 27d121f97ad71ff506ac5a6a9539e969154f3a66f3da24fd5b6f268acd106295 Copyright.txt +sha256 c7c706a505e9c6c3764156bb94a0c9644d79131785df15a89c9f8721d1abd061 GraphicsMagick-1.3.46.tar.xz +sha256 a610fd86484bf7c80b53f84f9644995c25c74f1dd711f16d2608bbe81176d18b Copyright.txt
package/graphicsmagick/graphicsmagick.mk +1 -10
@@ -4,7 +4,7 @@ # ################################################################################ -GRAPHICSMAGICK_VERSION = 1.3.45 +GRAPHICSMAGICK_VERSION = 1.3.46 GRAPHICSMAGICK_SOURCE = GraphicsMagick-$(GRAPHICSMAGICK_VERSION).tar.xz GRAPHICSMAGICK_SITE = https://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/$(GRAPHICSMAGICK_VERSION) GRAPHICSMAGICK_LICENSE = MIT
@@ -20,15 +20,6 @@ GRAPHICSMAGICK_IGNORE_CVES += CVE-2008-6621 # https://bugzilla.redhat.com/show_bug.cgi?id=210921#c5 GRAPHICSMAGICK_IGNORE_CVES += CVE-2007-0770 -# 0001-ReadJXLImage-Apply-image-dimension-resource-limits.patch -GRAPHICSMAGICK_IGNORE_CVES += CVE-2025-27795 - -# 0002-ReadJXLImage-pixel_format-num_channels-needs-to-be.patch -GRAPHICSMAGICK_IGNORE_CVES += CVE-2025-32460 - -# 0003-Assure-that-palette-buffer-is-allocated-and-the-current-size.patch -GRAPHICSMAGICK_IGNORE_CVES += CVE-2025-27796 - GRAPHICSMAGICK_INSTALL_STAGING = YES GRAPHICSMAGICK_CONFIG_SCRIPTS = GraphicsMagick-config GraphicsMagickWand-config
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 4/4] package/graphicsmagick: bump to v1.3.46
Quoted 6 lines · Thomas Perale via buildroot
For more information, see the release note:
- http://www.graphicsmagick.org/NEWS.html#october-29-2025
-
https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/compare/GraphicsMagick-1_3_45...GraphicsMagick-1_3_46
Quoted 8 lines
This release include now upstream fixes for CVE-2025-27795, CVE-2025-32460, CVE-2025-27796.
Copyright year updated in [1].
Signed-off-by Thomas Perale <[email protected]>
Since we are already in the 2026.02-rc3 release cycle, I would prefer to apply this patch a bit later, after 2026.02 is release (hopefully, very soon).
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 4/4] package/graphicsmagick: bump to v1.3.46
Hi,
Quoted 10 lines · Julien Olivain via buildroot
Quoted 9 lines · Thomas Perale via buildroot
For more information, see the release note:
- http://www.graphicsmagick.org/NEWS.html#october-29-2025
-
https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/compare/GraphicsMagick-1_3_45...GraphicsMagick-1_3_46This release include now upstream fixes for CVE-2025-27795, CVE-2025-32460, CVE-2025-27796.
Quoted 8 lines
Quoted 5 lines
Copyright year updated in [1].
Signed-off-by Thomas Perale <[email protected]>Since we are already in the 2026.02-rc3 release cycle, I would prefer to apply this patch a bit later, after 2026.02 is release (hopefully, very soon).
Now 2026.02 was released, I applied this patch on master, thanks.
Quoted 3 lines
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 7 lines · Thomas Perale via buildroot
This vulnerability match on every version of graphicsmagick. Since it's really old it's unlikely it will be updated and is thus added to
IGNORE_CVES. See [1].[1] https://nvd.nist.gov//vuln/detail/CVE-2008-6621
Signed-off-by Thomas Perale <[email protected]>
I applied patches 1 to 3 of this series to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedIn reply of:
Quoted 7 lines
This vulnerability match on every version of graphicsmagick. Since it's really old it's unlikely it will be updated and is thus added to
IGNORE_CVES. See [1].[1] https://nvd.nist.gov//vuln/detail/CVE-2008-6621
Signed-off-by Thomas Perale <[email protected]>
Applied to 2025.02.x & 2025.11.x. Thanks
Quoted 26 lines
--- package/graphicsmagick/graphicsmagick.mk | 4 ++++ 1 file changed, 4 insertions(+)package/graphicsmagick/graphicsmagick.mk +4
-0@@ -11,6 +11,10 @@ GRAPHICSMAGICK_LICENSE = MIT GRAPHICSMAGICK_LICENSE_FILES = Copyright.txt GRAPHICSMAGICK_CPE_ID_VENDOR = graphicsmagick +# Wrong NVD annotations +# Fixed in version 1.2.3 +GRAPHICSMAGICK_IGNORE_CVES += CVE-2008-6621 + # 0001-ReadJXLImage-Apply-image-dimension-resource-limits.patch GRAPHICSMAGICK_IGNORE_CVES += CVE-2025-27795Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot