Writeup is at https://eshelyaron.com/posts/2024-11-27-emacs-aritrary-code-execution-and-how-to-avoid-it.html emacs-devel thread: https://lists.gnu.org/archive/html/emacs-devel/2024-11/msg00749.html
We don't enable flymake by default.
https://lwn.net/SubscriberLink/1002046/fffdfa49bcc60f1d/
Fixing typo in CVE.
The emacs-30.1 announcement mentions a fix for this (https://lists.gnu.org/archive/html/emacs-devel/2025-02/msg00997.html).
Created attachment 919797 [details, diff] Patch for Emacs 29.4 Please review.
Created attachment 919798 [details, diff] Patch for Emacs 28.2 Please review.
Created attachment 919799 [details, diff] Patch for Emacs 27.2 Please review.
Created attachment 919800 [details, diff] Patch for Emacs 26.3 Please review.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/emacs-patches.git/commit/?id=f24370de4de0a37304958ec1569d5c50c1745b7f commit f24370de4de0a37304958ec1569d5c50c1745b7f Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2025-02-24 09:17:41 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2025-02-25 18:49:14 +0000 Fix unsafe macro-expansion vulnerability Bug: https://bugs.gentoo.org/945164 Signed-off-by: Ulrich Müller <ulm@gentoo.org> emacs/26.3/15_all_trusted-content.patch | 262 ++++++++++++++++++++++++++++++++ emacs/27.2/16_all_trusted-content.patch | 262 ++++++++++++++++++++++++++++++++ emacs/28.2/19_all_trusted-content.patch | 262 ++++++++++++++++++++++++++++++++ emacs/29.4/07_all_trusted-content.patch | 261 +++++++++++++++++++++++++++++++ 4 files changed, 1047 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47f394193647eb7638f6740d4e5e47b9d6bff954 commit 47f394193647eb7638f6740d4e5e47b9d6bff954 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2025-02-25 18:52:41 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2025-02-25 18:58:15 +0000 app-editors/emacs: Fix flymake and man vulnerabilities Bug: https://bugs.gentoo.org/945164 Bug: https://bugs.gentoo.org/950192 Signed-off-by: Ulrich Müller <ulm@gentoo.org> app-editors/emacs/Manifest | 4 + app-editors/emacs/emacs-26.3-r22.ebuild | 377 +++++++++++++++++++ app-editors/emacs/emacs-27.2-r20.ebuild | 447 ++++++++++++++++++++++ app-editors/emacs/emacs-28.2-r16.ebuild | 558 +++++++++++++++++++++++++++ app-editors/emacs/emacs-29.4-r2.ebuild | 648 ++++++++++++++++++++++++++++++++ 5 files changed, 2034 insertions(+)