GNU Screen is vulnerable to a Time-of-Check/Time-of-Use (TOCTOU) race condition in the hardcopy file handler. Due to checking write permissions using...
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 Time-of-Check/Time-of-Use (TOCTOU) race condition in the hardcopy file handler. Due to checking write permissions using the real user ID and subsequently opening the file using the effective user ID, a local unprivileged attacker can atomically replace the target path with a symbolic link pointing to an arbitrary system file. Successfully exploiting this race condition allows the attacker to write to arbitrary files with root privileges, leading to local privilege escalation This issue was fixed in version 5.0.2.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security-tracker.debian.org