diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-12-28 08:31:33 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-12-28 08:33:25 +0000 |
commit | 7f6b53170f527254ed08ba040a84ec717ad878d1 (patch) | |
tree | c90db9b82e8ceafc035e475de7d74e7971deabf6 /community/gimp/CVE-2017-17787.patch | |
parent | bc4cd8da3b3bfbda7a2524d038067b58f27c66c1 (diff) | |
download | aports-7f6b53170f527254ed08ba040a84ec717ad878d1.tar.bz2 aports-7f6b53170f527254ed08ba040a84ec717ad878d1.tar.xz |
community/gimp: security fixes
CVE-2017-17784, CVE-2017-17785, CVE-2017-17786, CVE-2017-17787, CVE-2017-17789
Fixes #8350
CVE-2017-17788 applies only to >= v2.9.6
Diffstat (limited to 'community/gimp/CVE-2017-17787.patch')
-rw-r--r-- | community/gimp/CVE-2017-17787.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/gimp/CVE-2017-17787.patch b/community/gimp/CVE-2017-17787.patch new file mode 100644 index 0000000000..654726388e --- /dev/null +++ b/community/gimp/CVE-2017-17787.patch @@ -0,0 +1,33 @@ +From 87ba505fff85989af795f4ab6a047713f4d9381d Mon Sep 17 00:00:00 2001 +From: Jehan <jehan@girinstud.io> +Date: Thu, 21 Dec 2017 12:49:41 +0100 +Subject: Bug 790853 - (CVE-2017-17787) heap overread in psp importer. + +As any external data, we have to check that strings being read at fixed +length are properly nul-terminated. + +(cherry picked from commit eb2980683e6472aff35a3117587c4f814515c74d) +--- + plug-ins/common/file-psp.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/plug-ins/common/file-psp.c b/plug-ins/common/file-psp.c +index 4cbafe3..e350e4d 100644 +--- a/plug-ins/common/file-psp.c ++++ b/plug-ins/common/file-psp.c +@@ -890,6 +890,12 @@ read_creator_block (FILE *f, + g_free (string); + return -1; + } ++ if (string[length - 1] != '\0') ++ { ++ g_message ("Creator keyword data not nul-terminated"); ++ g_free (string); ++ return -1; ++ } + switch (keyword) + { + case PSP_CRTR_FLD_TITLE: +-- +cgit v0.12 + |