p PatchFirst

CVE-2026-77219

CVE-2026-77219 · GNU Emacs < 31.0.91 Heap Over-Read via PBM/PPM/PGM Image Loader

CVSS 6.9 · Medium · EPSS 0.1% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • emacsUpdate to 31.0.91
  • emacs Debian 12No fix published
  • emacs Debian 13No fix published
  • emacs Debian 14No fix published
  • and 20 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="emacs"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

This page shows selected source facts. See the linked advisories for the complete description and affected versions.

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.

Published
Updated

Fixes in distributions

  • RHSA-2026:98574 · Red Hat Enterprise Linux 10.3 ·
  • RLSA-2026:98574 · Rocky Linux 10 ·
  • ALSA-2026:98574 · AlmaLinux 10 ·
  • RLSA-2026:84591 · Rocky Linux 10 ·
  • RHSA-2026:84591 · Red Hat Enterprise Linux 10.2 ·
  • ALSA-2026:84591 · AlmaLinux 10 ·
  • RHSA-2026:80507 · Red Hat Enterprise Linux 9 appstream ·
  • RHSA-2026:80506 · Red Hat Enterprise Linux 8 appstream, Red Hat Enterprise Linux 8 baseos ·
  • RLSA-2026:80507 · Rocky Linux 9 ·
  • RLSA-2026:80506 · Rocky Linux 8 ·
  • ALSA-2026:80506 · AlmaLinux 8 ·
  • ALSA-2026:80507 · AlmaLinux 9 ·
  • SUSE-SU-2026:4083-1 · SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS, SUSE Linux Enterprise Module for Basesystem 15 SP7, SUSE Linux Enterprise Module for Desktop Applications 15 SP7, SUSE Linux Enterprise Server 15 SP4-LTSS, SUSE Linux Enterprise Server 15 SP5-LTSS, SUSE Linux Enterprise Server 15 SP6-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP4, SUSE Linux Enterprise Server for SAP Applications 15 SP5, SUSE Linux Enterprise Server for SAP Applications 15 SP6 ·
  • SUSE-SU-2026:3993-1 · SUSE Linux Enterprise Server 12 SP5-LTSS, SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 ·
  • SUSE-SU-2026:23589-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
  • openSUSE-SU-2026:21711-1 · openSUSE Leap 16.0 ·

Stack: system

Affected products and versions

  • emacs

    Versions
    • ≥ 0, < 31.0.91: Affected (semver)

    Update to 31.0.91

  • emacs Debian 12

    Versions
    • 1:28.2+1-15
    • 1:28.2+1-15+deb12u1
    • 1:28.2+1-15+deb12u2
    • 1:28.2+1-15+deb12u3
    • 1:28.2+1-15+deb12u4
    • 1:28.2+1-16
    All versions (53)
    • 1:29.1+1-1
    • 1:29.1+1-2
    • 1:29.1+1-3
    • 1:29.1+1-4
    • 1:29.1+1-5
    • 1:29.1+1-5~bpo12+1
    • 1:29.2+1-1
    • 1:29.2+1-2
    • 1:29.2+1-2~bpo12+1
    • 1:29.3+1-1
    • 1:29.3+1-2
    • 1:29.3+1-2~bpo12+1
    • 1:29.3+1-3
    • 1:29.3+1-3~bpo12+1
    • 1:29.4+1-1
    • 1:29.4+1-2
    • 1:29.4+1-2~bpo12+1
    • 1:29.4+1-3
    • 1:29.4+1-4
    • 1:29.4+1-4~bpo12+1
    • 1:29.4+1-5
    • 1:29.4+1-6
    • 1:29.4+1-6+alpha
    • 1:30.1+1-1
    • 1:30.1+1-2
    • 1:30.1+1-3
    • 1:30.1+1-3~bpo12+1
    • 1:30.1+1-4
    • 1:30.1+1-4~bpo12+1
    • 1:30.1+1-5
    • 1:30.1+1-5~bpo12+1
    • 1:30.1+1-6
    • 1:30.1+1-6~bpo12+1
    • 1:30.1+1-7
    • 1:30.1+1-8
    • 1:30.1+1-9
    • 1:30.2+1-1
    • 1:30.2+1-10
    • 1:30.2+1-11
    • 1:30.2+1-2
    • 1:30.2+1-3
    • 1:30.2+1-4
    • 1:30.2+1-5
    • 1:30.2+1-6
    • 1:30.2+1-7
    • 1:30.2+1-8
    • 1:30.2+1-9
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • emacs Debian 13

    Versions
    • 1:30.1+1-6
    • 1:30.1+1-6+deb13u1
    • 1:30.1+1-7
    • 1:30.1+1-8
    • 1:30.1+1-9
    • 1:30.2+1-1
    All versions (16)
    • 1:30.2+1-10
    • 1:30.2+1-11
    • 1:30.2+1-2
    • 1:30.2+1-3
    • 1:30.2+1-4
    • 1:30.2+1-5
    • 1:30.2+1-6
    • 1:30.2+1-7
    • 1:30.2+1-8
    • 1:30.2+1-9
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • emacs Debian 14

    Versions
    • 1:30.1+1-6
    • 1:30.1+1-7
    • 1:30.1+1-8
    • 1:30.1+1-9
    • 1:30.2+1-1
    • 1:30.2+1-10
    All versions (15)
    • 1:30.2+1-11
    • 1:30.2+1-2
    • 1:30.2+1-3
    • 1:30.2+1-4
    • 1:30.2+1-5
    • 1:30.2+1-6
    • 1:30.2+1-7
    • 1:30.2+1-8
    • 1:30.2+1-9
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • emacs24 Ubuntu Pro 16.04 LTS

    Versions
    • 24.5+1-1ubuntu2
    • 24.5+1-1ubuntu4
    • 24.5+1-1ubuntu5
    • 24.5+1-1ubuntu6
    • 24.5+1-1ubuntu7
    • 24.5+1-6ubuntu1
    All versions (11)
    • 24.5+1-6ubuntu1.1
    • 24.5+1-6ubuntu1.1+esm1
    • 24.5+1-6ubuntu1.1+esm2
    • 24.5+1-6ubuntu1.1+esm3
    • 24.5+1-6ubuntu1.1+esm4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21 Ubuntu 16.04 LTS

    Versions
    • 21.4.22-4ubuntu3
    • 21.4.22-14ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21-packages Ubuntu 16.04 LTS

    Versions
    • 2009.02.17.dfsg.2-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • emacs25 Ubuntu Pro 18.04 LTS

    Versions
    • 25.2+1-6
    • 25.2+1-6ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21 Ubuntu 18.04 LTS

    Versions
    • 21.4.24-4ubuntu1
    • 21.4.24-5ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21-packages Ubuntu 18.04 LTS

    Versions
    • 2009.02.17.dfsg.2-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • emacs Ubuntu Pro 20.04 LTS

    Versions
    • 1:26.3+1-1ubuntu1
    • 1:26.3+1-1ubuntu2
    • 1:26.3+1-1ubuntu2+esm1
    • 1:26.3+1-1ubuntu2+esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21 Ubuntu 20.04 LTS

    Versions
    • 21.4.24-8build1
    • 21.4.24-9
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21-packages Ubuntu 20.04 LTS

    Versions
    • 2009.02.17.dfsg.2-4
    • 2009.02.17.dfsg.2-5
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21 Ubuntu 22.04 LTS

    Versions
    • 21.4.24-9ubuntu2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21-packages Ubuntu 22.04 LTS

    Versions
    • 2009.02.17.dfsg.2-5
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • emacs Ubuntu Pro 22.04 LTS

    Versions
    • 1:27.1+1-3ubuntu3
    • 1:27.1+1-3ubuntu5
    • 1:27.1+1-3ubuntu5.1
    • 1:27.1+1-3ubuntu5.2
    • 1:27.1+1-3ubuntu5.2+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21 Ubuntu 24.04 LTS

    Versions
    • 21.4.24-12
    • 21.4.24-12build2
    • 21.4.24-12build3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21-packages Ubuntu 24.04 LTS

    Versions
    • 2009.02.17.dfsg.3-2
    • 2009.02.17.dfsg.3-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • emacs Ubuntu Pro 24.04 LTS

    Versions
    • 1:29.1+1-5ubuntu1
    • 1:29.2+1-1ubuntu1
    • 1:29.2+1-2ubuntu4
    • 1:29.3+1-1ubuntu2
    • 1:29.3+1-1ubuntu2+esm1
    • 1:29.3+1-1ubuntu2+esm3
    All versions (7)
    • 1:29.3+1-1ubuntu2+esm4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • emacs Ubuntu 26.10

    Versions
    • 1:30.2+1-2ubuntu1
    • 1:30.2+1-6ubuntu1
    • 1:30.2+1-11ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21 Ubuntu 26.10

    Versions
    • 21.4.24-12build3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21-packages Ubuntu 26.10

    Versions
    • 2009.02.17.dfsg.3-3build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21 Ubuntu 26.04 LTS

    Versions
    • 21.4.24-12build3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • xemacs21-packages Ubuntu 26.04 LTS

    Versions
    • 2009.02.17.dfsg.3-3
    • 2009.02.17.dfsg.3-3build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →