[oe-commits] [openembedded-core] 102/118: bzip2: Security fix CVE-2016-3189

git at git.openembedded.org git at git.openembedded.org
Wed Jul 20 09:31:16 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 979c61e47d416b940ca53e22acffdacb2625cf89
Author: Armin Kuster <akuster at mvista.com>
AuthorDate: Sat Jul 16 16:04:13 2016 -0700

    bzip2: Security fix CVE-2016-3189
    
    Affects bzip2 <= 1.0.6
    CVSS v2 Base Score: 4.3 MEDIUM
    
    Signed-off-by: Armin Kuster <akuster at mvista.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 .../bzip2/bzip2-1.0.6/CVE-2016-3189.patch              | 18 ++++++++++++++++++
 meta/recipes-extended/bzip2/bzip2_1.0.6.bb             |  4 +++-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/bzip2/bzip2-1.0.6/CVE-2016-3189.patch b/meta/recipes-extended/bzip2/bzip2-1.0.6/CVE-2016-3189.patch
new file mode 100644
index 0000000..1d0c3a6
--- /dev/null
+++ b/meta/recipes-extended/bzip2/bzip2-1.0.6/CVE-2016-3189.patch
@@ -0,0 +1,18 @@
+Upstream-Status: Backport
+https://bugzilla.suse.com/attachment.cgi?id=681334
+
+CVE: CVE-2016-3189
+Signed-off-by: Armin Kuster <akuster at mvista.com>
+
+Index: bzip2-1.0.6/bzip2recover.c
+===================================================================
+--- bzip2-1.0.6.orig/bzip2recover.c
++++ bzip2-1.0.6/bzip2recover.c
+@@ -457,6 +457,7 @@ Int32 main ( Int32 argc, Char** argv )
+             bsPutUChar ( bsWr, 0x50 ); bsPutUChar ( bsWr, 0x90 );
+             bsPutUInt32 ( bsWr, blockCRC );
+             bsClose ( bsWr );
++            outFile = NULL;
+          }
+          if (wrBlock >= rbCtr) break;
+          wrBlock++;
diff --git a/meta/recipes-extended/bzip2/bzip2_1.0.6.bb b/meta/recipes-extended/bzip2/bzip2_1.0.6.bb
index f717d85..ef7bc89 100644
--- a/meta/recipes-extended/bzip2/bzip2_1.0.6.bb
+++ b/meta/recipes-extended/bzip2/bzip2_1.0.6.bb
@@ -12,7 +12,9 @@ SRC_URI = "http://www.bzip.org/${PV}/${BP}.tar.gz \
            file://fix-bunzip2-qt-returns-0-for-corrupt-archives.patch \
            file://configure.ac;subdir=${BP} \
            file://Makefile.am;subdir=${BP} \
-           file://run-ptest"
+           file://run-ptest \
+           file://CVE-2016-3189.patch \
+           "
 
 SRC_URI[md5sum] = "00b516f4704d4a7cb50a1d97e6e8e15b"
 SRC_URI[sha256sum] = "a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list