CVE-2026-77219GNU Emacs < 31.0.91 Heap Over-Read via PBM/PPM/PGM Image Loader
GNU Emacs before 31.0.91 contains an integer overflow in the PBM/PPM/PGM image loader that allows an attacker to leak heap memory contents by supplying a crafted image with large dimensions and an elevated max color index. The image loader multiplies image dimensions and channel count using signed integer arithmetic; for sufficiently large values, the result wraps to a negative number, bypassing the bounds check and causing the pixel reader to access heap memory past the end of the allocated buffer. The over-read contents are interpreted as pixel color values and rendered on screen.
What to do
Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have 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-77219 | |
| Ubuntu 26.10 | xemacs21 | Fix pending | UBUNTU-CVE-2026-77219 | |
| Ubuntu 26.10 | xemacs21-packages | Fix pending | UBUNTU-CVE-2026-77219 | |
| Ubuntu 26.04 | emacs | Fix pending | UBUNTU-CVE-2026-77219 | |
| Ubuntu 26.04 | xemacs21 | Under investigation | UBUNTU-CVE-2026-77219 | |
| Ubuntu 26.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2026-77219 | |
| Ubuntu 24.04 | emacs | Fix pending | UBUNTU-CVE-2026-77219 | |
| Ubuntu 24.04 | xemacs21 | Under investigation | UBUNTU-CVE-2026-77219 | |
| Ubuntu 24.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2026-77219 | |
| Ubuntu 22.04 | emacs | Fix pending | UBUNTU-CVE-2026-77219 | |
| Ubuntu 22.04 | xemacs21 | Under investigation | UBUNTU-CVE-2026-77219 | |
| Ubuntu 22.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2026-77219 | |
| Ubuntu 20.04 | emacs | Fix pending | UBUNTU-CVE-2026-77219 | |
| Ubuntu 20.04 | xemacs21 | Fix pending | UBUNTU-CVE-2026-77219 | |
| Ubuntu 20.04 | xemacs21-packages | Fix pending | UBUNTU-CVE-2026-77219 | |
| Ubuntu 18.04 | emacs25 | Fix pending | UBUNTU-CVE-2026-77219 | |
| Ubuntu 18.04 | xemacs21 | Fix pending | UBUNTU-CVE-2026-77219 | |
| Ubuntu 18.04 | xemacs21-packages | Fix pending | UBUNTU-CVE-2026-77219 | |
| Ubuntu 16.04 | emacs24 | Fix pending | UBUNTU-CVE-2026-77219 | |
| Ubuntu 16.04 | xemacs21 | Fix pending | UBUNTU-CVE-2026-77219 | |
| Ubuntu 16.04 | xemacs21-packages | Fix pending | UBUNTU-CVE-2026-77219 | |
| Debian 14 | emacs | Fix pending | DEBIAN-CVE-2026-77219 | |
| Debian 13 | emacs | Fix pending | DEBIAN-CVE-2026-77219 | |
| Debian 12 | emacs | Fix pending | DEBIAN-CVE-2026-77219 | |
| Red Hat Enterprise Linux 10 | emacs | Fixed | 1:29.4-14.el10_2.3 | RHSA-2026:98574 |
| Red Hat Enterprise Linux 10 | emacs-common | Fixed | 1:29.4-17.el10_3 | RHSA-2026:84591 |
| Red Hat Enterprise Linux 10 | emacs-filesystem | Fixed | 1:29.4-17.el10_3 | RHSA-2026:84591 |
| Red Hat Enterprise Linux 10 | emacs-lucid | Fixed | 1:29.4-14.el10_2.3 | RHSA-2026:98574 |
| Red Hat Enterprise Linux 10 | emacs-nw | Fixed | 1:29.4-17.el10_3 | RHSA-2026:84591 |
| Red Hat Enterprise Linux 9 | emacs | Fixed | 1:27.2-18.el9_8.2 | RHSA-2026:80507 |
| Red Hat Enterprise Linux 9 | emacs-common | Fixed | 1:27.2-18.el9_8.2 | RHSA-2026:80507 |
| Red Hat Enterprise Linux 9 | emacs-filesystem | Fixed | 1:27.2-18.el9_8.2 | RHSA-2026:80507 |
| Red Hat Enterprise Linux 9 | emacs-lucid | Fixed | 1:27.2-18.el9_8.2 | RHSA-2026:80507 |
| Red Hat Enterprise Linux 9 | emacs-nox | Fixed | 1:27.2-18.el9_8.2 | RHSA-2026:80507 |
| Red Hat Enterprise Linux 8 | emacs | Fixed | 1:26.1-15.el8_10.2 | RHSA-2026:80506 |
| Red Hat Enterprise Linux 8 | emacs-common | Fixed | 1:26.1-15.el8_10.2 | RHSA-2026:80506 |
| Red Hat Enterprise Linux 8 | emacs-filesystem | Fixed | 1:26.1-15.el8_10.2 | RHSA-2026:80506 |
| Red Hat Enterprise Linux 8 | emacs-lucid | Fixed | 1:26.1-15.el8_10.2 | RHSA-2026:80506 |
| Red Hat Enterprise Linux 8 | emacs-nox | Fixed | 1:26.1-15.el8_10.2 | RHSA-2026:80506 |
| Red Hat Enterprise Linux 8 | emacs-terminal | Fixed | 1:26.1-15.el8_10.2 | RHSA-2026:80506 |
| Red Hat Enterprise Linux 7 | emacs | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | emacs-common | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | emacs-el | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | emacs-filesystem | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | emacs-nox | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | emacs-terminal | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | emacs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | emacs-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | emacs-el | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | emacs-nox | Will not fix Out of support scope | ||
| AlmaLinux 10 | emacs | Fixed | 1:29.4-17.el10_3 | ALSA-2026:98574 |
| AlmaLinux 10 | emacs-common | Fixed | 1:29.4-17.el10_3 | ALSA-2026:98574 |
| AlmaLinux 10 | emacs-filesystem | Fixed | 1:29.4-17.el10_3 | ALSA-2026:84591 |
| AlmaLinux 10 | emacs-lucid | Fixed | 1:29.4-17.el10_3 | ALSA-2026:98574 |
| AlmaLinux 10 | emacs-nw | Fixed | 1:29.4-17.el10_3 | ALSA-2026:98574 |
| AlmaLinux 9 | emacs | Fixed | 1:27.2-18.el9_8.2 | ALSA-2026:80507 |
| AlmaLinux 9 | emacs-common | Fixed | 1:27.2-18.el9_8.2 | ALSA-2026:80507 |
| AlmaLinux 9 | emacs-filesystem | Fixed | 1:27.2-18.el9_8.2 | ALSA-2026:80507 |
| AlmaLinux 9 | emacs-lucid | Fixed | 1:27.2-18.el9_8.2 | ALSA-2026:80507 |
| AlmaLinux 9 | emacs-nox | Fixed | 1:27.2-18.el9_8.2 | ALSA-2026:80507 |
| AlmaLinux 8 | emacs | Fixed | 1:26.1-15.el8_10.2 | ALSA-2026:80506 |
| AlmaLinux 8 | emacs-common | Fixed | 1:26.1-15.el8_10.2 | ALSA-2026:80506 |
| AlmaLinux 8 | emacs-filesystem | Fixed | 1:26.1-15.el8_10.2 | ALSA-2026:80506 |
| AlmaLinux 8 | emacs-lucid | Fixed | 1:26.1-15.el8_10.2 | ALSA-2026:80506 |
| AlmaLinux 8 | emacs-nox | Fixed | 1:26.1-15.el8_10.2 | ALSA-2026:80506 |
| AlmaLinux 8 | emacs-terminal | Fixed | 1:26.1-15.el8_10.2 | ALSA-2026:80506 |
| Rocky Linux 10 | emacs | Fixed | 1:29.4-17.el10_3 | RLSA-2026:98574 |
| Rocky Linux 10 | emacs-common | Fixed | 1:29.4-17.el10_3 | RLSA-2026:98574 |
| Rocky Linux 10 | emacs-filesystem | Fixed | 1:29.4-17.el10_3 | RLSA-2026:98574 |
| Rocky Linux 10 | emacs-lucid | Fixed | 1:29.4-17.el10_3 | RLSA-2026:98574 |
| Rocky Linux 10 | emacs-nw | Fixed | 1:29.4-17.el10_3 | RLSA-2026:98574 |
| Rocky Linux 9 | emacs | Fixed | 1:27.2-18.el9_8.2 | RLSA-2026:80507 |
| Rocky Linux 8 | emacs | Fixed | 1:26.1-15.el8_10.2 | RLSA-2026:80506 |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GNU Emacs: affected: before 31.0.91; fixed in
31.0.91
Vendor advisories:
- https://github.com/emacs-mirror/emacs/releases/tag/emacs-31.0.91 (release-notes)
- https://github.com/emacs-mirror/emacs/commit/b07e634e4cf45162ae0178e32092b040587f2c6c (patch)
References
- https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81344
- https://github.com/emacs-mirror/emacs/releases/tag/emacs-31.0.91
- https://github.com/emacs-mirror/emacs/commit/b07e634e4cf45162ae0178e32092b040587f2c6c
- https://www.vulncheck.com/advisories/gnu-emacs-heap-over-read-via-pbm-ppm-pgm-image-loader
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.