Description
There is a possible tty hijacking in shadow 4.x before 4.1.5 and sudo 1.x before 1.7.4 via "su - user -c program". The user session can be escaped to the parent session by using the TIOCSTI ioctl to push characters into the input buffer to be read by the next process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Red Hat | shadow | 4.x before 4.1.5 | — |
| Red Hat | sudo | 1.x before 1.7.4 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | shadow | 1:4.1.5-1 | — |
| Debian 14 | sudo | 1.7.4p4 | — |
| Debian 13 | shadow | 1:4.1.5-1 | — |
| Debian 13 | sudo | 1.7.4p4 | — |
| Debian 12 | shadow | 1:4.1.5-1 | — |
| Debian 12 | sudo | 1.7.4p4 | — |
References
- http://www.openwall.com/lists/oss-security/2014/12/15/5
- https://security-tracker.debian.org/tracker/CVE-2005-4890
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2005-4890
- https://access.redhat.com/security/cve/cve-2005-4890
- http://www.openwall.com/lists/oss-security/2012/11/06/8
- http://www.openwall.com/lists/oss-security/2013/05/20/3
- http://www.openwall.com/lists/oss-security/2013/11/28/10
- http://www.openwall.com/lists/oss-security/2013/11/29/5
- http://www.openwall.com/lists/oss-security/2014/10/20/9
- http://www.openwall.com/lists/oss-security/2014/10/21/1
- http://www.openwall.com/lists/oss-security/2016/02/25/6