From: Denis OSTERLAND <denis.osterland@diehl.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] [PATCH v2] libxml2: apply fix for CVE-2017-8872
Date: Fri, 22 Jun 2018 11:35:22 +0000 [thread overview]
Message-ID: <20180622113420.5149-1-Denis.Osterland@diehl.com> (raw)
In-Reply-To: <20180621112156.18333-1-Denis.Osterland@diehl.com>
Taken from debian buster libxml2_2.9.7+dfsg-1.
Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com>
---
...-bounds-read-in-htmlParseTryOrFinish.patch | 31 +++++++++++++++++++
patches/libxml2-2.9.7/series | 7 +++--
2 files changed, 35 insertions(+), 3 deletions(-)
create mode 100644 patches/libxml2-2.9.7/0100-Out-of-bounds-read-in-htmlParseTryOrFinish.patch
diff --git a/patches/libxml2-2.9.7/0100-Out-of-bounds-read-in-htmlParseTryOrFinish.patch b/patches/libxml2-2.9.7/0100-Out-of-bounds-read-in-htmlParseTryOrFinish.patch
new file mode 100644
index 000000000..c23cb47e5
--- /dev/null
+++ b/patches/libxml2-2.9.7/0100-Out-of-bounds-read-in-htmlParseTryOrFinish.patch
@@ -0,0 +1,31 @@
+From: Marcus Meissner <meissner@suse.de>
+Date: Wed, 3 Jan 2018 14:43:41 +0100
+Subject: [PATCH] Out-of-bounds read in htmlParseTryOrFinish
+
+Origin: vendor, https://bugzilla.novell.com/attachment.cgi?id=732309
+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=775200
+Bug-Debian: https://bugs.debian.org/862450
+Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2017-8872
+Bug-SUSE: https://bugzilla.novell.com/show_bug.cgi?id=1038444
+Forwarded: yes, https://bugzilla.gnome.org/attachment.cgi?id=366193
+Reviewed-by: Salvatore Bonaccorso <carnil@debian.org>
+Last-Update: 2018-01-03
+---
+ parser.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/parser.c b/parser.c
+index 1c5e036ea265..025111067ae8 100644
+--- a/parser.c
++++ b/parser.c
+@@ -12467,6 +12467,10 @@ xmlHaltParser(xmlParserCtxtPtr ctxt) {
+ ctxt->input->cur = BAD_CAST"";
+ ctxt->input->base = ctxt->input->cur;
+ ctxt->input->end = ctxt->input->cur;
++ if (ctxt->input->buf)
++ xmlBufEmpty (ctxt->input->buf->buffer);
++ else
++ ctxt->input->length = 0;
+ }
+ }
+
diff --git a/patches/libxml2-2.9.7/series b/patches/libxml2-2.9.7/series
index 05ba5ddea..76a7f7c25 100644
--- a/patches/libxml2-2.9.7/series
+++ b/patches/libxml2-2.9.7/series
@@ -1,6 +1,7 @@
# generated by git-ptx-patches
-#tag:base --start-number 1
-#tag:upstream --start-number 1
+#tag:upstream --start-number 100
+0100-Out-of-bounds-read-in-htmlParseTryOrFinish.patch
#tag:ptx --start-number 200
0200-xml2-config-is-not-SYSROOT-aware.patch
-# b6720be956d1b4619bc1c347a0ceb1dd - git-ptx-patches magic
+#tag:base --start-number 1
+# 73b51dbb579d1555a9c4c76cc8b2947a - git-ptx-patches magic
--
2.18.0
Diehl AKO Stiftung & Co. KG, Pfannerstraße 75-83, 88239 Wangen im Allgäu
Bereichsvorstand: Dipl.-Ing. Michael Siedentop (Sprecher), Josef Fellner (Mitglied)
Sitz der Gesellschaft: Wangen i.A. – Registergericht: Amtsgericht Ulm HRA 620609 – Persönlich haftende Gesellschafterin: Diehl Verwaltungs-Stiftung – Sitz: Nürnberg – Registergericht: Amtsgericht Nürnberg HRA 11756 –
Vorstand: Dr.-Ing. Karl Tragl (Vorsitzender), Herr Dipl.-Wirtsch.-Ing. Wolfgang Weggen (stellvertretender Vorsitzender), Dipl.-Kfm. Claus Günther, Dipl.-Kfm. Frank Gutzeit, Dr.-Ing. Heinrich Schunk, Dr.-Ing. Michael Siedentop , Dipl.-Kfm. Dr.-Ing. Martin Sommer, Dipl.-Ing. (FH) Rainer von Borstel, Vorsitzender des Aufsichtsrates: Dr. Klaus Maier
___________________________________________________________________________________________________
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited.
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2018-06-22 11:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-21 11:25 [ptxdist] [PATCH] " Denis OSTERLAND
2018-06-22 7:15 ` Michael Olbrich
2018-06-22 7:28 ` Alexander Dahl
2018-06-22 7:34 ` Denis OSTERLAND
2018-06-22 11:35 ` Denis OSTERLAND [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180622113420.5149-1-Denis.Osterland@diehl.com \
--to=denis.osterland@diehl.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox