CVE DatabaseCVE-2016-5195
한국어 권고문 →
CVE-2016-51957.0/HIGHCISA KEVCWE-362CWE-362

Linux Kernel Copy-on-Write Race Condition Local Privilege Escalation (Dirty COW, CVE-2016-5195)

⚡ Jump to Patch
Affected Vendors
linux
Affected Components
linux_kernel
Published Date
2016-11-10
CVSS v3.1
7.0
HIGH
EPSS (30d)
83.5%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

All Linux distributions and Android systems running Linux kernel versions 2.x through 4.x before 4.8.3

Impact

A local attacker can exploit a race condition to write to read-only memory mappings, gaining root privileges on the target system

Mitigation

Apply the latest kernel security patches provided by your OS vendor and reboot the system

Affected Products & Version Scope

Linux Kernel 2.x through 4.x before 4.8.3

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Update your Linux kernel to the latest patched version using your distribution's package manager.

bash
# For RHEL / CentOS systems
sudo yum update kernel -y
sudo reboot

# For Debian / Ubuntu systems
sudo apt-get update && sudo apt-get install --only-upgrade linux-image-generic -y
sudo reboot

2. Temporary Workaround & Hardening Configuration

If an immediate reboot is not feasible, restrict local shell access for untrusted users and monitor system calls using auditd.

bash
# Monitor suspicious memory mapping and write activities via auditd
sudo auditctl -a always,exit -F arch=b64 -S mmap,mprotect -k memory_abuse

3. Log Audit & IoC Verification Commands

Verify the current running kernel version to determine if the system is running a vulnerable kernel.

bash
# Check current kernel release
uname -r

# Simple version check helper
CURRENT_KERNEL=$(uname -r | cut -d'-' -f1)
PATCHED_VERSION='4.8.3'
if [ '$(printf '%s\
' '$PATCHED_VERSION' '$CURRENT_KERNEL' | sort -V | head -n1)' = '$PATCHED_VERSION' ]; then
  echo 'Status: SECURE (Kernel is patched or newer)'
else
  echo 'Status: VULNERABLE (Kernel update required)'
fi
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Apply the latest kernel updates immediately and reboot the system to mitigate the Dirty COW local privilege escalation vulnerability.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability, widely known as 'Dirty COW', is a race condition found in the way the Linux kernel's memory subsystem handled copy-on-write (COW) breakage of private read-only memory mappings in mm/gup.c. The root cause lies in a synchronization flaw when the kernel processes write access to a read-only page, allowing the page table state to be manipulated during the COW process.

2. Exploitation Mechanics & Attack Scenario

An attacker spawns two competing threads: one that continuously calls madvise(MADV_DONTNEED) on a memory-mapped read-only file, and another that writes to the same memory space using write or /proc/self/mem. Due to the lack of proper locking, the kernel can be raced into discarding the newly created private copy of the page and writing directly to the original read-only physical page, allowing modification of critical system files like /etc/passwd.

3. Infrastructure & Business Impact

Successful exploitation allows any local user with minimal privileges to obtain full root access. In multi-tenant environments, cloud infrastructures, or containerized environments, this can lead to complete host compromise and container escape. This vulnerability has been actively exploited in the wild.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2016-5195)

FAQ

Q1. How critical is CVE-2016-5195 and is it actively exploited in the wild?

CVE-2016-5195 is rated CVSS 7.0 (HIGH) with a 30-day EPSS exploitation probability of 83.5%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2016-5195?

Primary impacted vendors include linux across linux_kernel. Scope summary: Linux Kernel 2.x through 4.x before 4.8.3

Q3. What temporary mitigations or workarounds exist for CVE-2016-5195 before patching?

[Mitigation] Apply the latest kernel security patches provided by your OS vendor and reboot the system Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2016-5195

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (linux)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2016-5195 Linux Kernel Copy-on-Write Race Condition Local Privilege Escalation (Dirty COW, CVE-2016-5195) (CVSS 7.0) - Patch & Workaround | CVE Pulse