fix CVE-2022-2309
This commit is contained in:
parent
a9888febbe
commit
241736ed93
25
backport-CVE-2022-2309.patch
Normal file
25
backport-CVE-2022-2309.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 5930fe01963136ab92125feec0c6204d9c9225dc Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nick Wellnhofer <wellnhofer@aevum.de>
|
||||||
|
Date: Mon, 18 Jul 2022 20:59:45 +0200
|
||||||
|
Subject: [PATCH] Reset nsNr in xmlCtxtReset
|
||||||
|
|
||||||
|
---
|
||||||
|
parser.c | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/parser.c b/parser.c
|
||||||
|
index d278638d..e660b0a7 100644
|
||||||
|
--- a/parser.c
|
||||||
|
+++ b/parser.c
|
||||||
|
@@ -14820,6 +14820,8 @@ xmlCtxtReset(xmlParserCtxtPtr ctxt)
|
||||||
|
ctxt->nameNr = 0;
|
||||||
|
ctxt->name = NULL;
|
||||||
|
|
||||||
|
+ ctxt->nsNr = 0;
|
||||||
|
+
|
||||||
|
DICT_FREE(ctxt->version);
|
||||||
|
ctxt->version = NULL;
|
||||||
|
DICT_FREE(ctxt->encoding);
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -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.10
|
Version: 2.9.10
|
||||||
Release: 39
|
Release: 40
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
|
Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
|
||||||
@ -135,6 +135,7 @@ Patch122:backport-Always-initialize-SAX1-element-handlers.patch
|
|||||||
Patch123:backport-malloc-fail-Fix-memory-leak-in-xmlStaticCopyNodeList.patch
|
Patch123:backport-malloc-fail-Fix-memory-leak-in-xmlStaticCopyNodeList.patch
|
||||||
Patch124:backport-CVE-2023-45322.patch
|
Patch124:backport-CVE-2023-45322.patch
|
||||||
Patch125:backport-CVE-2024-25062.patch
|
Patch125:backport-CVE-2024-25062.patch
|
||||||
|
Patch126:backport-CVE-2022-2309.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
@ -326,6 +327,12 @@ rm -fr %{buildroot}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 26 zhuofeng <zhuofeng2@huawei.com> - 2.9.10-40
|
||||||
|
- Type:CVE
|
||||||
|
- CVE:CVE-2022-2309
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix CVE-2022-2309
|
||||||
|
|
||||||
* Mon Feb 19 hehuazhen <hehuazhen@huawei.com> - 2.9.10-39
|
* Mon Feb 19 hehuazhen <hehuazhen@huawei.com> - 2.9.10-39
|
||||||
- Type:CVE
|
- Type:CVE
|
||||||
- CVE:CVE-2024-25062
|
- CVE:CVE-2024-25062
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user