diff --git a/backport-CVE-2025-32415.patch b/backport-CVE-2025-32415.patch new file mode 100644 index 0000000000000000000000000000000000000000..295dbb430a1d2123781d97a0d2420c0cfdc3fa03 --- /dev/null +++ b/backport-CVE-2025-32415.patch @@ -0,0 +1,38 @@ +From 384cc7c182fc00c6d5e2ab4b5e3671b2e3f93c84 Mon Sep 17 00:00:00 2001 +From: Nick Wellnhofer +Date: Sun, 6 Apr 2025 12:41:11 +0200 +Subject: [PATCH] [CVE-2025-32415] schemas: Fix heap buffer overflow in + xmlSchemaIDCFillNodeTables + +Don't use local variable which could contain a stale value. + +Fixes #890. +--- + xmlschemas.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/xmlschemas.c b/xmlschemas.c +index e35c117ef..4bdabd129 100644 +--- a/xmlschemas.c ++++ b/xmlschemas.c +@@ -23324,7 +23324,7 @@ xmlSchemaIDCFillNodeTables(xmlSchemaValidCtxtPtr vctxt, + j++; + } while (j < nbDupls); + } +- if (nbNodeTable) { ++ if (bind->nbNodes) { + j = 0; + do { + if (nbFields == 1) { +@@ -23375,7 +23375,7 @@ xmlSchemaIDCFillNodeTables(xmlSchemaValidCtxtPtr vctxt, + + next_node_table_entry: + j++; +- } while (j < nbNodeTable); ++ } while (j < bind->nbNodes); + } + /* + * If everything is fine, then add the IDC target-node to +-- +GitLab + diff --git a/libxml2.spec b/libxml2.spec index 7d3fea2d94a76516d4614874890b3cc810b13137..76e1b2ba74cf3271ced27b2eaa1457d47a41211f 100644 --- a/libxml2.spec +++ b/libxml2.spec @@ -1,7 +1,7 @@ Summary: Library providing XML and HTML support Name: libxml2 Version: 2.9.10 -Release: 43 +Release: 44 License: MIT Group: Development/Libraries Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz @@ -141,6 +141,7 @@ Patch128:backport-CVE-2022-49043-malloc-fail-Fix-use-after-free-in-xmlXIncludeAd Patch129:backport-CVE-2024-56171.patch Patch130:backport-CVE-2025-24928.patch Patch131:backport-CVE-2025-27113.patch +Patch132:backport-CVE-2025-32415.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: python2-devel @@ -332,6 +333,12 @@ rm -fr %{buildroot} %changelog +* Fri Apr 18 2025 Funda Wang - 2.9.10-44 +- Type:CVE +- CVE:CVE-2025-32415 +- SUG:NA +- DESC: fix CVE-2025-32415 + * Wed Feb 19 2025 Funda Wang - 2.9.10-43 - Type:CVE - CVE:CVE-2024-56171