{"id":"UBUNTU-CVE-2016-2781","details":"chroot in GNU coreutils, when used with --userspec, allows local users to escape to the parent session via a crafted TIOCSTI ioctl call, which pushes characters to the terminal's input buffer.","modified":"2026-03-18T06:32:17.714169Z","published":"2017-02-07T15:59:00Z","upstream":["CVE-2016-2781"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2016-2781"},{"type":"REPORT","url":"http://seclists.org/oss-sec/2016/q1/452"},{"type":"REPORT","url":"https://lore.kernel.org/patchwork/patch/793178/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2016-2781"},{"type":"REPORT","url":"https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.28/v2.28-ReleaseNotes"}],"affected":[{"package":{"name":"coreutils","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/coreutils@8.21-1ubuntu5.4?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.20-3ubuntu5","8.21-1ubuntu3","8.21-1ubuntu4","8.21-1ubuntu5","8.21-1ubuntu5.1","8.21-1ubuntu5.3","8.21-1ubuntu5.4"],"ecosystem_specific":{"binaries":[{"binary_version":"8.21-1ubuntu5.4","binary_name":"coreutils"},{"binary_version":"8.21-1ubuntu5.4","binary_name":"mktemp"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-2781.json"}},{"package":{"name":"coreutils","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/coreutils@8.25-2ubuntu3~16.04?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.23-4ubuntu2","8.25-2ubuntu2","8.25-2ubuntu3~16.04"],"ecosystem_specific":{"binaries":[{"binary_version":"8.25-2ubuntu3~16.04","binary_name":"coreutils"},{"binary_version":"8.25-2ubuntu3~16.04","binary_name":"mktemp"},{"binary_version":"8.25-2ubuntu3~16.04","binary_name":"realpath"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-2781.json"}},{"package":{"name":"coreutils","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/coreutils@8.28-1ubuntu1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.26-3ubuntu4","8.28-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"8.28-1ubuntu1","binary_name":"coreutils"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-2781.json"}},{"package":{"name":"coreutils","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/coreutils@8.30-3ubuntu2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.30-3ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"8.30-3ubuntu2","binary_name":"coreutils"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-2781.json"}},{"package":{"name":"coreutils","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/coreutils@8.32-4.1ubuntu1.3?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.32-4ubuntu2","8.32-4ubuntu3","8.32-4.1ubuntu1","8.32-4.1ubuntu1.1","8.32-4.1ubuntu1.2","8.32-4.1ubuntu1.3"],"ecosystem_specific":{"binaries":[{"binary_version":"8.32-4.1ubuntu1.3","binary_name":"coreutils"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-2781.json"}},{"package":{"name":"coreutils","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/coreutils@9.4-3ubuntu6.2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.1-1ubuntu2","9.4-2ubuntu1","9.4-2ubuntu2","9.4-2ubuntu3","9.4-2ubuntu4","9.4-3ubuntu3","9.4-3ubuntu5","9.4-3ubuntu6","9.4-3ubuntu6.1","9.4-3ubuntu6.2"],"ecosystem_specific":{"binaries":[{"binary_version":"9.4-3ubuntu6.2","binary_name":"coreutils"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-2781.json"}},{"package":{"name":"coreutils","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/coreutils@9.5-1ubuntu4.1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.5-1ubuntu1","9.5-1ubuntu1.25.10.1","9.5-1ubuntu2","9.5-1ubuntu3","9.5-1ubuntu4","9.5-1ubuntu4.1"],"ecosystem_specific":{"binaries":[{"binary_version":"9.5-1ubuntu4.1","binary_name":"gnu-coreutils"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-2781.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"low"}]}