# CVE-2026-71393: Heap Buffer Overflow in GNU Emacs for Android

- Severity: Medium 5.3 (CVSS:4.0, scored by CERT-PL) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-08-10T10:22:37.299Z
- Modified: 2026-10-24T15:10:00.190Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CERT-PL

## Description

GNU Emacs for Android is vulnerable to an integer overflow in sfnt_read_name_table() in src/sfnt.c. The function computes an allocation size using a 32-bit length value from a TrueType font file without overflow checking. On 32-bit targets, a crafted font causes the calculation to wrap, resulting in an undersized heap allocation. A subsequent read() call writes beyond the buffer, causing a heap buffer overflow. 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 can lead to heap memory corruption and potential code execution.




This issue was fixed in commit d51a4722316efe0960994d371e1859099894d1ca

(As written by CVE List.)

## Affected

- GNU Emacs: up to 30.2

## References

- <https://cert.pl/en/posts/2026/08/CVE-2026-71391> (third-party-advisory)
- <https://www.gnu.org/savannah-checkouts/gnu/emacs/emacs.html> (product)
- <https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=d51a4722316efe0960994d371e1859099894d1ca> (patch)

## Sources

- CVE List: [CVE-2026-71393](https://www.cve.org/CVERecord?id=CVE-2026-71393), CVE Terms of Use, modified 2026-08-10
- NVD: [CVE-2026-71393](https://nvd.nist.gov/vuln/detail/CVE-2026-71393), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-71393 · Whole record: https://cve.day/CVE-2026-71393.json · Rebuilt by cve.day 2026-11-25T22:59:31.988Z
