Bug 1312852 - (CVE-2016-2779) CVE-2016-2779 util-linux: runuser tty hijack via TIOCSTI ioctl
CVE-2016-2779 util-linux: runuser tty hijack via TIOCSTI ioctl
Status: POST
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 1312855
Blocks: 1312867
  Show dependency treegraph
Reported: 2016-02-29 06:57 EST by Adam Mariš
Modified: 2017-03-09 20:35 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2016-02-29 06:57:29 EST
It was found that when executing a program via "runuser -u nonpriv program" the nonpriv session can escape to the parent session by using the TIOCSTI ioctl to push characters into the terminal's input buffer, allowing privilege escalation. This issue has been fixed in "su" by calling setsid() and in "sudo" by using the "use_pty" flag.

CVE request (contains reproducer):

Comment 1 Adam Mariš 2016-02-29 06:59:37 EST
Created util-linux tracking bugs for this issue:

Affects: fedora-all [bug 1312855]
Comment 5 Karel Zak 2016-09-29 10:41:23 EDT
Upstream libseccomp based workaround: 


Note You need to log in before you can comment on or make changes to this bug.