CVE-2026-71394
JSON

5.3medium

Heap Use of Uninitialized Memory in GNU Emacs for Android

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

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

Affected

Product or packageVersionsReported by
GNU Emacsup to 30.2CVE List

Classification

CWE-1284

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

What each source says

CVE List

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

NVD (es)

GNU Emacs para Android valida incorrectamente la entrada del encabezado de la tabla en sfnt_read_table_directory() en src/sfnt.c. Debido a una variable de comparación incorrecta en la verificación de longitud de lectura, un archivo de fuente manipulado que afirma contener más entradas de directorio de tabla de las realmente presentes hace que el analizador devuelva una estructura con memoria de pila no inicializada en las entradas del directorio de la tabla. 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 lleva al uso de datos de pila no inicializados en búsquedas de tabla posteriores, lo que podría resultar en revelación de información, fallos o acceso arbitrario a la memoria en objetivos de 32 bits. Este problema se soluciona después del commit 7621ee1d01229d50e5c0cddea6bf0b01095a62cf

References

Sources

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