diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-10-19 19:37:09 +0200 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@intel.com> | 2025-10-30 14:44:35 +0800 |
| commit | 1459f29e711da3528856a960bbab8cdc351af29c (patch) | |
| tree | 1397d9170330b20ac7bba0c4a4540597e77d166a | |
| parent | b0edb9f89158f92d705d4d81da1e69e67c059c7a (diff) | |
| download | meta-openembedded-1459f29e711da3528856a960bbab8cdc351af29c.tar.gz | |
emacs: patch CVE-2024-30203
Details: https://nvd.nist.gov/vuln/detail/CVE-2024-30203
Pick the patch mentioned in the description.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
| -rw-r--r-- | meta-oe/recipes-support/emacs/emacs_29.1.bb | 1 | ||||
| -rw-r--r-- | meta-oe/recipes-support/emacs/files/0001-lisp-gnus-mm-view.el-mm-display-inline-fontify-Mark-.patch | 27 |
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 | ||
| 7 | SRC_URI = "https://ftp.gnu.org/pub/gnu/emacs/emacs-${PV}.tar.xz \ | 7 | SRC_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 | " |
| 10 | SRC_URI:append:class-target = " \ | 11 | SRC_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 @@ | |||
| 1 | From 0e7fe7809daa123921faa0bd088931cf8ddfd705 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ihor Radchenko <yantar92@posteo.net> | ||
| 3 | Date: Tue, 20 Feb 2024 12:44:30 +0300 | ||
| 4 | Subject: [PATCH] * lisp/gnus/mm-view.el (mm-display-inline-fontify): Mark | ||
| 5 | contents untrusted. | ||
| 6 | |||
| 7 | CVE: CVE-2024-30203 | ||
| 8 | |||
| 9 | Upstream-Status: Backport [https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-29&id=937b9042ad7426acdcca33e3d931d8f495bdd804] | ||
| 10 | |||
| 11 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 12 | --- | ||
| 13 | lisp/gnus/mm-view.el | 1 + | ||
| 14 | 1 file changed, 1 insertion(+) | ||
| 15 | |||
| 16 | diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el | ||
| 17 | index 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))) | ||
