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 4675f1f31db804df9948fc2f254d0b6265d31e17..f2be35ad7c2b3001a51458fb4683785dabe6db26 100644 --- a/libxml2.spec +++ b/libxml2.spec @@ -1,7 +1,7 @@ Summary: Library providing XML and HTML support Name: libxml2 Version: 2.9.14 -Release: 15 +Release: 16 License: MIT Group: Development/Libraries Source: https://download.gnome.org/sources/%{name}/2.9/%{name}-%{version}.tar.xz @@ -195,6 +195,7 @@ Patch6173: backport-xpath-Fix-build-without-LIBXML_XPATH_ENABLED.patch Patch6174: backport-CVE-2024-56171.patch Patch6175: backport-CVE-2025-24928.patch Patch6176: backport-CVE-2025-27113.patch +Patch6177: backport-CVE-2025-32415.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: python3-devel @@ -352,6 +353,12 @@ rm -fr %{buildroot} %changelog +* Fri Apr 18 2025 Funda Wang - 2.9.14-16 +- Type:CVE +- CVE:CVE-2025-32415 +- SUG:NA +- DESC: fix CVE-2025-32415 + * Wed Feb 19 2025 Funda Wang - 2.9.14-15 - Type:CVE - CVE:CVE-2024-56171