From feeccb2c1a3ccd06d770a32e97ad5ae9e92b3686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwh02252983=E2=80=9D?= <“wh02252983@alibaba-inc.com”> Date: Mon, 16 Jun 2025 11:17:27 +0800 Subject: [PATCH] [CVE] add patch to fix CVE-2025-3155 To CVE-2025-3155 FIX CVE-2025-3155 Project: TC2024080204 Signed-off-by: wh02252983 wh02252983@alibaba-inc.com --- 0001-CVE-2025-3155.patch | 118 +++++++++++++++++++++++++++++++++++++++ yelp.spec | 9 ++- 2 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 0001-CVE-2025-3155.patch diff --git a/0001-CVE-2025-3155.patch b/0001-CVE-2025-3155.patch new file mode 100644 index 0000000..712c113 --- /dev/null +++ b/0001-CVE-2025-3155.patch @@ -0,0 +1,118 @@ +From a2f3caf8500287981331c4ff54369e9c5747cd9d Mon Sep 17 00:00:00 2001 +From: Shaun McCance +Date: Fri, 18 Apr 2025 11:33:01 -0400 +Subject: [PATCH] Initial fix for CVE-2025-3155 from parrot409 + +https://gitlab.gnome.org/GNOME/yelp/-/issues/221 +--- + data/xslt/mal2html.xsl.in | 5 +++++ + data/xslt/man2html.xsl.in | 2 +- + data/xslt/yelp-common.xsl.in | 7 +++++++ + libyelp/yelp-transform.c | 19 +++++++++++++++++++ + libyelp/yelp-view.c | 2 +- + 5 files changed, 33 insertions(+), 2 deletions(-) + +diff --git a/data/xslt/mal2html.xsl.in b/data/xslt/mal2html.xsl.in +index 9e44b734..0a74da55 100644 +--- a/data/xslt/mal2html.xsl.in ++++ b/data/xslt/mal2html.xsl.in +@@ -19,6 +19,11 @@ + + + ++ ++ ++ ++ ++ + + + +diff --git a/data/xslt/man2html.xsl.in b/data/xslt/man2html.xsl.in +index 676ce3eb..56bc1f5c 100644 +--- a/data/xslt/man2html.xsl.in ++++ b/data/xslt/man2html.xsl.in +@@ -131,7 +131,7 @@ + the correct styling and a single character which we measure the + width of and update each sheet as required. + --> +-