CVE-2016-2779
High · 7.8CVSS
7.8
EPSS
0.4%
Published
Feb 7, 2017
CISA due date
—
Cloudanix analysis
A local user can trick a system tool into running commands in a more privileged session, letting them access functions they should not be able to reach.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Application
- Class
- Privilege Escalation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Local users can escape the runuser session to the parent terminal by injecting characters into the input buffer via a crafted TIOCSTI ioctl call.
Why it matters to the business
Attackers with existing local access can escalate privileges to compromise systems running affected qemu packages, leading to unauthorized control over virtualized environments and potential data exposure.
How an attack unfolds
A local attacker identifies a process using runuser, crafts a TIOCSTI ioctl to push commands into the parent session's terminal buffer, and executes higher-privileged actions without proper authorization.
How to fix it
Upgrade qemu packages to fixed versions: 1:2.8+dfsg-1 on Debian 11/12/13 and 2.0.0+dfsg-2ubuntu1.33 on Ubuntu 14.04 LTS. Apply updates via package managers and restart affected services.
How to confirm the fix worked
Verify installed qemu package versions match or exceed the listed fixed releases using dpkg or equivalent queries, and test that TIOCSTI injection no longer allows session escape in controlled environments.
Typical attack path
- Obtain local shell access on the target system
- Locate runuser invocation in qemu-related processes
- Craft and issue a malicious TIOCSTI ioctl call
- Inject commands into the parent session input buffer
- Execute privileged operations from the escaped session
How to detect it
Review system logs for anomalous runuser or ioctl activity, unusual terminal input injections, and unexpected privilege changes in process accounting or audit trails.
What your security team should do
- Prioritize patching qemu packages across all Debian and Ubuntu deployments
- Audit systems for local user access controls to reduce initial entry points
- Monitor package update channels for any additional related fixes
The record
runuser in util-linux 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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | util-linux | 0 | 2.31.1-0.1 |
| Debian:12 | util-linux | 0 | 2.31.1-0.1 |
| Debian:13 | util-linux | 0 | 2.31.1-0.1 |
| Ubuntu:18.04:LTS | util-linux | 0 | 2.31.1-0.4ubuntu3.3 |
| Ubuntu:Pro:16.04:LTS | util-linux | 0 | No fix |
| openSUSE:Tumbleweed | util-linux | 0 | 2.28.2-2.1 |
Related vulnerabilities
- CVE-2024-28085 wall in util-linux through 2.40, often installed with setgid tty permissions, allows… Also affects util-linux
- CVE-2016-5011 The parse_dos_extended function in partitions/dos.c in the libblkid library in util-linux… Also affects util-linux
- CVE-2014-9114 Blkid in util-linux before 2.26rc-1 allows local users to execute arbitrary code. Also affects util-linux
- CVE-2015-5218 Buffer overflow in text-utils/colcrt.c in colcrt in util-linux before 2.27 allows local… Also affects util-linux
- CVE-2026-27456 util-linux is a random collection of Linux utilities. Also affects util-linux
- CVE-2026-3184 A flaw was found in util-linux. Also affects util-linux
- CVE-2025-14104 A flaw was found in util-linux. Also affects util-linux
- CVE-2026-101184 Permission control vulnerability in the Bluetooth module. CWE-264