CVE-2016-5195
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedRace 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."
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA race condition in mm/gup.c in Linux kernel versions 2.x through 4.x (before 4.8.3) allows local users to bypass copy-on-write (COW) protections, enabling writes to read-only memory mappings and privilege escalation.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 12.04= 14.04= 16.04= 16.10>= 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= 5= 6.0= 7.0= 6.2= 6.4= 6.5= 6.6= 6.7= 7.1= 5.6= 5.9= 6.5= 7.0= 8.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- High
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify the running kernel versionRun `uname -r` or `cat /proc/version` to obtain the exact kernel version stringAffected if The kernel version falls within any of the affected ranges: >= 2.6.22 and < 3.2.83; >= 3.3 and < 3.4.113; >= 3.5 and < 3.10.104; >= 3.11 and < 3.12.66; >= 3.13 and < 3.16.38; >= 3.17 and < 3.18.44; >= 3.19 and < 4.1.35; >= 4.2 and < 4.4.26; >= 4.5 and < 4.7.9; >= 4.8 and < 4.8.3
-
Confirm the distribution and versionRun `cat /etc/os-release` or check distribution-specific files such as `/etc/lsb-release` for Ubuntu, `/etc/redhat-release` for RHEL, or `/etc/debian_version` for DebianAffected if The system runs Ubuntu 12.04, 14.04, 16.04, or 16.10; RHEL 5, 6.0, 6.2, 6.4, 6.5, 6.6, 6.7, 7.0, 7.1, or specific long life/aus/eus/tus variants; or Debian 7.0 or 8.0, and the kernel has not been patched
-
Check if user namespaces are enabledInspect the kernel config with `cat /boot/config-$(uname -r) | grep CONFIG_USER_NS` or verify runtime status with `sysctl user.max_user_namespaces`Affected if User namespaces are enabled (CONFIG_USER_NS=y) as this is a common exploitation vector for Dirty COW privilege escalation, though the vulnerability can be exploited without this
-
Verify if the vulnerability is patched in the installed kernelCheck for the presence of the fix commit in the kernel by examining `/proc/version_signature` on Ubuntu or running `rpm -q kernel` to list installed kernel packages and compare against distribution security advisoriesAffected if The installed kernel lacks the CVE-2016-5195 fix and remains within the affected version ranges listed above
A system is affected if it runs a Linux kernel within the vulnerable version ranges (2.x through 4.x before 4.8.3) from the listed distributions without the security patch applied.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped3.2.833.4.1133.10.104
Upgrade the Linux kernel to version 4.8.3 or later, or apply the corresponding backported security patch. For systems where immediate patching is infeasible, consider compensating controls such as restricting local shell access or using SELinux/AppArmor to limit privilege escalation vectors.
Linux kernel 4.8.3 or later; or distribution-specific patched kernels (Ubuntu 16.04.1+ with kernel 4.8.0+, RHEL/CentOS 7 with kernel 3.10.0-514+, Debian 8.8+ with kernel 3.16.43+)
- 1. Identify your current kernel version using 'uname -r'
- 2. For Ubuntu/Debian: Run 'sudo apt-get update && sudo apt-get dist-upgrade' to install the latest kernel security patches, or manually install linux-image-<version> for version 4.8.3 or later
- 3. For RHEL/CentOS/Enterprise Linux: Run 'sudo yum update kernel' to install the patched kernel
- 4. For other distributions: Obtain kernel version 4.8.3 or later from your vendor's stable repository
- 5. Reboot the system to load the patched kernel: 'sudo reboot'
- 6. Verify the fix by running 'uname -r' to confirm the new kernel version and checking that it is 4.8.3 or later, or that your distribution's security advisory confirms the patch is applied
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation6.0 h
- Implementation8.0 h
- Testing8.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,296.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2016-5195 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sources- git.kernel.org
- packetstormsecurity.com
- git.kernel.org
- www.oracle.com
- github.com
- fortiguard.com
- kb.juniper.net
- kb.juniper.net
- kb.juniper.net
- lists.opensuse.org
- packetstormsecurity.com
- packetstormsecurity.com
- packetstormsecurity.com
- packetstormsecurity.com
- packetstormsecurity.com
- packetstormsecurity.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- rhn.redhat.com
- tools.cisco.com
- www.debian.org
- www.huawei.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.openwall.com
- www.securityfocus.com
- www.securityfocus.com
- www.securityfocus.com
- www.securityfocus.com
- www.securityfocus.com
- www.securityfocus.com
- www.securityfocus.com
- www.securityfocus.com
- www.securityfocus.com
- www.securitytracker.com
- www.ubuntu.com
- www.ubuntu.com
- www.ubuntu.com
- www.ubuntu.com
- www.ubuntu.com
- www.ubuntu.com
- www.ubuntu.com
- www.ubuntu.com
- www.ubuntu.com
- www.ubuntu.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- bto.bluecoat.com
- dirtycow.ninja
- github.com
- github.com
- h20566.www2.hpe.com
- h20566.www2.hpe.com
- h20566.www2.hpe.com
- h20566.www2.hpe.com
- h20566.www2.hpe.com
- h20566.www2.hpe.com
- h20566.www2.hpe.com
- h20566.www2.hpe.com
- help.ecostruxureit.com
- kc.mcafee.com
- kc.mcafee.com
- kc.mcafee.com
- people.canonical.com
- security-tracker.debian.org
- security.netapp.com
- security.paloaltonetworks.com
- source.android.com
- source.android.com
- tools.cisco.com
- www.arista.com
- www.exploit-db.com
- www.exploit-db.com
- www.exploit-db.com
- www.exploit-db.com
- www.kb.cert.org
- seclists.org
- www.kernel.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- bugzilla.suse.com
- bugzilla.redhat.com
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- lists.opensuse.org
- www.cisa.gov
- nvd.nist.gov
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2016-5195 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data