CVE-2026-71391Off-by-One Error in GNU Emacs for Android
GNU Emacs for Android contains an off-by-one error in the gvar table parser in src/sfnt.c. The shared-coordinate index boundary check in sfnt_vary_simple_glyph() and sfnt_vary_compound_glyph() uses a strict greater-than comparison instead of greater-than-or-equal, allowing a crafted TrueType variable font to bypass the check and trigger a heap-based out-of-bounds read via memcpy. An attacker can deliver a malicious font file via email, EWW (Emacs Web Wowser), or documents with custom faces, causing Emacs to load it. This exposes heap memory contents which can be later used to defeat ASLR. This issue was fixed in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | emacs | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 26.10 | xemacs21 | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 26.10 | xemacs21-packages | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 26.04 | emacs | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 26.04 | xemacs21 | Under investigation | UBUNTU-CVE-2026-71391 | |
| Ubuntu 26.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2026-71391 | |
| Ubuntu 24.04 | emacs | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 24.04 | xemacs21 | Under investigation | UBUNTU-CVE-2026-71391 | |
| Ubuntu 24.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2026-71391 | |
| Ubuntu 22.04 | emacs | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 22.04 | xemacs21 | Under investigation | UBUNTU-CVE-2026-71391 | |
| Ubuntu 22.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2026-71391 | |
| Ubuntu 20.04 | emacs | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 20.04 | xemacs21 | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 20.04 | xemacs21-packages | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 18.04 | emacs25 | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 18.04 | xemacs21 | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 18.04 | xemacs21-packages | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 16.04 | emacs24 | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 16.04 | xemacs21 | Fix pending | UBUNTU-CVE-2026-71391 | |
| Ubuntu 16.04 | xemacs21-packages | Fix pending | UBUNTU-CVE-2026-71391 | |
| Red Hat Enterprise Linux 10 | emacs | Not affected | ||
| Red Hat Enterprise Linux 10 | emacs-common | Not affected | ||
| Red Hat Enterprise Linux 10 | emacs-filesystem | Not affected | ||
| Red Hat Enterprise Linux 10 | emacs-lucid | Not affected | ||
| Red Hat Enterprise Linux 10 | emacs-nw | Not affected | ||
| Red Hat Enterprise Linux 9 | emacs | Not affected | ||
| Red Hat Enterprise Linux 9 | emacs-common | Not affected | ||
| Red Hat Enterprise Linux 9 | emacs-filesystem | Not affected | ||
| Red Hat Enterprise Linux 9 | emacs-lucid | Not affected | ||
| Red Hat Enterprise Linux 9 | emacs-nox | Not affected | ||
| Red Hat Enterprise Linux 8 | emacs | Not affected | ||
| Red Hat Enterprise Linux 8 | emacs-common | Not affected | ||
| Red Hat Enterprise Linux 8 | emacs-filesystem | Not affected | ||
| Red Hat Enterprise Linux 8 | emacs-lucid | Not affected | ||
| Red Hat Enterprise Linux 8 | emacs-nox | Not affected | ||
| Red Hat Enterprise Linux 8 | emacs-terminal | Not affected | ||
| Red Hat Enterprise Linux 7 | emacs | Not affected | ||
| Red Hat Enterprise Linux 7 | emacs-common | Not affected | ||
| Red Hat Enterprise Linux 7 | emacs-el | Not affected | ||
| Red Hat Enterprise Linux 7 | emacs-filesystem | Not affected | ||
| Red Hat Enterprise Linux 7 | emacs-nox | Not affected | ||
| Red Hat Enterprise Linux 7 | emacs-terminal | Not affected | ||
| Red Hat Enterprise Linux 6 | emacs | Not affected | ||
| Red Hat Enterprise Linux 6 | emacs-common | Not affected | ||
| Red Hat Enterprise Linux 6 | emacs-el | Not affected | ||
| Red Hat Enterprise Linux 6 | emacs-nox | Not affected |
What the vendor says
As published in the CVE record by CERT-PL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GNU Emacs: affected: up to 30.2
References
- https://cert.pl/en/posts/2026/08/CVE-2026-71391
- https://www.gnu.org/savannah-checkouts/gnu/emacs/emacs.html
- https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.