CVE-2026-71392

Integer Overflow in GNU Emacs for Android

Published Aug 10, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
GNU Emacs for Android is vulnerable to an integer overflow in the sfnt_read_cmap_format_12() function in src/sfnt.c. When processing a crafted TrueType font file, an unguarded addition in the xmalloc allocation call wraps around on 32-bit builds, causing a heap buffer overflow write. 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 results in heap memory corruption that can lead to code execution.


This issue was fixed in commit c4e20777c26548722a37b03db93243e83a0d6188

Analysis

AI-generated

Technical impact

GNU Emacs for Android contains an integer overflow in the sfnt_read_cmap_format_12() function, which is called when interpreting TrueType font tables. A crafted font file triggers an unchecked addition in an xmalloc call, causing the 32‑bit allocation size to wrap around. This overflow corrupts heap memory and can be used by an attacker to execute arbitrary code. The flaw is a classic CWE‑190 integer overflow. The vulnerability only manifests when Emacs processes a malicious font file.

Affected Systems

The affected product is GNU Emacs running on Android, specifically the 32‑bit builds of Emacs for Android. No specific release version is listed, so any installed Emacs for Android build that has not been updated with the patch commit should be considered vulnerable.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity. EPSS data is not available, and the issue is not listed in the CISA KEV catalog. The likely attack vector is delivery of a malicious TrueType font via email attachment, an EWW (Emacs Web Wowser) page, or a document that uses custom faces. Because the flaw requires a crafted font file to be interpreted by Emacs, an attacker must have some vectors of delivering files that Emacs will load.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Emacs for Android to a version that includes the patch commit c4e20777c26548722a37b03db93243e83a0d6188.
  • If upgrade is not immediately possible, configure Emacs to disable or restrict custom font loading, for example by removing custom font support in EWW or preventing Emacs from loading custom faces in documents.
  • Avoid opening unknown email attachments or documents that may contain malicious fonts until a patch is applied.

Generated by OpenCVE AI on August 10, 2026 at 11:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
Description GNU Emacs for Android is vulnerable to an integer overflow in the sfnt_read_cmap_format_12() function in src/sfnt.c. When processing a crafted TrueType font file, an unguarded addition in the xmalloc allocation call wraps around on 32-bit builds, causing a heap buffer overflow write. 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 results in heap memory corruption that can lead to code execution. This issue was fixed in commit c4e20777c26548722a37b03db93243e83a0d6188
Title Integer Overflow in GNU Emacs for Android
First Time appeared Gnu
Gnu emacs
Weaknesses CWE-190
CPEs cpe:2.3:a:gnu:emacs:*:*:32_bit:*:*:*:*:*
cpe:2.3:a:gnu:emacs:*:*:android:*:*:*:*:*
Vendors & Products Gnu
Gnu emacs
References
Metrics cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:L/SA:N'}

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
CERT-PL
Published
Updated
Aug 10, 2026, 5:48 PM
Reserved
Aug 6, 2026, 9:25 AM
Status
Deferred
Published
Aug 10, 2026, 11:17 AM
Modified
Oct 24, 2026, 3:10 PM
Severity
Important
Public date
Aug 10, 2026, 10:22 AM