CVE-2026-71410: Use-After-Free in GNU Screen

Published Nov 26, 2026
·
Updated

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

1 affected component
GNU GNU screen<5.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GNU Screen to a version that resolves this vulnerability.

    Fixed in 5.0.2

Event History

Nov 26, 2026
CVE Published
via MITRE·01:22 PM
Data Sourced
via MITRE·01:22 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is realistically exposed to this vulnerability?

Users running GNU Screen who connect to untrusted or rogue SSH servers, or whose Screen sessions can receive attacker-controlled terminal output or crafted escape sequences, are exposed. The attacker needs control over content delivered to the terminal session.

2

What does an attacker need to trigger the flaw?

The issue requires a memory-allocation failure in utf8_handle_comb(), followed by delivery of a subsequent combining Unicode character. The described exploitation path uses attacker-controlled terminal content to groom the heap and dereference the freed combchars pointer.

3

Which version contains the fix?

The issue was fixed in GNU Screen version 5.0.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203