Skip to content

Commit 088b3c7

Browse files
[AutoPR- Security] Patch libxslt for CVE-2025-11731 [LOW] (#15147)
1 parent 52fdb01 commit 088b3c7

File tree

6 files changed

+52
-9
lines changed

6 files changed

+52
-9
lines changed

SPECS/libxslt/CVE-2025-11731.patch

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
From 126a8478361719176d26b87eaf487aa858fd5d6e Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Dominik=20R=C3=B6ttsches?= <[email protected]>
3+
Date: Wed, 27 Aug 2025 14:28:40 +0300
4+
Subject: [PATCH] End function node ancestor search at document
5+
6+
Avoids dereferencing a non-existent ->ns property on an
7+
XML_DOCUMENT_NODE pointer.
8+
9+
Fixes #151.
10+
11+
Signed-off-by: Azure Linux Security Servicing Account <[email protected]>
12+
Upstream-reference: https://gitlab.gnome.org/GNOME/libxslt/-/merge_requests/78.patch
13+
---
14+
libexslt/functions.c | 9 +++++++--
15+
1 file changed, 7 insertions(+), 2 deletions(-)
16+
17+
diff --git a/libexslt/functions.c b/libexslt/functions.c
18+
index 8d35a7a..a54ee70 100644
19+
--- a/libexslt/functions.c
20+
+++ b/libexslt/functions.c
21+
@@ -617,8 +617,13 @@ exsltFuncResultComp (xsltStylesheetPtr style, xmlNodePtr inst,
22+
* instanciation of a func:result element.
23+
*/
24+
for (test = inst->parent; test != NULL; test = test->parent) {
25+
- if (IS_XSLT_ELEM(test) &&
26+
- IS_XSLT_NAME(test, "stylesheet")) {
27+
+ if (/* Traversal has reached the top-level document without
28+
+ * finding a func:function ancestor. */
29+
+ (test != NULL && test->type == XML_DOCUMENT_NODE) ||
30+
+ /* Traversal reached a stylesheet-namespace node,
31+
+ * and has left the function namespace. */
32+
+ (IS_XSLT_ELEM(test) &&
33+
+ IS_XSLT_NAME(test, "stylesheet"))) {
34+
xsltGenericError(xsltGenericErrorContext,
35+
"func:result element not a descendant "
36+
"of a func:function\n");
37+
--
38+
2.45.4
39+

SPECS/libxslt/libxslt.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
Summary: Libxslt is the XSLT C library developed for the GNOME project. XSLT is a an XML language to define transformation for XML.
33
Name: libxslt
44
Version: 1.1.43
5-
Release: 1%{?dist}
5+
Release: 2%{?dist}
66
License: MIT
77
Vendor: Microsoft Corporation
88
Distribution: Azure Linux
99
Group: System Environment/General Libraries
1010
URL: http://xmlsoft.org/libxslt/
1111
Source0: https://download.gnome.org/sources/libxslt/%{majminorver}/%{name}-%{version}.tar.xz
12+
Patch0: CVE-2025-11731.patch
1213
BuildRequires: libgcrypt-devel
1314
BuildRequires: libxml2-devel
1415
Requires: libgcrypt
@@ -76,6 +77,9 @@ make %{?_smp_mflags} check
7677

7778

7879
%changelog
80+
* Fri Nov 21 2025 Azure Linux Security Servicing Account <[email protected]> - 1.1.43-2
81+
- Patch for CVE-2025-11731
82+
7983
* Tue Mar 18 2025 Sindhu Karri <[email protected]> - 1.1.43-1
8084
- Upgrade to version 1.1.43 to fix CVE-2024-55549 and CVE-2025-24855
8185

toolkit/resources/manifests/package/pkggen_core_aarch64.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ libgpg-error-1.48-1.azl3.aarch64.rpm
225225
libgcrypt-1.10.3-1.azl3.aarch64.rpm
226226
libksba-1.6.4-1.azl3.aarch64.rpm
227227
libksba-devel-1.6.4-1.azl3.aarch64.rpm
228-
libxslt-1.1.43-1.azl3.aarch64.rpm
228+
libxslt-1.1.43-2.azl3.aarch64.rpm
229229
npth-1.6-4.azl3.aarch64.rpm
230230
pinentry-1.2.1-1.azl3.aarch64.rpm
231231
gnupg2-2.4.7-1.azl3.aarch64.rpm

toolkit/resources/manifests/package/pkggen_core_x86_64.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ libgpg-error-1.48-1.azl3.x86_64.rpm
225225
libgcrypt-1.10.3-1.azl3.x86_64.rpm
226226
libksba-1.6.4-1.azl3.x86_64.rpm
227227
libksba-devel-1.6.4-1.azl3.x86_64.rpm
228-
libxslt-1.1.43-1.azl3.x86_64.rpm
228+
libxslt-1.1.43-2.azl3.x86_64.rpm
229229
npth-1.6-4.azl3.x86_64.rpm
230230
pinentry-1.2.1-1.azl3.x86_64.rpm
231231
gnupg2-2.4.7-1.azl3.x86_64.rpm

toolkit/resources/manifests/package/toolchain_aarch64.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@ libxcrypt-devel-4.4.36-2.azl3.aarch64.rpm
245245
libxml2-2.11.5-7.azl3.aarch64.rpm
246246
libxml2-debuginfo-2.11.5-7.azl3.aarch64.rpm
247247
libxml2-devel-2.11.5-7.azl3.aarch64.rpm
248-
libxslt-1.1.43-1.azl3.aarch64.rpm
249-
libxslt-debuginfo-1.1.43-1.azl3.aarch64.rpm
250-
libxslt-devel-1.1.43-1.azl3.aarch64.rpm
248+
libxslt-1.1.43-2.azl3.aarch64.rpm
249+
libxslt-debuginfo-1.1.43-2.azl3.aarch64.rpm
250+
libxslt-devel-1.1.43-2.azl3.aarch64.rpm
251251
lua-5.4.6-1.azl3.aarch64.rpm
252252
lua-debuginfo-5.4.6-1.azl3.aarch64.rpm
253253
lua-devel-5.4.6-1.azl3.aarch64.rpm

toolkit/resources/manifests/package/toolchain_x86_64.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ libxml2-devel-2.11.5-7.azl3.x86_64.rpm
253253
libxcrypt-4.4.36-2.azl3.x86_64.rpm
254254
libxcrypt-debuginfo-4.4.36-2.azl3.x86_64.rpm
255255
libxcrypt-devel-4.4.36-2.azl3.x86_64.rpm
256-
libxslt-1.1.43-1.azl3.x86_64.rpm
257-
libxslt-debuginfo-1.1.43-1.azl3.x86_64.rpm
258-
libxslt-devel-1.1.43-1.azl3.x86_64.rpm
256+
libxslt-1.1.43-2.azl3.x86_64.rpm
257+
libxslt-debuginfo-1.1.43-2.azl3.x86_64.rpm
258+
libxslt-devel-1.1.43-2.azl3.x86_64.rpm
259259
lua-5.4.6-1.azl3.x86_64.rpm
260260
lua-debuginfo-5.4.6-1.azl3.x86_64.rpm
261261
lua-devel-5.4.6-1.azl3.x86_64.rpm

0 commit comments

Comments
 (0)