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 | |
|---|---|---|
| Debian:12screen |
All versions→ Not listed |
Not listed |
| Debian:13screen |
All versions→ Not listed |
Not listed |
| Debian:14screen |
< 5.0.2-1→ 5.0.2-1 |
5.0.2-1 |
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
- advisory security-tracker.debian.org