CVE-2026-71391
JSON

5.3medium

Off-by-One Error in GNU Emacs for Android

Severity
5.3medium CVSS:4.0 by CERT-PL
Exploit likelihood
0.33% (higher than 27% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
CERT-PL

Description

GNU Emacs for Android contains an off-by-one error in the gvar table parser in src/sfnt.c. The shared-coordinate index boundary check in sfnt_vary_simple_glyph() and sfnt_vary_compound_glyph() uses a strict greater-than comparison instead of greater-than-or-equal, allowing a crafted TrueType variable font to bypass the check and trigger a heap-based out-of-bounds read via memcpy. 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 exposes heap memory contents which can be later used to defeat ASLR. This issue was fixed in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe

Affected

Product or packageVersionsReported by
GNU Emacsup to 30.2CVE List

Classification

CWE-193

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

GNU Emacs for Android contains an off-by-one error in the gvar table parser in src/sfnt.c. The shared-coordinate index boundary check in sfnt_vary_simple_glyph() and sfnt_vary_compound_glyph() uses a strict greater-than comparison instead of greater-than-or-equal, allowing a crafted TrueType variable font to bypass the check and trigger a heap-based out-of-bounds read via memcpy. 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 exposes heap memory contents which can be later used to defeat ASLR. This issue was fixed in commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe

NVD (es)

GNU Emacs para Android contiene un error de “off-by-one” en el analizador de la tabla gvar en src/sfnt.c. La verificación de límites del índice de coordenadas compartidas en sfnt_vary_simple_glyph() y sfnt_vary_compound_glyph() utiliza una comparación estricta de “mayor que” en lugar de “mayor o igual que”, permitiendo que una fuente variable TrueType manipulada omita la verificación y active una lectura fuera de límites basada en el “heap” a través de memcpy. Un atacante puede entregar un archivo de fuente malicioso a través de correo electrónico, EWW (Emacs Web Wowser) o documentos con caras personalizadas, haciendo que Emacs lo cargue. Esto expone el contenido de la memoria del “heap” que puede ser utilizado posteriormente para eludir ASLR. Este problema fue corregido en el commit 95ab9ef627b212d74d321c5bbb5b56a1be7b9fbe

References

Sources

SourceRecordLicence
CVE ListCVE-2026-71391 changed 2026-08-10CVE Terms of Use
NVDCVE-2026-71391 changed 2026-10-24Public domain