Cloudanix VulnDB

CVE-2016-1237

Medium · 5.5

CVSS

5.5

EPSS

0.4%

Published

Jun 29, 2016

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in the Linux kernel's NFS server component could let someone who already has an account on the machine read files they were not supposed to see.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Data Exposure
Component
OS kernel
Class
Authorization Bypass
Remediation
Upgrade
Effort
Medium
Patch risk
Medium

What it actually does

The nfsd kernel module permits a local user with write access to set POSIX ACLs on files, overriding the intended permission checks implemented in nfs2acl.c, nfs3acl.c, and nfs4acl.c and resulting in unauthorized disclosure of file contents.

Why it matters to the business

Organizations running unpatched Linux kernels with NFS exports may experience unauthorized data exposure from files that should have been protected by standard permissions, increasing the risk of data leakage in shared environments.

How an attack unfolds

A local attacker with an account on the system crafts a POSIX ACL that grants read access and applies it to a target file served by nfsd; the flawed ACL handling code accepts the change without enforcing the original permission model, allowing the attacker to read restricted content over NFS.

How to fix it

Upgrade the Linux kernel to a version containing commit 999653786df6954a31044528ac3f7a5dadca08f4 or later; rebuild and reboot affected systems, then verify that nfsd no longer permits unauthorized ACL modifications on exported files.

How to confirm the fix worked

Confirm the running kernel contains commit 999653786df6954a31044528ac3f7a5dadca08f4 or a backport; test by attempting to set a permissive ACL as a non-owner user and verify that access remains denied.

Typical attack path

  1. Obtain a local user account on a system exporting NFS shares
  2. Identify a file whose contents are restricted by discretionary permissions
  3. Use setfacl or equivalent to apply a permissive POSIX ACL on the file
  4. Access the file contents via an NFS mount from the same host or another client

How to detect it

Review system logs for unexpected ACL modifications on NFS-exported paths and correlate with user activity around file access times; examine auditd or kernel logs for setxattr or acl-related operations on exported directories.

What your security team should do

  • Prioritize kernel updates on any systems still running versions prior to the referenced fix
  • Audit NFS exports to ensure they are limited to trusted clients and minimal required permissions
  • Disable unnecessary NFS services where possible to reduce the attack surface

The record

nfsd in the Linux kernel through 4.6.3 allows local users to bypass intended file-permission restrictions by setting a POSIX ACL, related to nfs2acl.c, nfs3acl.c, and nfs4acl.c.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 linux 0 4.6.2-2
Debian:12 linux 0 4.6.2-2
Debian:13 linux 0 4.6.2-2
Debian:8 linux 0 3.16.7-ckt25-2+deb8u2
Mageia:5 kernel 0 4.4.16-1.mga5
Mageia:5 kernel-linus 0 4.4.16-1.mga5
Mageia:5 kernel-tmb 0 4.4.16-1.mga5
Mageia:5 kernel-userspace-headers 0 4.4.16-1.mga5
Mageia:5 kmod-vboxadditions 0 5.1.2-2.mga5
Mageia:5 kmod-virtualbox 0 5.1.2-2.mga5
Mageia:5 kmod-xtables-addons 0 2.10-8.mga5
Ubuntu:14.04:LTS linux-aws 0 4.4.0-1002.2
Ubuntu:14.04:LTS linux-lts-vivid 0 3.19.0-66.74~14.04.1
Ubuntu:14.04:LTS linux-lts-xenial 0 4.4.0-36.55~14.04.1
Ubuntu:16.04:LTS linux 0 4.4.0-36.55
Ubuntu:16.04:LTS linux-aws 0 4.4.0-1001.10
Ubuntu:16.04:LTS linux-gke 0 4.4.0-1003.3
Ubuntu:16.04:LTS linux-hwe 0 4.8.0-36.36~16.04.1
Ubuntu:16.04:LTS linux-raspi2 0 4.4.0-1021.27
Ubuntu:16.04:LTS linux-snapdragon 0 4.4.0-1024.27
openSUSE:Tumbleweed kernel-source 0 4.8.13-1.1

Related vulnerabilities