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...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSscreen |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSscreen |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSscreen |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSscreen |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSscreen |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSscreen |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10screen |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSscreen |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report cert.pl