Integer Overflow Vulnerability in GNU Emacs for Android
CVE-2026-71393
What is CVE-2026-71393?
GNU Emacs for Android is susceptible to an integer overflow vulnerability within the sfnt_read_name_table() function found in src/sfnt.c. This issue arises when the function computes an allocation size based on a 32-bit length value from a TrueType font file without proper overflow validation. On 32-bit systems, attackers can craft a malicious font that causes the allocation calculation to wrap, leading to insufficient heap memory allocation. As a result, a subsequent read() operation can overflow the allocated buffer, resulting in heap memory corruption. Attackers can exploit this vulnerability by delivering specially crafted font files through various channels, including email or the Emacs Web Wowser, potentially allowing for remote code execution.
Affected Version(s)
Emacs Android 0 <= 30.2
References
CVSS V4
Timeline
Vulnerability published
Vulnerability Reserved