!288 fix CVE-2025-32415

From: @fundawang 
Reviewed-by: @hubin95 
Signed-off-by: @hubin95
This commit is contained in:
openeuler-ci-bot 2025-04-22 02:37:09 +00:00 committed by Gitee
commit 6016838954
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 46 additions and 1 deletions

View File

@ -0,0 +1,38 @@
From 384cc7c182fc00c6d5e2ab4b5e3671b2e3f93c84 Mon Sep 17 00:00:00 2001
From: Nick Wellnhofer <wellnhofer@aevum.de>
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

View File

@ -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
@ -227,6 +227,7 @@ Patch6202: backport-xpath-Fix-build-without-LIBXML_XPATH_ENABLED.patch
Patch6203: backport-CVE-2024-56171.patch
Patch6204: backport-CVE-2025-24928.patch
Patch6205: backport-CVE-2025-27113.patch
Patch6206: backport-CVE-2025-32415.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: python3-devel
@ -384,6 +385,12 @@ rm -fr %{buildroot}
%changelog
* Fri Apr 18 2025 Funda Wang <fundawang@yeah.net> - 2.9.14-16
- Type:CVE
- CVE:CVE-2025-32415
- SUG:NA
- DESC: fix CVE-2025-32415
* Mon Feb 24 2025 Funda Wang <fundawang@yeah.net> - 2.9.14-15
- Type:CVE
- CVE:CVE-2024-56171