CVE-2016-5195
KEV PoC ×5massDirty COW Race Condition Enables Local Privilege Escalation in the Linux Kernel
CISA: Linux Kernel Race Condition Vulnerability
CVE-2016-5195, widely known as 'Dirty COW', is a race condition (CWE-362) in the copy-on-write (COW) memory-handling code in mm/gup.c of the Linux kernel, affecting kernel versions 2.x through 4.x before 4.8.3. A local user with low privileges can trigger the race — including via the PTRACE_POKEDATA path used in public exploits — to write to a read-only memory mapping that should not be writable, corrupting files or overwriting memory. This yields root-level privileges on the host, enabling full system takeover, malware implantation and persistence. Any system running an affected kernel is exposed, spanning Ubuntu, Red Hat Enterprise Linux (including AUS, EUS, Long Life and TUS variants), Debian, Fedora, Palo Alto Networks PAN-OS, and NetApp Cloud Backup and HCI Storage Nodes that ship an affected kernel. Exploitation is confirmed in the wild: the flaw was actively exploited in October 2016, including by the first Android malware found using it to gain root, it was added to CISA's KEV catalog on 2022-03-03 with the required action to apply vendor updates, and EPSS currently assigns an 83.5% probability of exploitation in the next 30 days (100th percentile).
What to do: Upgrade to Linux kernel 4.8.3 or later, or apply the vendor-issued patched/backported kernel updates from Canonical, Red Hat, Debian, Fedora Project, Palo Alto Networks (PAN-OS) and NetApp, per the CISA KEV required action. Prioritize unpatched legacy servers and internet-exposed Linux hosts — especially multi-user systems, SSH-accessible machines and containers where untrusted users can run code — and update Android devices that may have been silently rooted via Dirty COW. Until patching completes, restrict local and SSH access to trusted users, since exploitation requires local low-privileged code execution.
| Linux kernel | 2.x through 4.x before 4.8.3 |
| Canonical Ubuntu Linux | releases shipping kernel 2.x through 4.x before 4.8.3 (exact package versions unspecified in source data) |
| Red Hat Enterprise Linux | releases shipping kernel 2.x through 4.x before 4.8.3 (exact package versions unspecified in source data) |
| Red Hat Enterprise Linux AUS | releases shipping kernel 2.x through 4.x before 4.8.3 (exact package versions unspecified in source data) |
| Red Hat Enterprise Linux EUS | releases shipping kernel 2.x through 4.x before 4.8.3 (exact package versions unspecified in source data) |
| Red Hat Enterprise Linux Long Life | releases shipping kernel 2.x through 4.x before 4.8.3 (exact package versions unspecified in source data) |
| Red Hat Enterprise Linux TUS | releases shipping kernel 2.x through 4.x before 4.8.3 (exact package versions unspecified in source data) |
| Debian Linux | releases shipping kernel 2.x through 4.x before 4.8.3 (exact package versions unspecified in source data) |
| Fedora Project Fedora | releases shipping kernel 2.x through 4.x before 4.8.3 (exact package versions unspecified in source data) |
| Palo Alto Networks PAN-OS | — |
| NetApp Cloud Backup | — |
| NetApp HCI Storage Nodes | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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."
- Affected
- Linux Kernel
- Required action
- Apply updates per vendor instructions.
- Due date
- Ransomware use
- Unknown
- Vendors
- canonicallinuxredhatdebianfedoraprojectpaloaltonetworksnetapp
- Products
- ubuntu linux, linux kernel, enterprise linux, enterprise linux aus, enterprise linux eus, enterprise linux long life, enterprise linux tus, debian linux, fedora, pan-os, cloud backup, hci storage nodes
- Weakness
- CWE-362
- Vector
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H