5.3medium
Integer Overflow in GNU Emacs for Android
- Severity
- 5.3medium CVSS:4.0 by CERT-PL
- Exploit likelihood
- 0.39% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- CERT-PL
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
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| GNU Emacs | up to 30.2 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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
NVD (es)
GNU Emacs para Android es vulnerable a un desbordamiento de entero en la función sfnt_read_cmap_format_12() en src/sfnt.c. Al procesar un archivo de fuente TrueType manipulado, una adición no protegida en la llamada de asignación xmalloc se desborda en compilaciones de 32 bits, causando una escritura de desbordamiento de búfer de pila. 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 resulta en corrupción de memoria de pila que puede conducir a la ejecución de código. Este problema fue solucionado en el commit c4e20777c26548722a37b03db93243e83a0d6188
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-71392 changed 2026-08-10 | CVE Terms of Use |
| NVD | CVE-2026-71392 changed 2026-10-24 | Public domain |