From dac867dc63af70ae992c50697d2be95c3e7b58bb Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Wed, 4 Jul 2018 09:39:14 +0800 Subject: libxml2: fix CVE-2017-8872 The htmlParseTryOrFinish function in HTMLparser.c in libxml2 2.9.4 allows attackers to cause a denial of service (buffer over-read) or information disclosure. https://bugzilla.gnome.org/show_bug.cgi?id=775200 Signed-off-by: Hongxu Jia Signed-off-by: Ross Burton --- .../libxml/libxml2/fix-CVE-2017-8872.patch | 38 ++++++++++++++++++++++ meta/recipes-core/libxml/libxml2_2.9.8.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta/recipes-core/libxml/libxml2/fix-CVE-2017-8872.patch diff --git a/meta/recipes-core/libxml/libxml2/fix-CVE-2017-8872.patch b/meta/recipes-core/libxml/libxml2/fix-CVE-2017-8872.patch new file mode 100644 index 0000000000..b34479f318 --- /dev/null +++ b/meta/recipes-core/libxml/libxml2/fix-CVE-2017-8872.patch @@ -0,0 +1,38 @@ +From b4bee17b158e289e5c4c9045e64e5374ccafe068 Mon Sep 17 00:00:00 2001 +From: Salvatore Bonaccorso +Date: Tue, 3 Jul 2018 15:54:03 +0800 +Subject: [PATCH] Out-of-bounds read in htmlParseTryOrFinish (CVE-2017-8872) + +https://bugzilla.gnome.org/show_bug.cgi?id=775200 +Fixes bug 775200. + +Signed-off-by: Salvatore Bonaccorso + +Upstream-Status: Submitted +https://bug775200.bugzilla-attachments.gnome.org/attachment.cgi?id=366193 +CVE: CVE-2017-8872 +Signed-off-by: Hongxu Jia +--- + parser.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/parser.c b/parser.c +index ca9fde2..fb4c889 100644 +--- a/parser.c ++++ b/parser.c +@@ -12464,7 +12464,11 @@ xmlHaltParser(xmlParserCtxtPtr ctxt) { + } + ctxt->input->cur = BAD_CAST""; + ctxt->input->base = ctxt->input->cur; +- ctxt->input->end = ctxt->input->cur; ++ ctxt->input->end = ctxt->input->cur; ++ if (ctxt->input->buf) ++ xmlBufEmpty (ctxt->input->buf->buffer); ++ else ++ ctxt->input->length = 0; + } + } + +-- +2.7.4 + diff --git a/meta/recipes-core/libxml/libxml2_2.9.8.bb b/meta/recipes-core/libxml/libxml2_2.9.8.bb index d55e650911..1f22bb0b07 100644 --- a/meta/recipes-core/libxml/libxml2_2.9.8.bb +++ b/meta/recipes-core/libxml/libxml2_2.9.8.bb @@ -20,6 +20,7 @@ SRC_URI = "http://www.xmlsoft.org/sources/libxml2-${PV}.tar.gz;name=libtar \ file://libxml-m4-use-pkgconfig.patch \ file://0001-Make-ptest-run-the-python-tests-if-python-is-enabled.patch \ file://fix-execution-of-ptests.patch \ + file://fix-CVE-2017-8872.patch \ " SRC_URI[libtar.md5sum] = "b786e353e2aa1b872d70d5d1ca0c740d" -- cgit v1.2.3 07765334b12'/>
AgeCommit message (Expand)AuthorFiles
2014-02-11gmp: add configure.ac patch to append user provided compilation flagsLaurentiu Palcu2
2014-01-02gmp: set SUMMARY and DESCRIPTIONPaul Eggleton2
2013-05-12gmp: updated to 5.1.1Bogdan Marinescu7
2013-03-05gmp: fix missing PR after update to 5.1.0aBogdan Marinescu1
2013-03-05gmp: updated to 5.1.0aBogdan Marinescu2
2013-01-15gmp: replace obsolete automake macros with working onesMarko Lindqvist2
2013-01-09gmp: add patch from upstream to unbreak AArch64Marcin Juszkiewicz2
2013-01-04gmp: update to upstream version 5.1.0Marko Lindqvist4
2013-01-04gmp: update SRC_URI and HOMEPAGEMarko Lindqvist1
2012-12-03gmp: fix license segment md5sum boundaryMarko Lindqvist1
2012-11-12meta: remove redundant _FOR_BUILD variablesRoss Burton2
2012-08-23gmp-4.2.1: Set CC_FOR_BUILD to ensure the host system compiler is used, not t...Richard Purdie1
2012-07-16gmp: upgrade to 5.0.5Bogdan Marinescu1
2012-06-21Simplify "SRC_URI_append +=" to "SRC_URI_append ="Robert P. J. Day1
2012-05-25gmp-4.2.1: fix build with automake 1.12Nitin A Kamble2
2012-05-25gmp: fix build with automake 1.12Nitin A Kamble2
2012-03-15gmp: upgrade from 5.0.3 to 5.0.4Nitin A Kamble2
2012-02-03gmp: upgrade from 5.0.2 to 5.0.3Nitin A Kamble4
2012-01-03Add Upstream-Status to patchesSaul Wold1
2011-12-22gmp: Don't check "$CC $CFLAGS" for x32 in gmp configureH.J. Lu1
2011-12-15gmp: Add gmp.h to SSTATE_SCAN_FILESSaul Wold3
2011-12-13gmp: Add SRC_URI Checksums for GPLv2Saul Wold1
2011-12-05gmp: fix the recipe for x32 targetNitin A Kamble3
2011-12-01gmp: also generate the libgmpcxx library & package it properlyNitin A Kamble2
2011-11-08gmp_5.0.2: Set CC_FOR_BUILD to BUILD_CCTom Zanussi1
2011-07-08gmp: upgrade from 5.0.1 to 5.0.2Nitin A Kamble1
2011-05-13recipes: Update upstream-status of patchesNitin A Kamble5
2011-03-23Various: Switch to using GNU_MIRRORTom Rini2
2010-12-09SRC_URI Checksums AdditionalsSaul Wold1
2010-11-24gmp:Add license checksum and add the GPL informationMei Lei1
2010-09-01packages: Separate out most of the remaining packages into recipesRichard Purdie8