fix CVE-2025-32415
This commit is contained in:
parent
39b649b210
commit
eb6fa87ddb
38
backport-CVE-2025-32415.patch
Normal file
38
backport-CVE-2025-32415.patch
Normal 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
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
Summary: Library providing XML and HTML support
|
Summary: Library providing XML and HTML support
|
||||||
Name: libxml2
|
Name: libxml2
|
||||||
Version: 2.9.14
|
Version: 2.9.14
|
||||||
Release: 15
|
Release: 16
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source: https://download.gnome.org/sources/%{name}/2.9/%{name}-%{version}.tar.xz
|
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
|
Patch6203: backport-CVE-2024-56171.patch
|
||||||
Patch6204: backport-CVE-2025-24928.patch
|
Patch6204: backport-CVE-2025-24928.patch
|
||||||
Patch6205: backport-CVE-2025-27113.patch
|
Patch6205: backport-CVE-2025-27113.patch
|
||||||
|
Patch6206: backport-CVE-2025-32415.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -384,6 +385,12 @@ rm -fr %{buildroot}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Feb 24 2025 Funda Wang <fundawang@yeah.net> - 2.9.14-15
|
||||||
- Type:CVE
|
- Type:CVE
|
||||||
- CVE:CVE-2024-56171
|
- CVE:CVE-2024-56171
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user