Distro News

Ubuntu patches Emacs symbol shorthand flaw that allows code execution from crafted files

Key Takeaway

Emacs mishandles symbol shorthands defined by opened files, letting a crafted document trigger arbitrary code execution; fixes ship only through Ubuntu Pro ESM for 24.04 LTS and 26.04 LTS.

Summary

Ubuntu published USN-9467-1 on 3 December 2026 covering a code-execution flaw in GNU Emacs tracked as CVE-2026-96269. The defect lies in how Emacs processes symbol shorthands that are set by files it opens, so a document crafted by an attacker can influence the editor's symbol resolution and lead to arbitrary code running with the user's privileges. The advisory affects the emacs package on Ubuntu 24.04 LTS (noble) and 26.04 LTS (resolute).

Fixed builds are 1:29.3+1-1ubuntu2+esm5 for 24.04 LTS and 1:30.2+1-2ubuntu1+esm2 for 26.04 LTS. Both are delivered through Ubuntu Pro's ESM Apps channel, and the notice states a community fix might become publicly available later. A standard system update applies the corrected package; users without Ubuntu Pro remain exposed until a fix reaches the regular archive.

How the Emacs shorthand flaw enables code execution

  • Defect class: Emacs does not correctly handle symbol shorthands that are established by files it opens, so file-controlled shorthand definitions can redirect symbol resolution inside the editor.
  • Attack vector: The issue is user-assisted and file-based: an attacker must persuade a victim to open a specially crafted file, after which the advisory states arbitrary code could be executed.
  • Affected releases: Ubuntu 24.04 LTS carries emacs 1:29.3+1-1ubuntu2+esm5 and Ubuntu 26.04 LTS carries emacs 1:30.2+1-2ubuntu1+esm2 as the corrected versions.
  • Delivery channel: Both fixes are marked Ubuntu Pro and arrive via ESM Apps, with the notice noting a community fix might appear publicly in the future.
  • Remediation: Ubuntu states a standard system update makes the necessary changes, so administrators should refresh the emacs package on affected LTS systems.

Why it matters

Emacs is a long-lived development environment on many Ubuntu servers and workstations, and a file-open path to code execution is a meaningful risk for anyone who inspects untrusted source, notes or mail attachments in the editor. Because the fixes are gated behind Ubuntu Pro ESM Apps for both supported LTS releases, organizations without a Pro subscription must either enroll or restrict how Emacs handles unfamiliar files until a community build lands.

Original reference: ubuntu.com →