Security Advisory

CVE-2016-5195: Linux Dirty COW Race Condition

Last updated:
  • CVE-2016-5195

CVE-2016-5195, "Dirty COW", is a race condition (CWE-362) in the Linux kernel's copy-on-write handling that lets a local user write to read-only memory and gain root. NVD scores it 7.0. CISA lists it as exploited. Kernels 4.8.3, 4.4.26, 3.18.44 and 3.10.104 fix it; Android fixed it at patch level 2016-11-06.

Vulnerability summary

CVSS base score

7

High severity

EPSS score (FIRST)

83.5%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2016-5195 · Source: NVD

Affected components

ComponentCPEVersion range
Linux kernel (memory management, mm/gup.c)cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*2.6.22 to before 3.2.83, 3.3 to before 3.4.113, 3.5 to before 3.10.104, 3.11 to before 3.12.66, 3.13 to before 3.16.38, 3.17 to before 3.18.44, 3.19 to before 4.1.35, 4.2 to before 4.4.26, 4.5 to before 4.7.9, 4.8 to before 4.8.3 (NVD)
Android (kernel memory subsystem)—Fixed at security patch level 2016-11-06 or later (Android Security Bulletin November 2016, A-32141528; updated kernel versions 3.10, 3.18)

What does this mean for affected devices?

CVE-2016-5195, known as "Dirty COW", is a race condition (CWE-362) in the Linux kernel's memory manager. NVD describes a race in mm/gup.c in Linux 2.x through 4.x before 4.8.3 that lets local users gain privileges by abusing incorrect copy-on-write handling to write to a read-only memory mapping, "as exploited in the wild in October 2016". NVD's Primary CVSS 3.1 score is 7.0, CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H, and its Primary NVD CVSS v2 score is 7.2; CISA's ADP container in the CVE record repeats the 7.0 vector (NVD). The CVSS v4 vs v3.1 guide explains why the same bug carries different numbers under different CVSS versions.

Which kernel versions are affected?

NVD's CPE data treats 2.6.22 onward as affected and lists the first fixed release on each stable branch: 3.2.83, 3.4.113, 3.10.104, 3.12.66, 3.16.38, 3.18.44, 4.1.35, 4.4.26, 4.7.9 and 4.8.3. The fix is mainline commit 19be0eaffa3a, "mm: remove gup_flags FOLL_WRITE games from __get_user_pages()", committed 2016-10-18 and tagged for stable; the 4.8.3 changelog carries it. It touches only mm/gup.c and include/linux/mm.h, core memory-management code that every kernel build includes, so there is no configuration option that removes it.

Which devices are affected?

Any Linux or Android device on a kernel older than the fixed releases above, which in 2016 meant most phones, routers, NAS boxes and industrial Linux controllers. Google's Android Security Bulletin for November 2016 lists CVE-2016-5195 (A-32141528) as a Critical kernel elevation of privilege with updated kernel versions 3.10 and 3.18; devices at security patch level 2016-11-06 or later are fixed. The December 2016 bulletin lists it again under patch level 2016-12-05 for Nexus 5X, Nexus 6, Nexus 6P, Nexus 9, Android One, Pixel C, Nexus Player, Pixel and Pixel XL. Long-lived embedded products on 3.x kernels are the ones most likely to still carry it; our Linux kernel CVE triage guide covers how to check a vendor kernel for a backport. CVE-2022-0847 ("Dirty Pipe") is a later page-cache write flaw in the same family.

How do you fix CVE-2016-5195?

Update the kernel to at least the fixed release of its stable branch (for example 3.10.104, 3.18.44, 4.4.26 or 4.8.3), or backport commit 19be0eaffa3a. On Android, install a build at security patch level 2016-11-06 or later. A device whose vendor no longer ships firmware updates cannot be fixed in place: isolate it from untrusted users and code, and plan its replacement.

Is CVE-2016-5195 exploited?

Yes. CISA added it to the KEV catalog on 2022-03-03 with a due date of 2022-03-24 and the required action "Apply updates per vendor instructions"; known ransomware campaign use is listed as Unknown, as of 2026-11-25 (catalog version 2026.11.24). FIRST EPSS gives it 0.83524, the 99.7th percentile, in the 2026-11-24 dataset (CISA KEV, FIRST EPSS). The KEV and EPSS prioritization guide explains how to use both signals.

How to fix this class of issueNo dedicated SoftWSP guide covers this weakness class; the fix is usually the vendor patch or firmware update referenced above. Our related guide explains how to plan and verify it: NIST SP 800-40 Rev. 4: enterprise patch management planning, explained.

Evidence

  • NVD: status Analyzed; [email protected] Primary CVSS 3.1 7.0 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H; [email protected] Primary CVSS v2 7.2 AV:L/AC:L/Au:N/C:C/I:C/A:C; CISA-ADP Secondary 7.0; CWE-362; CPE linux_kernel 2.6.22-3.2.83, 3.3-3.4.113, 3.5-3.10.104, 3.11-3.12.66, 3.13-3.16.38, 3.17-3.18.44, 3.19-4.1.35, 4.2-4.4.26, 4.5-4.7.9, 4.8-4.8.3; description 'as exploited in the wild in October 2016, aka Dirty COW'; read 2026-11-25. — NVD
  • CVE record PUBLISHED 2016-11-10; CNA affected n/a; CISA ADP CVSS 3.1 7.0. — CVE.org
  • Mainline commit 19be0eaffa3a 'mm: remove gup_flags FOLL_WRITE games from __get_user_pages()', committed 2016-10-18, Cc stable; files include/linux/mm.h and mm/gup.c. — Linux kernel git
  • ChangeLog-4.8.3 contains 'commit 19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619 upstream'. — kernel.org
  • Android Security Bulletin November 2016 (published November 07, 2016): CVE-2016-5195 A-32141528, Critical, updated kernel versions 3.10, 3.18, reported Oct 12, 2016; patch level 2016-11-06 addresses CVE-2016-5195. — Android Security Bulletin
  • Android Security Bulletin December 2016: CVE-2016-5195 A-32141528 under 2016-12-05 patch level, Critical, updated Google devices Nexus 5X, Nexus 6, Nexus 6P, Nexus 9, Android One, Pixel C, Nexus Player, Pixel, Pixel XL. — Android Security Bulletin
  • CISA KEV catalog version 2026.11.24: Linux Kernel Race Condition Vulnerability, dateAdded 2022-03-03, dueDate 2022-03-24, knownRansomwareCampaignUse Unknown, required action 'Apply updates per vendor instructions.'; checked 2026-11-25. — CISA KEV
  • EPSS 0.83524, percentile 0.99687, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CVE.org record CVE-2016-5195
  3. Linux kernel mainline fix commit 19be0eaffa3a
  4. kernel.org ChangeLog-4.8.3
  5. Android Security Bulletin: November 2016
  6. Android Security Bulletin: December 2016
  7. CISA KEV
  8. FIRST EPSS

Frequently asked questions

Which kernel versions fix CVE-2016-5195?

3.2.83, 3.4.113, 3.10.104, 3.12.66, 3.16.38, 3.18.44, 4.1.35, 4.4.26, 4.7.9 and 4.8.3, each on its own stable branch; affected kernels start at 2.6.22 (per NVD's CPE data). The mainline fix is commit 19be0eaffa3a.

Which Android security patch level fixes CVE-2016-5195?

Security patch level 2016-11-06 or later. The November 2016 bulletin rates it Critical with updated kernel versions 3.10 and 3.18, and the December 2016 bulletin lists it for Nexus and Pixel devices at patch level 2016-12-05 (per the Android Security Bulletins).

Can CVE-2016-5195 be disabled with a kernel config option?

No. The fix changes mm/gup.c and include/linux/mm.h, core memory-management code present in every kernel build (per the fix commit). The only remedies are a fixed kernel or a backport of the fix.

Is CVE-2016-5195 exploited in the wild?

Yes. NVD's description says it was exploited in the wild in October 2016, and CISA added it to the KEV catalog on 2022-03-03, with ransomware use listed as Unknown as of 2026-11-25 (catalog version 2026.11.24, per NVD and CISA KEV).