BSD Ports

Emacs -- Heap out-of-bounds write when rendering SVG images

· CVE-2026-6861 · VuXML entry

Problem Description When GNU Emacs renders an SVG image whose image spec includes a :css property, an off-by-one error in svg_load_image() writes a NUL byte one position past the end of a heap allocation. The copied string is also left without NUL termination within its allocation, causing a subsequent out-of-bounds read. Impact A single NUL byte heap overflow is a well-understood exploitation primitive ("poison NUL …

Affected versions

By system

1 still vulnerable, 3 fixed. Where VuXML applies (FreeBSD, DragonFly, FreeBSD's derivatives) a port is vulnerable while its version is in a range; pkgsrc says itself whether it lists a CVE of this advisory; OpenBSD and MidnightBSD keep no list this site reads, so their row is only an estimate: FreeBSD's ranges applied to upstream's version.

SystemPortVersionStateFixed
DragonFlyeditors/emacs30.1_2,3 vulnerable since 2026-07-06
OpenBSDeditors/emacs31.1-gtk3 out of range, by version
NetBSDeditors/emacs30.2 not listed
MidnightBSDeditors/emacs31.1_5,3 out of range, by version
FreeBSDeditors/emacs31.1_3,3 fixed (33 days after)
DragonFlyeditors/emacs-devel31.0.50.20250315_1,3 fixed
MidnightBSDeditors/emacs-devel31.0.50.20250515_4,3 out of range, by version
FreeBSDeditors/emacs-devel32.0.50.20261019,3 fixed (12 days after)