summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/emacs/emacs_29.1.bb1
-rw-r--r--meta-oe/recipes-support/emacs/files/0001-lisp-gnus-mm-view.el-mm-display-inline-fontify-Mark-.patch27
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/emacs/emacs_29.1.bb b/meta-oe/recipes-support/emacs/emacs_29.1.bb
index 5375c17f30..7d5b3cd3fb 100644
--- a/meta-oe/recipes-support/emacs/emacs_29.1.bb
+++ b/meta-oe/recipes-support/emacs/emacs_29.1.bb
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
6 6
7SRC_URI = "https://ftp.gnu.org/pub/gnu/emacs/emacs-${PV}.tar.xz \ 7SRC_URI = "https://ftp.gnu.org/pub/gnu/emacs/emacs-${PV}.tar.xz \
8 file://0001-org-macro-set-templates-Prevent-code-evaluation.patch \ 8 file://0001-org-macro-set-templates-Prevent-code-evaluation.patch \
9 file://0001-lisp-gnus-mm-view.el-mm-display-inline-fontify-Mark-.patch \
9 " 10 "
10SRC_URI:append:class-target = " \ 11SRC_URI:append:class-target = " \
11 file://use-emacs-native-tools-for-cross-compiling.patch \ 12 file://use-emacs-native-tools-for-cross-compiling.patch \
diff --git a/meta-oe/recipes-support/emacs/files/0001-lisp-gnus-mm-view.el-mm-display-inline-fontify-Mark-.patch b/meta-oe/recipes-support/emacs/files/0001-lisp-gnus-mm-view.el-mm-display-inline-fontify-Mark-.patch
new file mode 100644
index 0000000000..d951bf4205
--- /dev/null
+++ b/meta-oe/recipes-support/emacs/files/0001-lisp-gnus-mm-view.el-mm-display-inline-fontify-Mark-.patch
@@ -0,0 +1,27 @@
1From 0e7fe7809daa123921faa0bd088931cf8ddfd705 Mon Sep 17 00:00:00 2001
2From: Ihor Radchenko <yantar92@posteo.net>
3Date: Tue, 20 Feb 2024 12:44:30 +0300
4Subject: [PATCH] * lisp/gnus/mm-view.el (mm-display-inline-fontify): Mark
5 contents untrusted.
6
7CVE: CVE-2024-30203
8
9Upstream-Status: Backport [https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-29&id=937b9042ad7426acdcca33e3d931d8f495bdd804]
10
11Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
12---
13 lisp/gnus/mm-view.el | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el
17index 2c40735..e24f3f3 100644
18--- a/lisp/gnus/mm-view.el
19+++ b/lisp/gnus/mm-view.el
20@@ -504,6 +504,7 @@ If MODE is not set, try to find mode automatically."
21 (setq coding-system (mm-find-buffer-file-coding-system)))
22 (setq text (buffer-string))))
23 (with-temp-buffer
24+ (setq untrusted-content t)
25 (insert (cond ((eq charset 'gnus-decoded)
26 (with-current-buffer (mm-handle-buffer handle)
27 (buffer-string)))