CVE-2026-77219

NameCVE-2026-77219
DescriptionGNU 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
emacs (PTS)bullseye1:27.1+1-3.1+deb11u5vulnerable
bullseye (security)1:27.1+1-3.1+deb11u6vulnerable
bookworm, bookworm (security)1:28.2+1-15+deb12u4vulnerable
trixie1:30.1+1-6vulnerable
forky, sid1:30.2+1-11vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
emacssource(unstable)(unfixed)

Notes

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81344
Fixed by: https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=b07e634e4cf45162ae0178e32092b040587f2c6c (emacs-31.0.91)

Search for package or bug name: Reporting problems