CVE-2016-2781
published 2017-02-07CVE-2016-2781: 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…
PriorityP415medium4.6CVSS 3.1
AVLACLPRLUIRSCCLILAN
EPSS
0.43%
34.5th percentile
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.
Affected
11 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | coreutils | < coreutils 9.4-1 (forky) | coreutils 9.4-1 (forky) |
| gnu | coreutils | >= 0 < 9.4-1 | 9.4-1 |
| gnu | coreutils | >= 0 < 9.4-1 | 9.4-1 |
| msrc | azl3_coreutils_9.4-1_on_azure_linux_3.0 | — | — |
| msrc | azl3_coreutils_9.4-6_on_azure_linux_3.0 | — | — |
| msrc | cbl2_coreutils_8.32-1_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_1.0_arm | — | — |
| msrc | cbl_mariner_1.0_x64 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| msrc | cm1_coreutils_8.30-7_on_cbl_mariner_1.0 | — | — |
CVSS provenance
nvdv3.14.6MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
nvdv3.06.5MEDIUMCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
nvdv2.02.1LOWAV:L/AC:L/Au:N/C:N/I:P/A:N
osv4.6MEDIUM
vendor_msrc6.5MEDIUM
vendor_debian4.6LOW
vendor_redhat4.6MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-vf3q-65gx-324p: 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
ghsa_unreviewed·2022-05-13
CVE-2016-2781 [MEDIUM] CWE-20 GHSA-vf3q-65gx-324p: 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
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.
OSV
CVE-2016-2781: 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
osv·2017-02-07·CVSS 4.6
CVE-2016-2781 [MEDIUM] CVE-2016-2781: 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
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.
Microsoft
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.
vendor_msrc·2017-02-21·CVSS 6.5
CVE-2016-2781 [MEDIUM] CWE-20 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.
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to ref
Red Hat
coreutils: Non-privileged session can escape to the parent session in chroot
vendor_redhat·2016-02-28·CVSS 4.6
CVE-2016-2781 [MEDIUM] CWE-270 coreutils: Non-privileged session can escape to the parent session in chroot
coreutils: Non-privileged session can escape to the parent session in chroot
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.
It was found that chroot was vulnerable to TIOCSTI ioctl attacks, allowing the executed program to push characters to its TTY's input buffer. While being executed as a non-privileged user, a specially crafted program could force its parent TTY to enter commands, interpreted by the shell when chroot exits.
Statement: This issue affects the versions of coreutils as shipped with Red Hat Enterprise Linux 6 and 7. Red Hat Product Security has rated this issue as having Moderate security impact. A future update may address this
Debian
CVE-2016-2781: coreutils - chroot in GNU coreutils, when used with --userspec, allows local users to escape...
vendor_debian·2016·CVSS 4.6
CVE-2016-2781 [MEDIUM] CVE-2016-2781: coreutils - chroot in GNU coreutils, when used with --userspec, allows local users to escape...
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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 9.4-1)
sid: resolved (fixed in 9.4-1)
trixie: resolved (fixed in 9.4-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2016-2781 coreutils: Non-privileged session can escape to the parent session in chroot [fedora-all]
bugzilla·2016-02-29·CVSS 4.6
CVE-2016-2781 [MEDIUM] CVE-2016-2781 coreutils: Non-privileged session can escape to the parent session in chroot [fedora-all]
CVE-2016-2781 coreutils: Non-privileged session can escape to the parent session in chroot [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multi
Bugzilla
CVE-2016-2781 coreutils: Non-privileged session can escape to the parent session in chroot
bugzilla·2016-02-29·CVSS 7.8
CVE-2016-2781 [HIGH] CVE-2016-2781 coreutils: Non-privileged session can escape to the parent session in chroot
CVE-2016-2781 coreutils: Non-privileged session can escape to the parent session in chroot
It was found that When executing a program via "chroot --userspec=someuser:somegroup / /path/to/test" the nonpriv session can escape to the parent session by using the TIOCSTI ioctl to push characters into the terminal's input buffer.
CVE assignment:
http://seclists.org/oss-sec/2016/q1/452
Discussion:
Created util-linux tracking bugs for this issue:
Affects: fedora-all [bug 1312864]
---
Is that really against coreutils? Based on http://marc.info/?l=util-linux-ng&m=145694736107128&w=2 (and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815922 ) it seems to be issue with runuser/su - therefore util-linux was IMHO correct.
---
(In reply to Ondrej Vasik from comment #4)
> Is that really agai
http://www.openwall.com/lists/oss-security/2016/02/28/2http://www.openwall.com/lists/oss-security/2016/02/28/3https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3Ehttp://www.openwall.com/lists/oss-security/2016/02/28/2http://www.openwall.com/lists/oss-security/2016/02/28/3https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E
2017-02-07
Published