AZL-116329: CVE-2026-71410 affecting package screen 4.9.1-1
GNU Screen is vulnerable to a Use-After-Free in the utf8handlecomb() 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
screento a version that resolves this vulnerability.Fixed in 5.0.2
Event History
Frequently Asked Questions
Who is exposed to exploitation?
Screen sessions that display attacker-controlled terminal content are exposed. Examples given include connecting to a rogue SSH server or processing crafted terminal escape sequences.
What does an attacker need to do to exploit this issue?
The attacker needs to cause a memory-allocation failure in utf8_handle_comb() and then deliver a subsequent combining Unicode character to the terminal. Control over content sent to the screen session is the described delivery mechanism.
What version fixes the vulnerability?
The issue was fixed in GNU Screen version 5.0.2.