Bug 2584981 (CVE-2026-71410)

Summary: CVE-2026-71410 screen: use-after-free in utf8_handle_comb()
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: rhel-process-autobot, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in GNU screen. A use-after-free issue can occur in utf8_handle_comb() in encoding.c due to improper error handling during a memory allocation failure, where the global combchars pointer is freed without being reset to NULL. When a subsequent combining Unicode character is processed by the terminal, the function dereferences the freed pointer. An attacker who controls terminal output sent to the screen session, such as through a malicious SSH server or crafted escape sequences, may exploit this vulnerability to cause an application crash or achieve arbitrary code execution.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2585183, 2585184    
Bug Blocks:    

Description OSIDB Bzimport 2026-11-26 13:31:33 UTC
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.