cve.bz

CVE-2016-5195 (Dirty COW) Linux Kernel Race Condition Vulnerability

7.0 highKEVExploitEPSS 84%Fix available

Known as Dirty COW

High (7.0) in Linux Kernel. In CISA KEV since 2022-03-03. EPSS 84% estimated probability of exploitation activity in the next 30 days.

On this page
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."

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
84% (unchanged from 84% a week ago; 84% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2022-03-03, due 2022-03-24
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2025-01-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-5195 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-5195?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-5195?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-5195 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux16.10
linux:linux_kernelfrom 2.6.22 before 3.2.83
linux:linux_kernelfrom 3.3 before 3.4.113
linux:linux_kernelfrom 3.5 before 3.10.104
linux:linux_kernelfrom 3.11 before 3.12.66
linux:linux_kernelfrom 3.13 before 3.16.38
linux:linux_kernelfrom 3.17 before 3.18.44
linux:linux_kernelfrom 3.19 before 4.1.35
linux:linux_kernelfrom 4.2 before 4.4.26
linux:linux_kernelfrom 4.5 before 4.7.9
linux:linux_kernelfrom 4.8 before 4.8.3
redhat:enterprise_linux5
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0
redhat:enterprise_linux_aus6.2
redhat:enterprise_linux_aus6.4
redhat:enterprise_linux_aus6.5
redhat:enterprise_linux_eus6.6
redhat:enterprise_linux_eus6.7
redhat:enterprise_linux_eus7.1
redhat:enterprise_linux_long_life5.6
redhat:enterprise_linux_long_life5.9
redhat:enterprise_linux_tus6.5
debian:debian_linux7.0
debian:debian_linux8.0
fedoraproject:fedora23
fedoraproject:fedora24
fedoraproject:fedora25
paloaltonetworks:pan-osfrom 5.1 before 7.0.14
paloaltonetworks:pan-osfrom 7.1.0 before 7.1.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7linux3.2.82-1DLA-670-1
Debian8linux3.16.36-1+deb8u2DSA-3696-1
Debian12, 13, 14linux4.7.8-1DEBIAN-CVE-2016-5195
Ubuntu14.04:LTSlinux3.13.0-100.147UBUNTU-CVE-2016-5195 USN-3105-1
Ubuntu14.04:LTSlinux-lts-vivid3.19.0-73.81~14.04.1UBUNTU-CVE-2016-5195
Ubuntu14.04:LTSlinux-lts-xenial4.4.0-45.66~14.04.1UBUNTU-CVE-2016-5195 USN-3106-2
Ubuntu16.04:LTSlinux4.4.0-45.66UBUNTU-CVE-2016-5195 USN-3106-1
Ubuntu16.04:LTSlinux-raspi24.4.0-1029.36UBUNTU-CVE-2016-5195 USN-3106-3
Ubuntu16.04:LTSlinux-snapdragon4.4.0-1032.36UBUNTU-CVE-2016-5195 USN-3106-4
Red Hatenterprise_linux:5::clientkernel, kernel-PAE, kernel-doc and 12 more0:2.6.18-416.el5RHSA-2016:2124
Red Hatenterprise_linux:5::serverkernel, kernel-PAE, kernel-doc and 15 more0:2.6.18-416.el5RHSA-2016:2124
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::workstationperf, kernel, kernel-doc and 13 more0:2.6.32-642.6.2.el6RHSA-2016:2105
Red Hatenterprise_linux:6::serverperf, kernel, kernel-doc and 19 more0:2.6.32-642.6.2.el6RHSA-2016:2105
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::workstationperf, kernel, kernel-doc and 15 more0:3.10.0-327.36.3.el7RHSA-2016:2098
Red Hatenterprise_linux:7::serverperf, kernel, kernel-doc and 22 more0:3.10.0-327.36.3.el7RHSA-2016:2098
Red Hatenterprise_linux:7::serverperf, kernel, python-perf and 14 more0:4.5.0-15.2.1.el7RHSA-2017:0372
Red Hatenterprise_mrg:2:server:el6kernel-rt, kernel-rt-doc, kernel-rt-debug and 12 more1:3.10.0-327.rt56.198.el6rtRHSA-2016:2107
Red Hatrhel_aus:5.9kernel, kernel-PAE, kernel-doc and 12 more0:2.6.18-348.32.1.el5RHSA-2016:2126
Red Hatrhel_aus:6.4::serverperf, kernel, kernel-doc and 11 more0:2.6.32-358.75.1.el6RHSA-2016:2133
Red Hatrhel_aus:6.5::server, rhel_tus:6.5::serverperf, kernel, kernel-doc and 12 more0:2.6.32-431.75.1.el6RHSA-2016:2120
Red Hatrhel_eus:6.6::computenodeperf, kernel, kernel-doc and 13 more0:2.6.32-504.54.1.el6RHSA-2016:2128
9 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Desktop 12 SP1, Linux Enterprise Server 12 SP1, Linux Enterprise Server for SAP Applications 12 SP1kernel-xen, kernel-syms, kernel-source and 1 more3.12.62-60.64.8.2SUSE-SU-2016:2592-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP1_Update_07-20.2SUSE-SU-2016:2631-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP1_Update_17-2.1SUSE-SU-2016:2630-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP1_Update_26-2.1SUSE-SU-2016:2629-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP1_Update_35-2.1SUSE-SU-2016:2634-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP1_Update_44-2.1SUSE-SU-2016:2638-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP1_Update_54-2.1SUSE-SU-2016:2635-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP1_Update_64-2.1SUSE-SU-2016:2637-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP1_Update_73-5.1SUSE-SU-2016:2673-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP1_Update_81-2.2SUSE-SU-2016:2592-1
SUSELinux Enterprise Module for Public Cloud 12kernel-ec23.12.60-52.57.1SUSE-SU-2016:2593-1
SUSELinux Enterprise Module for Public Cloud 12kernel-ec23.12.62-60.64.8.2SUSE-SU-2016:2592-1
20 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.1cri-o1.17.1-lp151.2.2openSUSE-SU-2020:0554-1
openSUSELeap 15.1cri-tools1.18.0-lp151.2.1openSUSE-SU-2020:0554-1
openSUSELeap 15.1go1.141.14-lp151.6.1openSUSE-SU-2020:0554-1
openSUSELeap 15.1kubernetes1.18.0-lp151.5.1openSUSE-SU-2020:0554-1
openSUSETumbleweedkernel-source4.8.13-1.1openSUSE-SU-2024:10128-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue affects the Linux kernel packages as shipped with Red Hat Enterprise Linux 5, 6, 7 and MRG 2.x. This issue has been rated as having Important security impact.

Red Hat's mitigation

Please see bug 1384344 comment #13 (https://bugzilla.redhat.com/show_bug.cgi?id=1384344#c13) for details on how to mitigate this issue.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5kernel-0:2.6.18-416.el5Fixed 2016-10-28RHSA-2016:2124
Red Hat Enterprise Linux 5.6 Long Lifekernel-0:2.6.18-238.57.1.el5Fixed 2016-10-31RHSA-2016:2127
Red Hat Enterprise Linux 5.9 Long Lifekernel-0:2.6.18-348.32.1.el5Fixed 2016-10-31RHSA-2016:2126
Red Hat Enterprise Linux 6kernel-0:2.6.32-642.6.2.el6Fixed 2016-10-26RHSA-2016:2105
Red Hat Enterprise Linux 6.2 Advanced Update Supportkernel-0:2.6.32-220.68.1.el6Fixed 2016-11-01RHSA-2016:2132
Red Hat Enterprise Linux 6.4 Advanced Update Supportkernel-0:2.6.32-358.75.1.el6Fixed 2016-11-01RHSA-2016:2133
Red Hat Enterprise Linux 6.5 Advanced Update Supportkernel-0:2.6.32-431.75.1.el6Fixed 2016-10-27RHSA-2016:2120
Red Hat Enterprise Linux 6.5 Telco Extended Update Supportkernel-0:2.6.32-431.75.1.el6Fixed 2016-10-27RHSA-2016:2120
Red Hat Enterprise Linux 6.6 Extended Update Supportkernel-0:2.6.32-504.54.1.el6Fixed 2016-10-31RHSA-2016:2128
Red Hat Enterprise Linux 6.7 Extended Update Supportkernel-0:2.6.32-573.35.2.el6Fixed 2016-10-26RHSA-2016:2106
Red Hat Enterprise Linux 7kernel-rt-0:3.10.0-327.36.3.rt56.238.el7Fixed 2016-10-26RHSA-2016:2110
Red Hat Enterprise Linux 7kernel-0:3.10.0-327.36.3.el7Fixed 2016-10-24RHSA-2016:2098
Red Hat Enterprise Linux 7kernel-aarch64-0:4.5.0-15.2.1.el7Fixed 2017-03-02RHSA-2017:0372
Red Hat Enterprise Linux 7.1 Extended Update Supportkernel-0:3.10.0-229.42.2.ael7bFixed 2016-10-26RHSA-2016:2118
Red Hat Enterprise MRG 2kernel-rt-1:3.10.0-327.rt56.198.el6rtFixed 2016-10-26RHSA-2016:2107
Red Hat Enterprise Linux 4kernelNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-5195.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

2 more
  • gogooma125732/CVE-2016-5195 Harbor Check: matches CVE 0 stars, C, created
    Defensive analysis and non-weaponized validation of CVE-2016-5195 (Dirty COW), including root-cause research, patch analysis, and reproduci…
  • theo543/OSDS_Paper_CVE-2016-5195 Harbor Check: matches CVE 0 stars, TeX, created

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON