CVE-2026-71410 PUBLISHED

Use-After-Free in GNU Screen

Assigner: CERT-PL
Reserved: 06.08.2026 Published: 26.11.2026 Updated: 26.11.2026

GNU Screen is vulnerable to a Use-After-Free in the utf8_handle_comb() function in encoding.c. Due to improper error handling during memory allocation failure, the global combchars pointer is freed but not reset to NULL. When a subsequent combining Unicode character arrives at the terminal, the function dereferences the freed pointer. An attacker who controls terminal content sent to the screen session, such as via a rogue SSH server or crafted escape sequences, can exploit this vulnerability to perform heap grooming and achieve arbitrary code execution.

This issue was fixed in version 5.0.2.

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:L/SI:L/SA:L
CVSS Score: 2.1

Product Status

Vendor GNU
Product Screen
Versions Default: unaffected
  • affected from 0 to 5.0.2 (excl.)

Credits

  • Michał Majchrowicz (AFINE Team) finder
  • Marcin Wyczechowski (AFINE Team) finder

References

Problem Types

  • CWE-416 Use After Free CWE