CVE-2026-71410

Use-After-Free in GNU Screen

Low published · updated

2.1
CVSS score out of 10 · CNA (CERT-PL)

Description

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.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
screen gnu 0 → <5.0.25.0.2 CVE.org

References