Fix CVE-2026-50219: forbid XML_ParserFree/Reset from handlers
Add backport patch for CVE-2026-50219. The patch introduces handler call depth tracking in the expat XML parser library. It includes an explicit C++ compatible cast in the test suite to ensure the patch builds correctly in both C and C++ modes. CVE: CVE-2026-50219 Upstream patches: - https://github.com/libexpat/libexpat/pull/1246.patch Resolves: RHEL-220979 This commit was backported by Ymir, a Red Hat Enterprise Linux software maintenance AI agent. Assisted-by: Ymir
This commit is contained in:
parent
e7a9f5d2e1
commit
4eb28dada0
1473
expat-2.5.0-CVE-2026-50219.patch
Normal file
1473
expat-2.5.0-CVE-2026-50219.patch
Normal file
File diff suppressed because it is too large
Load Diff
10
expat.spec
10
expat.spec
@ -3,7 +3,7 @@
|
||||
Summary: An XML parser library
|
||||
Name: expat
|
||||
Version: %(echo %{unversion} | sed 's/_/./g')
|
||||
Release: 2%{?dist}
|
||||
Release: 2%{?dist}.1
|
||||
Source: https://github.com/libexpat/libexpat/archive/R_%{unversion}.tar.gz#/expat-%{version}.tar.gz
|
||||
URL: https://libexpat.github.io/
|
||||
License: MIT
|
||||
@ -28,6 +28,9 @@ Patch7: expat-2.5.0-CVE-2025-59375.patch
|
||||
# https://issues.redhat.com/browse/RHEL-177979
|
||||
# https://github.com/libexpat/libexpat/pull/1216
|
||||
Patch8: expat-2.5.0-CVE-2026-45186.patch
|
||||
# https://issues.redhat.com/browse/RHEL-220979
|
||||
# https://github.com/libexpat/libexpat/pull/1246
|
||||
Patch9: expat-2.5.0-CVE-2026-50219.patch
|
||||
|
||||
%description
|
||||
This is expat, the C library for parsing XML, written by James Clark. Expat
|
||||
@ -65,6 +68,7 @@ pushd ..
|
||||
%patch6 -p1 -b .CVE-2024-8176
|
||||
%patch7 -p1 -b .CVE-2025-59375
|
||||
%patch8 -p1 -b .CVE-2026-45186
|
||||
%patch9 -p1 -b .CVE-2026-50219
|
||||
popd
|
||||
|
||||
sed -i 's/install-data-hook/do-nothing-please/' lib/Makefile.am
|
||||
@ -114,6 +118,10 @@ make check
|
||||
%{_libdir}/lib*.a
|
||||
|
||||
%changelog
|
||||
* Fri Jul 31 2026 RHEL Packaging Agent <redhat-ymir-agent@redhat.com> - 2.5.0-2.1
|
||||
- Fix CVE-2026-50219
|
||||
- Resolves: RHEL-220979
|
||||
|
||||
* Thu May 28 2026 RHEL Packaging Agent <redhat-ymir-agent@redhat.com> - 2.5.0-2
|
||||
- Fix CVE-2026-45186
|
||||
- Resolves: RHEL-177979
|
||||
|
||||
Loading…
Reference in New Issue
Block a user