Cloudanix VulnDB

CVE-2016-10012

High · 7.8

CVSS

7.8

EPSS

1.3%

Published

Jan 5, 2017

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in the secure-shell software on many servers could let someone who already has limited access on the machine take complete control of it.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Privilege Gain
Component
Network Service
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Memory corruption in sshd's shared memory manager for pre-auth compression allows a local sandboxed process to bypass compiler-enforced bounds checks on m_zback and m_zlib structures, enabling privilege escalation.

Why it matters to the business

Local attackers on affected systems can elevate privileges from a restricted sshd sandbox to root-level access, risking full server compromise; prevalence in OpenSSH deployments and downstream packages increases exposure across many environments.

How an attack unfolds

An attacker with local access to a privilege-separated sshd process crafts input that triggers the shared-memory bounds-check failure, overwriting structures to escape the sandbox and execute code with elevated privileges; no widespread threat-actor campaigns observed despite long public availability.

How to fix it

Upgrade OpenSSH to version 7.4 or later; for listed packages apply thanos-operator (Chainguard/Wolfi) 0.3.7-r19 or openbsd/src commit 3095060f479b86288e31c79ecbc5131a66bcd2f9; disable compression if immediate patching is impossible.

How to confirm the fix worked

Verify sshd version is 7.4 or newer; confirm fixed commit or package versions are deployed; test that pre-auth compression no longer permits sandbox escape under local privilege-separation.

Typical attack path

  1. Obtain local unprivileged access on a host running vulnerable OpenSSH
  2. Interact with the pre-authentication compression path in the sandboxed sshd child process
  3. Trigger the compiler-dependent bounds-check omission via crafted shared-memory operations on m_zback/m_zlib
  4. Overwrite memory to escape the sandbox and gain root privileges

How to detect it

Review sshd authentication and privilege-separation logs for unexpected child-process behavior or sandbox violations; correlate with local user activity spikes; examine core dumps or memory artifacts referencing m_zback/m_zlib after suspicious privilege changes.

What your security team should do

  • Immediately upgrade all OpenSSH instances to fixed versions
  • Audit systems for any remaining pre-7.4 OpenSSH deployments
  • Restrict local user access and review privilege-separation configurations
  • Monitor for post-patch anomalies in sshd child processes

The record

The shared memory manager (associated with pre-authentication compression) in sshd in OpenSSH before 7.4 does not ensure that a bounds check is enforced by all compilers, which might allows local users to gain privileges by leveraging access to a sandboxed privilege-separation process, related to the m_zback and m_zlib data structures.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.10 openssh 0 7.4_p1-r0
Alpine:v3.11 openssh 0 7.4_p1-r0
Alpine:v3.12 openssh 0 7.4_p1-r0
Alpine:v3.13 openssh 0 7.4_p1-r0
Alpine:v3.14 openssh 0 7.4_p1-r0
Alpine:v3.15 openssh 0 7.4_p1-r0
Alpine:v3.16 openssh 0 7.4_p1-r0
Alpine:v3.17 openssh 0 7.4_p1-r0
Alpine:v3.18 openssh 0 7.4_p1-r0
Alpine:v3.19 openssh 0 7.4_p1-r0
Alpine:v3.20 openssh 0 7.4_p1-r0
Alpine:v3.21 openssh 0 7.4_p1-r0
Alpine:v3.22 openssh 0 7.4_p1-r0
Alpine:v3.3 openssh 0 7.2_p2-r3
Alpine:v3.4 openssh 0 7.2_p2-r4
Alpine:v3.5 openssh 0 7.4_p1-r0
Alpine:v3.6 openssh 0 7.4_p1-r0
Alpine:v3.7 openssh 0 7.5_p1-r8
Alpine:v3.8 openssh 0 7.4_p1-r0
Alpine:v3.9 openssh 0 7.4_p1-r0
Debian:10 openssh 0 1:7.4p1-1
Debian:11 openssh 0 1:7.4p1-1
Debian:12 openssh 0 1:7.4p1-1
Debian:13 openssh 0 1:7.4p1-1
Debian:14 openssh 0 1:7.4p1-1
Debian:8 openssh 0 1:6.7p1-5+deb8u6
Mageia:5 openssh 0 6.6p1-5.10.mga5
Red Hat:enterprise_linux:7::client openssh 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::client openssh-askpass 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::client openssh-cavs 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::client openssh-clients 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::client openssh-debuginfo 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::client openssh-keycat 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::client openssh-ldap 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::client openssh-server 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::client openssh-server-sysvinit 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::client pam_ssh_agent_auth 0 0:0.10.3-1.11.el7
Red Hat:enterprise_linux:7::computenode openssh 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::computenode openssh-askpass 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::computenode openssh-cavs 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::computenode openssh-clients 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::computenode openssh-debuginfo 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::computenode openssh-keycat 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::computenode openssh-ldap 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::computenode openssh-server 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::computenode openssh-server-sysvinit 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::computenode pam_ssh_agent_auth 0 0:0.10.3-1.11.el7
Red Hat:enterprise_linux:7::server openssh 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::server openssh-askpass 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::server openssh-cavs 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::server openssh-clients 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::server openssh-debuginfo 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::server openssh-keycat 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::server openssh-ldap 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::server openssh-server 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::server openssh-server-sysvinit 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::server pam_ssh_agent_auth 0 0:0.10.3-1.11.el7
Red Hat:enterprise_linux:7::workstation openssh 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::workstation openssh-askpass 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::workstation openssh-cavs 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::workstation openssh-clients 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::workstation openssh-debuginfo 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::workstation openssh-keycat 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::workstation openssh-ldap 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::workstation openssh-server 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::workstation openssh-server-sysvinit 0 0:7.4p1-11.el7
Red Hat:enterprise_linux:7::workstation pam_ssh_agent_auth 0 0:0.10.3-1.11.el7
SUSE:Linux Enterprise Desktop 12 SP2 openssh 0 7.2p2-66.1
SUSE:Linux Enterprise Desktop 12 SP2 openssh-askpass-gnome 0 7.2p2-66.3
SUSE:Linux Enterprise Point of Sale 11 SP3 openssh 0 6.2p2-0.41.5.1
SUSE:Linux Enterprise Point of Sale 11 SP3 openssh-askpass-gnome 0 6.2p2-0.41.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS openssh 0 6.2p2-0.41.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS openssh-askpass-gnome 0 6.2p2-0.41.5.1
SUSE:Linux Enterprise Server 11 SP3-TERADATA openssh 0 6.2p2-0.41.5.1
SUSE:Linux Enterprise Server 11 SP3-TERADATA openssh-askpass-gnome 0 6.2p2-0.41.5.1
SUSE:Linux Enterprise Server 11 SP4 openssh 0 6.6p1-36.3.1
SUSE:Linux Enterprise Server 11 SP4 openssh-askpass-gnome 0 6.6p1-36.3.1
SUSE:Linux Enterprise Server 11-SECURITY openssh-openssl1 0 6.6p1-19.3.1
SUSE:Linux Enterprise Server 12 SP1-LTSS openssh 0 6.6p1-54.15.2
SUSE:Linux Enterprise Server 12 SP1-LTSS openssh-askpass-gnome 0 6.6p1-54.15.1
SUSE:Linux Enterprise Server 12 SP2 openssh 0 7.2p2-66.1
SUSE:Linux Enterprise Server 12 SP2 openssh-askpass-gnome 0 7.2p2-66.3
SUSE:Linux Enterprise Server 12-LTSS openssh 0 6.6p1-54.15.2
SUSE:Linux Enterprise Server 12-LTSS openssh-askpass-gnome 0 6.6p1-54.15.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 openssh 0 7.2p2-66.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 openssh-askpass-gnome 0 7.2p2-66.3
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 openssh 0 6.6p1-36.3.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 openssh-askpass-gnome 0 6.6p1-36.3.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 openssh 0 6.6p1-54.15.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 openssh-askpass-gnome 0 6.6p1-54.15.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 openssh 0 7.2p2-66.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 openssh-askpass-gnome 0 7.2p2-66.3
Ubuntu:14.04:LTS openssh 0 1:6.6p1-2ubuntu2.10
Ubuntu:16.04:LTS openssh 0 1:7.2p2-4ubuntu2.4
openSUSE:Tumbleweed openssh 0 8.4p1-7.4

Related vulnerabilities