Cloudanix VulnDB

CVE-2014-5206

None

CVSS

—

EPSS

0.4%

Published

Aug 18, 2014

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A local user on older Linux systems can remove the read-only protection on certain folders, letting them change files that should have stayed untouched and weakening security boundaries around containers or sandboxes.

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

What it actually does

The do_remount function fails to preserve the MNT_LOCK_READONLY flag during remount operations on bind mounts inside user namespaces, allowing a local process to clear the read-only restriction.

Why it matters to the business

Unpatched systems permit local accounts to modify files or directories that administrators intended to keep read-only, weakening container and sandbox isolation and increasing the chance of unauthorized data changes or further privilege escalation on any affected Linux host.

How an attack unfolds

An attacker with a local shell creates a user namespace, binds a directory as read-only, then issues a mount remount command that clears the lock bit, restoring write access and defeating the intended protection.

How to fix it

Upgrade the Linux kernel to a version later than 3.16.1 that restores MNT_LOCK_READONLY handling across remounts of bind mounts; apply vendor backports for supported distributions and reboot affected hosts.

How to confirm the fix worked

Confirm the running kernel version exceeds 3.16.1, review the do_remount implementation for retention of the MNT_LOCK_READONLY flag, and test that remount attempts inside user namespaces preserve read-only semantics.

Typical attack path

  1. Obtain a local shell on the target system
  2. Enter a new user namespace via unshare or clone
  3. Create a bind mount marked read-only
  4. Execute mount -o remount,rw on the bind mount
  5. Write to previously protected paths or escape the sandbox

How to detect it

Review system audit logs and mount command history for repeated remount operations originating from user-namespace processes; examine kernel logs for namespace-related mount activity around the time of suspected access.

What your security team should do

  • Inventory all Linux systems and identify those still running kernels 3.16.1 or earlier
  • Prioritize patching of internet-facing or multi-tenant hosts that allow unprivileged user namespaces
  • Disable unprivileged user namespaces via kernel parameter where the feature is unnecessary
  • Monitor for future kernel updates and schedule maintenance windows before the next disclosure wave

The record

The do_remount function in fs/namespace.c in the Linux kernel through 3.16.1 does not maintain the MNT_LOCK_READONLY bit across a remount of a bind mount, which allows local users to bypass an intended read-only restriction and defeat certain sandbox protection mechanisms via a "mount -o remount" command within a user namespace.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 linux 0 3.16.2-1
Debian:12 linux 0 3.16.2-1
Debian:13 linux 0 3.16.2-1
Ubuntu:14.04:LTS linux 0 3.13.0-34.60
Ubuntu:14.04:LTS linux-lts-utopic 0 3.16.0-25.33~14.04.2
Ubuntu:14.04:LTS linux-lts-vivid 0 3.19.0-18.18~14.04.1

Related vulnerabilities