GNU Screen contains a Use-After-Free vulnerability in the utf8_handle_comb() function due to improper error handling of memory allocation failures. This flaw allows dereferencing of a freed pointer when processing combining Unicode characters. An attacker controlling terminal content, such as through a malicious SSH server or crafted escape sequences, could exploit this to perform heap grooming and potentially achieve arbitrary code execution. The vulnerability is fixed in GNU Screen version 5.0.2.