Cloudanix VulnDB

CVE-2016-1572

High · 8.4

CVSS

8.4

EPSS

0.4%

Published

Jan 22, 2016

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

Encryption software on Linux systems can be tricked by a logged-in user into giving that user complete control of the computer.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Low
Impact
Privilege Gain
Component
Application
Class
Privilege Escalation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The flaw permits a local attacker to invoke mount.ecryptfs_private against an arbitrary nonstandard filesystem target such as /proc/$pid, bypassing intended mount validation and resulting in privilege escalation to root.

Why it matters to the business

Any local user on an affected Linux system can obtain full administrative control, enabling theft of encryption keys, data exfiltration, persistence, or lateral movement with no network access required.

How an attack unfolds

An attacker on a system using eCryptfs-utils crafts a mount command that targets /proc/$pid as the destination filesystem type; because no validation occurs, the mount succeeds and the process gains elevated privileges through the kernel's handling of the overlaid mount.

How to fix it

Upgrade ecryptfs-utils to a patched release that enforces filesystem-type validation on mount destinations; where package updates are unavailable, restrict use of ecryptfs_private mounts to trusted users via filesystem permissions and SELinux/AppArmor policies.

How to confirm the fix worked

Confirm the installed ecryptfs-utils version is newer than the vulnerable release, then attempt a test mount against a /proc path and verify the operation is rejected with an appropriate error.

Typical attack path

  1. Obtain local shell access on a host running vulnerable eCryptfs-utils
  2. Identify a target PID and prepare a malicious mount source
  3. Invoke mount.ecryptfs_private with the nonstandard /proc/$pid destination
  4. Receive elevated privileges via the resulting mount
  5. Escalate to full root control and perform post-exploitation actions

How to detect it

Review system and audit logs for invocations of mount.ecryptfs_private or mount operations targeting /proc paths; inspect process trees and mount tables for unexpected overlays involving encryption utilities.

  • mount.ecryptfs_private
  • /proc/[0-9]*/mounts containing ecryptfs
  • mount -t ecryptfs.* /proc/

What your security team should do

  • Immediately inventory all systems using ecryptfs-utils and schedule patching
  • Apply the vendor-supplied update or backported fix as the primary remediation
  • Harden local mount permissions and confine ecryptfs processes with mandatory access controls
  • Monitor for new EPSS or exploit-maturity signals given the long publication window

The record

mount.ecryptfs_private.c in eCryptfs-utils does not validate mount destination filesystem types, which allows local users to gain privileges by mounting over a nonstandard filesystem, as demonstrated by /proc/$pid.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 ecryptfs-utils 0 106-2
Debian:12 ecryptfs-utils 0 106-2
Debian:13 ecryptfs-utils 0 106-2
Debian:6.0 ecryptfs-utils 0 83-4+squeeze2
Debian:7 ecryptfs-utils 0 99-1+deb7u1
Debian:8 ecryptfs-utils 0 103-5+deb8u1
SUSE:Linux Enterprise Desktop 11 SP3 ecryptfs-utils 0 61-1.35.1
SUSE:Linux Enterprise Desktop 11 SP4 ecryptfs-utils 0 61-1.35.1
SUSE:Linux Enterprise Desktop 12 ecryptfs-utils 0 103-7.1
SUSE:Linux Enterprise Desktop 12 SP1 ecryptfs-utils 0 103-7.1
SUSE:Linux Enterprise Server 11 SP3 ecryptfs-utils 0 61-1.35.1
SUSE:Linux Enterprise Server 11 SP3-TERADATA ecryptfs-utils 0 61-1.35.1
SUSE:Linux Enterprise Server 11 SP4 ecryptfs-utils 0 61-1.35.1
SUSE:Linux Enterprise Server 12 ecryptfs-utils 0 103-7.1
SUSE:Linux Enterprise Server 12 SP1 ecryptfs-utils 0 103-7.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP3 ecryptfs-utils 0 61-1.35.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 ecryptfs-utils 0 61-1.35.1
SUSE:Linux Enterprise Server for SAP Applications 12 ecryptfs-utils 0 103-7.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 ecryptfs-utils 0 103-7.1
Ubuntu:14.04:LTS ecryptfs-utils 0 104-0ubuntu1.14.04.4
openSUSE:Tumbleweed ecryptfs-utils 0 108-2.5

Related vulnerabilities