CVE-2026-71393: CWE-190 Integer Overflow or Wraparound in GNU Emacs
GNU Emacs for Android is vulnerable to an integer overflow in sfnt_read_name_table() in src/sfnt.c. The function computes an allocation size using a 32-bit length value from a TrueType font file without overflow checking. On 32-bit targets, a crafted font causes the calculation to wrap, resulting in an undersized heap allocation. A subsequent read() call writes beyond the buffer, causing a heap buffer overflow. An attacker can deliver a malicious font file via email, EWW (Emacs Web Wowser), or documents with custom faces, causing Emacs to load it. This can lead to heap memory corruption and potential code execution. This issue was fixed in commit d51a4722316efe0960994d371e1859099894d1ca
AI Analysis
Technical Summary
The vulnerability in GNU Emacs for Android (CVE-2026-71393) is an integer overflow in the sfnt_read_name_table() function. The function calculates an allocation size using a 32-bit length value extracted from a TrueType font file without checking for overflow. On 32-bit targets, a crafted font file can cause this calculation to wrap around, resulting in an undersized heap allocation. Subsequently, a read() operation writes beyond the allocated buffer, causing a heap buffer overflow. This can be triggered by an attacker delivering a malicious font file via email, EWW, or documents with custom faces that Emacs loads. The heap corruption may lead to potential code execution. The vulnerability was fixed in commit d51a4722316efe0960994d371e1859099894d1ca.
Potential Impact
Successful exploitation can cause heap memory corruption and may allow an attacker to execute arbitrary code on affected systems running GNU Emacs for Android. The attack vector includes delivery of malicious font files through common Emacs features such as email, the web browser (EWW), or documents with custom font faces. The vulnerability affects 32-bit targets due to integer overflow in memory allocation calculations.
Mitigation Recommendations
A fix for this vulnerability has been implemented in commit d51a4722316efe0960994d371e1859099894d1ca. Users should update GNU Emacs for Android to a version that includes this commit. Patch status is not explicitly confirmed in the provided data; therefore, verify the vendor advisory or official GNU Emacs repositories for the availability of the fixed version. Until patched, avoid opening untrusted font files or documents that may load custom fonts in Emacs.
CVE-2026-71393: CWE-190 Integer Overflow or Wraparound in GNU Emacs
Description
GNU Emacs for Android is vulnerable to an integer overflow in sfnt_read_name_table() in src/sfnt.c. The function computes an allocation size using a 32-bit length value from a TrueType font file without overflow checking. On 32-bit targets, a crafted font causes the calculation to wrap, resulting in an undersized heap allocation. A subsequent read() call writes beyond the buffer, causing a heap buffer overflow. An attacker can deliver a malicious font file via email, EWW (Emacs Web Wowser), or documents with custom faces, causing Emacs to load it. This can lead to heap memory corruption and potential code execution. This issue was fixed in commit d51a4722316efe0960994d371e1859099894d1ca
CVSS v4.0
Score 5.3medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in GNU Emacs for Android (CVE-2026-71393) is an integer overflow in the sfnt_read_name_table() function. The function calculates an allocation size using a 32-bit length value extracted from a TrueType font file without checking for overflow. On 32-bit targets, a crafted font file can cause this calculation to wrap around, resulting in an undersized heap allocation. Subsequently, a read() operation writes beyond the allocated buffer, causing a heap buffer overflow. This can be triggered by an attacker delivering a malicious font file via email, EWW, or documents with custom faces that Emacs loads. The heap corruption may lead to potential code execution. The vulnerability was fixed in commit d51a4722316efe0960994d371e1859099894d1ca.
Potential Impact
Successful exploitation can cause heap memory corruption and may allow an attacker to execute arbitrary code on affected systems running GNU Emacs for Android. The attack vector includes delivery of malicious font files through common Emacs features such as email, the web browser (EWW), or documents with custom font faces. The vulnerability affects 32-bit targets due to integer overflow in memory allocation calculations.
Mitigation Recommendations
A fix for this vulnerability has been implemented in commit d51a4722316efe0960994d371e1859099894d1ca. Users should update GNU Emacs for Android to a version that includes this commit. Patch status is not explicitly confirmed in the provided data; therefore, verify the vendor advisory or official GNU Emacs repositories for the availability of the fixed version. Until patched, avoid opening untrusted font files or documents that may load custom fonts in Emacs.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CERT-PL
- Date Reserved
- 2026-08-06T09:25:32.311Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a79aaecbf8831d53985a8eb
Added to database: 08/10/2026, 10:41:48 UTC
Last enriched: 08/10/2026, 11:02:55 UTC
Last updated: 08/10/2026, 17:57:00 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.