diff options
author | Scott Garman <scott.a.garman@intel.com> | 2012-12-27 09:53:08 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-03 12:34:25 +0000 |
commit | b6037b6d2fc9cb4e8a3564468da0f796ed9235d8 (patch) | |
tree | 8c2d6b0f60af337c99fc74c895d9a755d89f9658 /meta | |
parent | cf77faba91d43586a3e76d1a27699d853539af40 (diff) | |
download | poky-b6037b6d2fc9cb4e8a3564468da0f796ed9235d8.tar.gz |
libxml2: patch for CVE-2012-2871
the patch come from:
http://src.chromium.org/viewvc/chrome/trunk/src/third_party/libxml/ \
src/include/libxml/tree.h?r1=56276&r2=149930
libxml2 2.9.0-rc1 and earlier, as used in Google Chrome before
21.0.1180.89, does not properly support a cast of an unspecified
variable during handling of XSL transforms, which allows remote
attackers to cause a denial of service or possibly have unknown other
impact via a crafted document, related to the _xmlNs data structure in
include/libxml/tree.h.
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-2871
[YOCTO #3580]
[ CQID: WIND00376779 ]
(From OE-Core rev: fa3d44594360786b2526d64f0ea5bc26b44a1fa8)
Signed-off-by: Li Wang <li.wang at windriver.com>
This fixes denzil bug [YOCTO #3648]
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/libxml/libxml2/libxml2-CVE-2012-2871.patch | 36 | ||||
-rw-r--r-- | meta/recipes-core/libxml/libxml2_2.8.0.bb | 4 |
2 files changed, 39 insertions, 1 deletions
diff --git a/meta/recipes-core/libxml/libxml2/libxml2-CVE-2012-2871.patch b/meta/recipes-core/libxml/libxml2/libxml2-CVE-2012-2871.patch new file mode 100644 index 0000000000..41b19d0183 --- /dev/null +++ b/meta/recipes-core/libxml/libxml2/libxml2-CVE-2012-2871.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | libxml2 CVE-2012-2871 | ||
2 | |||
3 | the patch come from: | ||
4 | http://src.chromium.org/viewvc/chrome/trunk/src/third_party/libxml/src \ | ||
5 | /include/libxml/tree.h?r1=56276&r2=149930 | ||
6 | |||
7 | libxml2 2.9.0-rc1 and earlier, as used in Google Chrome before 21.0.1180.89, | ||
8 | does not properly support a cast of an unspecified variable during handling | ||
9 | of XSL transforms, which allows remote attackers to cause a denial of service | ||
10 | or possibly have unknown other impact via a crafted document, related to the | ||
11 | _xmlNs data structure in include/libxml/tree.h. | ||
12 | |||
13 | http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-2871 | ||
14 | |||
15 | Upstream-Status: Pending | ||
16 | |||
17 | Signed-off-by: Li Wang <li.wang@windriver.com> | ||
18 | --- | ||
19 | include/libxml/tree.h | 1 + | ||
20 | 1 files changed, 1 insertions(+), 0 deletions(-) | ||
21 | |||
22 | diff --git a/include/libxml/tree.h b/include/libxml/tree.h | ||
23 | index b733589..5422dda 100644 | ||
24 | --- a/include/libxml/tree.h | ||
25 | +++ b/include/libxml/tree.h | ||
26 | @@ -351,6 +351,7 @@ struct _xmlNs { | ||
27 | struct _xmlNs *next; /* next Ns link for this node */ | ||
28 | xmlNsType type; /* global or local */ | ||
29 | const xmlChar *href; /* URL for the namespace */ | ||
30 | + const char *dummy_children; /* lines up with node->children */ | ||
31 | const xmlChar *prefix; /* prefix for the namespace */ | ||
32 | void *_private; /* application data */ | ||
33 | struct _xmlDoc *context; /* normally an xmlDoc */ | ||
34 | -- | ||
35 | 1.7.0.5 | ||
36 | |||
diff --git a/meta/recipes-core/libxml/libxml2_2.8.0.bb b/meta/recipes-core/libxml/libxml2_2.8.0.bb index fe9ec0526b..f2790b3b76 100644 --- a/meta/recipes-core/libxml/libxml2_2.8.0.bb +++ b/meta/recipes-core/libxml/libxml2_2.8.0.bb | |||
@@ -1,6 +1,8 @@ | |||
1 | require libxml2.inc | 1 | require libxml2.inc |
2 | 2 | ||
3 | PR = "r1" | 3 | PR = "r2" |
4 | 4 | ||
5 | SRC_URI[md5sum] = "c62106f02ee00b6437f0fb9d370c1093" | 5 | SRC_URI[md5sum] = "c62106f02ee00b6437f0fb9d370c1093" |
6 | SRC_URI[sha256sum] = "f2e2d0e322685193d1affec83b21dc05d599e17a7306d7b90de95bb5b9ac622a" | 6 | SRC_URI[sha256sum] = "f2e2d0e322685193d1affec83b21dc05d599e17a7306d7b90de95bb5b9ac622a" |
7 | |||
8 | SRC_URI += "file://libxml2-CVE-2012-2871.patch" | ||