summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/unzip/unzip/CVE-2015-7697.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-29 00:05:32 +0100
committerTudor Florea <tudor.florea@enea.com>2015-10-29 00:05:32 +0100
commit753ec70905a680f653768572b481f3637b733fdf (patch)
tree5002f9d354e59752ff204574afac73353ed20d1d /meta/recipes-extended/unzip/unzip/CVE-2015-7697.patch
parent3112f71d69204e618487250c400ad3bbf656d68e (diff)
downloadpoky-753ec70905a680f653768572b481f3637b733fdf.tar.gz
unzip: CVE-2015-7696, CVE-2015-7697
CVE-2015-7696: Fixes a heap overflow triggered by unzipping a file with password CVE-2015-7697: Fixes a denial of service with a file that never finishes unzipping References: http://www.openwall.com/lists/oss-security/2015/10/11/5 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-7696 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-7697 Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-extended/unzip/unzip/CVE-2015-7697.patch')
-rw-r--r--meta/recipes-extended/unzip/unzip/CVE-2015-7697.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-extended/unzip/unzip/CVE-2015-7697.patch b/meta/recipes-extended/unzip/unzip/CVE-2015-7697.patch
new file mode 100644
index 0000000000..da68988338
--- /dev/null
+++ b/meta/recipes-extended/unzip/unzip/CVE-2015-7697.patch
@@ -0,0 +1,31 @@
1Upstream-Status: Backport
2Signed-off-by: Tudor Florea <tudor.flore@enea.com>
3
4From bd8a743ee0a77e65ad07ef4196c4cd366add3f26 Mon Sep 17 00:00:00 2001
5From: Kamil Dudka <kdudka@redhat.com>
6Date: Mon, 14 Sep 2015 18:24:56 +0200
7Subject: [PATCH 2/2] fix infinite loop when extracting empty bzip2 data
8
9---
10 extract.c | 6 ++++++
11 1 file changed, 6 insertions(+)
12
13diff --git a/extract.c b/extract.c
14index 7134bfe..29db027 100644
15--- a/extract.c
16+++ b/extract.c
17@@ -2733,6 +2733,12 @@ __GDEF
18 int repeated_buf_err;
19 bz_stream bstrm;
20
21+ if (G.incnt <= 0 && G.csize <= 0L) {
22+ /* avoid an infinite loop */
23+ Trace((stderr, "UZbunzip2() got empty input\n"));
24+ return 2;
25+ }
26+
27 #if (defined(DLL) && !defined(NO_SLIDE_REDIR))
28 if (G.redirect_slide)
29 wsize = G.redirect_size, redirSlide = G.redirect_buffer;
30--
312.4.6