diff options
author | Sona Sarmadi <sona.sarmadi@enea.com> | 2015-11-23 13:30:30 +0100 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-11-24 01:29:43 +0100 |
commit | cdf91befc739cbeae281e7bd4a4ff0028e6e10c6 (patch) | |
tree | 43720340e82db0951d543592f7ab21753e41730a /meta/recipes-core/libxml/libxml2 | |
parent | 388f3a4a2ffb10979d77b119fe0a3bf3acd534bc (diff) | |
download | poky-cdf91befc739cbeae281e7bd4a4ff0028e6e10c6.tar.gz |
libxml2: CVE-2015-8241
Upstream bug (contains reproducer):
https://bugzilla.gnome.org/show_bug.cgi?id=756263
Upstream patch:
https://git.gnome.org/browse/libxml2/commit/?id=
ab2b9a93ff19cedde7befbf2fcc48c6e352b6cbe
Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-core/libxml/libxml2')
-rw-r--r-- | meta/recipes-core/libxml/libxml2/CVE-2015-8241.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-core/libxml/libxml2/CVE-2015-8241.patch b/meta/recipes-core/libxml/libxml2/CVE-2015-8241.patch new file mode 100644 index 0000000000..98b30f037c --- /dev/null +++ b/meta/recipes-core/libxml/libxml2/CVE-2015-8241.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From ab2b9a93ff19cedde7befbf2fcc48c6e352b6cbe Mon Sep 17 00:00:00 2001 | ||
2 | From: Hugh Davenport <hugh@allthethings.co.nz> | ||
3 | Date: Tue, 3 Nov 2015 20:40:49 +0800 | ||
4 | Subject: Avoid extra processing of MarkupDecl when EOF | ||
5 | |||
6 | For https://bugzilla.gnome.org/show_bug.cgi?id=756263 | ||
7 | |||
8 | One place where ctxt->instate == XML_PARSER_EOF whic was set up | ||
9 | by entity detection issues doesn't get noticed, and even overrided | ||
10 | |||
11 | Fixes CVE-2015-8241. | ||
12 | |||
13 | Upstream-Status: Backport | ||
14 | |||
15 | Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com> | ||
16 | --- | ||
17 | parser.c | 8 ++++++++ | ||
18 | 1 file changed, 8 insertions(+) | ||
19 | |||
20 | diff --git a/parser.c b/parser.c | ||
21 | index d67b300..134afe7 100644 | ||
22 | --- a/parser.c | ||
23 | +++ b/parser.c | ||
24 | @@ -6972,6 +6972,14 @@ xmlParseMarkupDecl(xmlParserCtxtPtr ctxt) { | ||
25 | xmlParsePI(ctxt); | ||
26 | } | ||
27 | } | ||
28 | + | ||
29 | + /* | ||
30 | + * detect requirement to exit there and act accordingly | ||
31 | + * and avoid having instate overriden later on | ||
32 | + */ | ||
33 | + if (ctxt->instate == XML_PARSER_EOF) | ||
34 | + return; | ||
35 | + | ||
36 | /* | ||
37 | * This is only for internal subset. On external entities, | ||
38 | * the replacement is done before parsing stage | ||
39 | -- | ||
40 | cgit v0.11.2 | ||
41 | |||