Vulnerability record · CVE-2016-5195 · published 10 November 2016
CVE-2016-5195: Linux Kernel Dirty COW Race Condition Privilege Escalation
Canonical · Ubuntu Linux
A race condition in the Linux kernel's mm/gup.c mishandles copy-on-write, letting a local user write to read-only memory mappings. This breaks the read-only guarantee of files such as /etc/passwd and enables privilege escalation. It affects Linux kernel 2.x through 4.x before 4.8.3 and was exploited in the wild in October 2016.
Description
Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by leveraging incorrect handling of a copy-on-write (COW) feature to write to a read-only memory mapping, as exploited in the wild in October 2016, aka "Dirty COW."
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityIt is in CISA KEV with confirmed in-the-wild exploitation, has a very high EPSS score, and grants root on unpatched Linux hosts.
What it is
A race condition in the Linux kernel's mm/gup.c mishandles copy-on-write, letting a local user write to read-only memory mappings. This breaks the read-only guarantee of files such as /etc/passwd and enables privilege escalation. It affects Linux kernel 2.x through 4.x before 4.8.3 and was exploited in the wild in October 2016.
Impact
An attacker with local access gains write access to otherwise read-only files and can escalate to root. That yields full control of the affected host.
Attack surface
Reached locally by any user who can run code on the system; the CVSS vector is AV:L/PR:L/UI:N, so low privileges are required and no user interaction is needed. No network vector is described.
Exploitation
It is listed in CISA KEV (added 2022-03-03) and the description states it was exploited in the wild in October 2016. EPSS is 0.83524 (99.667th percentile), indicating high predicted exploitation activity.
What to do
- Patch the Linux kernel to 4.8.3 or later, or apply the vendor kernel update for your distribution.
- Apply the referenced kernel commit (19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619) where backporting is required.
- Update affected vendor products (Ubuntu, RHEL, Debian, Fedora, PAN-OS, NetApp) per their advisories.
- Restrict local shell and code execution to trusted users to reduce exposure until patching completes.
- Verify kernel versions across servers, containers and appliances, since the flaw spans kernel 2.x through 4.x.
Detection
- Monitor for unexpected writes to read-only files such as /etc/passwd, /etc/shadow and SUID binaries.
- Alert on privilege escalation or new root processes spawned by unprivileged users.
- Track kernel version inventory and flag hosts still running kernels before 4.8.3.
- Watch for known Dirty COW exploit binaries or compilation activity on hosts.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2016-5195 to the Known Exploited Vulnerabilities catalog on 3 March 2022 as "Linux Kernel Race Condition Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 24 March 2022.
Affected products
18 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2016-5195 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2016-5195), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.