diff --git a/dependency/libxml2/CVE-2024-25062.patch b/dependency/libxml2/CVE-2024-25062.patch new file mode 100644 index 0000000000000000000000000000000000000000..682d9096ff4b769d9e768746f4a557fdd6b398ae --- /dev/null +++ b/dependency/libxml2/CVE-2024-25062.patch @@ -0,0 +1,11 @@ +diff -Naur a/xmlreader.c b/xmlreader.c +--- a/xmlreader.c 2024-02-06 17:29:16.285516854 +0800 ++++ b/xmlreader.c 2024-02-06 17:28:15.592980289 +0800 +@@ -1586,6 +1586,7 @@ + * Handle XInclude if asked for + */ + if ((reader->xinclude) && (reader->in_xinclude == 0) && ++ (reader->state != XML_TEXTREADER_BACKTRACK) && + (reader->node != NULL) && + (reader->node->type == XML_ELEMENT_NODE) && + (reader->node->ns != NULL) && diff --git a/dependency/libxml2/build_component.sh b/dependency/libxml2/build_component.sh index 0d9a0641fb0d912795b01e5171ff1265ffab6d36..e340d74f157ea9682bdc417b8297e373a56c87ea 100644 --- a/dependency/libxml2/build_component.sh +++ b/dependency/libxml2/build_component.sh @@ -31,6 +31,7 @@ function build_component() patch -p1 < ../CVE-2023-28484.patch patch -p1 < ../CVE-2023-29469.patch patch -p1 < ../CVE-2023-45322.patch + patch -p1 < ../CVE-2024-25062.patch tmp_cpus=$(grep -w processor /proc/cpuinfo|wc -l) ./autogen.sh chmod +x configure