CVE-2026-71394: CWE-1284 Improper Validation of Specified Quantity in Input in GNU Emacs
GNU Emacs for Android improperly validates the table header input in sfnt_read_table_directory() in src/sfnt.c. Due to an incorrect comparison variable in the read-length check, a crafted font file that claims to contain more table directory entries than actually present causes the parser to return a struct with uninitialized heap memory in the table directory entries. 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 leads to the use of uninitialized heap data in subsequent table lookups, potentially resulting in information disclosure, crashes, or arbitrary memory access on 32-bit targets. This issue is fixed after commit 7621ee1d01229d50e5c0cddea6bf0b01095a62cf
AI Analysis
Technical Summary
The vulnerability in GNU Emacs for Android arises from improper validation of the specified quantity in the font table directory input within the sfnt_read_table_directory() function in src/sfnt.c. An incorrect comparison variable in the read-length check allows a maliciously crafted font file to claim more table directory entries than actually present. This causes the parser to return a structure containing uninitialized heap memory in the table directory entries. When Emacs loads such a font file—delivered via email, EWW browser, or documents with custom faces—subsequent table lookups may use this uninitialized memory, potentially resulting in information disclosure, application crashes, or arbitrary memory access on 32-bit targets. The issue has been addressed and fixed in a specific commit (7621ee1d01229d50e5c0cddea6bf0b01095a62cf).
Potential Impact
Exploitation of this vulnerability can lead to information disclosure, application crashes, or arbitrary memory access on 32-bit systems running GNU Emacs for Android. The vulnerability arises from use of uninitialized heap memory due to improper input validation of font table directory entries. There is no indication of active exploitation in the wild.
Mitigation Recommendations
A fix for this vulnerability is available and has been applied in the commit 7621ee1d01229d50e5c0cddea6bf0b01095a62cf. Users and administrators should update GNU Emacs for Android to a version that includes this fix. Since no official patch version or advisory is provided, check the GNU Emacs project repositories or official channels for the updated version containing this commit.
CVE-2026-71394: CWE-1284 Improper Validation of Specified Quantity in Input in GNU Emacs
Description
GNU Emacs for Android improperly validates the table header input in sfnt_read_table_directory() in src/sfnt.c. Due to an incorrect comparison variable in the read-length check, a crafted font file that claims to contain more table directory entries than actually present causes the parser to return a struct with uninitialized heap memory in the table directory entries. 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 leads to the use of uninitialized heap data in subsequent table lookups, potentially resulting in information disclosure, crashes, or arbitrary memory access on 32-bit targets. This issue is fixed after commit 7621ee1d01229d50e5c0cddea6bf0b01095a62cf
CVSS v4.0
Score 5.3medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in GNU Emacs for Android arises from improper validation of the specified quantity in the font table directory input within the sfnt_read_table_directory() function in src/sfnt.c. An incorrect comparison variable in the read-length check allows a maliciously crafted font file to claim more table directory entries than actually present. This causes the parser to return a structure containing uninitialized heap memory in the table directory entries. When Emacs loads such a font file—delivered via email, EWW browser, or documents with custom faces—subsequent table lookups may use this uninitialized memory, potentially resulting in information disclosure, application crashes, or arbitrary memory access on 32-bit targets. The issue has been addressed and fixed in a specific commit (7621ee1d01229d50e5c0cddea6bf0b01095a62cf).
Potential Impact
Exploitation of this vulnerability can lead to information disclosure, application crashes, or arbitrary memory access on 32-bit systems running GNU Emacs for Android. The vulnerability arises from use of uninitialized heap memory due to improper input validation of font table directory entries. There is no indication of active exploitation in the wild.
Mitigation Recommendations
A fix for this vulnerability is available and has been applied in the commit 7621ee1d01229d50e5c0cddea6bf0b01095a62cf. Users and administrators should update GNU Emacs for Android to a version that includes this fix. Since no official patch version or advisory is provided, check the GNU Emacs project repositories or official channels for the updated version containing this commit.
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: 6a79aaecbf8831d53985a8f2
Added to database: 08/10/2026, 10:41:48 UTC
Last enriched: 08/10/2026, 11:02:43 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.