!36 [sync] PR-32: Fix CVE-2025-2761
From: @openeuler-sync-bot Reviewed-by: @wk333 Signed-off-by: @wk333
This commit is contained in:
commit
694854d9f8
35
CVE-2025-2761.patch
Normal file
35
CVE-2025-2761.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
From 0806bc76ca74543d20e1307ccf6aebd26395c56c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alx Sa <cmyk.student@gmail.com>
|
||||||
|
Date: Mon, 10 Mar 2025 04:07:44 +0000
|
||||||
|
Subject: [PATCH] plug-ins: Fix ZDI-CAN-25100 for FLI plug-in
|
||||||
|
|
||||||
|
Origin: https://gitlab.gnome.org/GNOME/gimp/-/commit/0806bc76ca74543d20e1307ccf6aebd26395c56c
|
||||||
|
|
||||||
|
Resolves #13073
|
||||||
|
This patch adds a check to make sure we're not
|
||||||
|
writing beyond the bounds of the "pos" array.
|
||||||
|
This is the same check that we do earlier when
|
||||||
|
writing pos[xc++], but it was left off of the last
|
||||||
|
write command. Since "n" will be 0 if we get to the
|
||||||
|
end of the array, it prevents us from writing beyond
|
||||||
|
that.
|
||||||
|
---
|
||||||
|
plug-ins/file-fli/fli.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/plug-ins/file-fli/fli.c b/plug-ins/file-fli/fli.c
|
||||||
|
index 85dcc994395..1aba31e8f90 100644
|
||||||
|
--- a/plug-ins/file-fli/fli.c
|
||||||
|
+++ b/plug-ins/file-fli/fli.c
|
||||||
|
@@ -1529,7 +1529,7 @@ fli_read_lc_2 (FILE *f,
|
||||||
|
xc += len << 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
- if (lpf)
|
||||||
|
+ if (lpf && xc < n)
|
||||||
|
pos[xc] = lpn;
|
||||||
|
yc++;
|
||||||
|
}
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
|
|
||||||
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
Name: gimp
|
Name: gimp
|
||||||
Version: 2.99.10
|
Version: 2.99.10
|
||||||
Release: 2
|
Release: 3
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Summary: The GNU Image Manipulation Program
|
Summary: The GNU Image Manipulation Program
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
@ -55,6 +55,7 @@ Source98: gimp-rpmlintrc
|
|||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
Patch0: git_info_from_dirname.patch
|
Patch0: git_info_from_dirname.patch
|
||||||
Patch1: adapted-babl.patch
|
Patch1: adapted-babl.patch
|
||||||
|
Patch2: CVE-2025-2761.patch
|
||||||
BuildRequires: autoconf glibc-all-langpacks
|
BuildRequires: autoconf glibc-all-langpacks
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
@ -417,6 +418,9 @@ chrpath -d %{buildroot}/usr/lib64/gimp/2.99/plug-ins/file-aa/file-aa
|
|||||||
%{_libdir}/gimp/2.99/extensions/org.gimp.extension.goat-exercises
|
%{_libdir}/gimp/2.99/extensions/org.gimp.extension.goat-exercises
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 06 2025 wangkai <13474090681@163.com> - 2:2.99.10-3
|
||||||
|
- Fix CVE-2025-2761
|
||||||
|
|
||||||
* Thu Jan 18 2024 liyanan <liyanan61@h-partners.com> - 2:2.99.10-2
|
* Thu Jan 18 2024 liyanan <liyanan61@h-partners.com> - 2:2.99.10-2
|
||||||
- Remove rpath
|
- Remove rpath
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user