Cloudanix VulnDB

CVE-2016-2779

High · 7.8

CVSS

7.8

EPSS

0.4%

Published

Feb 7, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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

  1. Obtain local shell access on the target system
  2. Locate runuser invocation in qemu-related processes
  3. Craft and issue a malicious TIOCSTI ioctl call
  4. Inject commands into the parent session input buffer
  5. 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