CVE-2016-5195
Linux Kernel Race Condition Vulnerability
Check your servers for CVE-2016-5195
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2016-5195 affects a package, with the command that installs the fix. The free plan covers one server and does not need a credit card.
Known exploited
CISA added this CVE to its list of known exploited vulnerabilities on 3 Mar 2022. US federal agencies had to act by 24 Mar 2022.
- Name
- Linux Kernel Race Condition Vulnerability
- Required action
- Apply updates per vendor instructions.
- Ransomware
- Use in ransomware campaigns is not known
- Notes
- https://nvd.nist.gov/vuln/detail/CVE-2016-5195
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."
Severity (CVSS)
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 83.5%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.7% of all scored CVEs. Scores of 27 Nov 2026.
The assessment of CISA (SSVC, 29 Jan 2025):
- Exploitation
- active: CISA has reliable evidence of exploitation in the wild
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2016-5195 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2016-5195RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2016-5195Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2016-5195
trivy image --scanners vuln IMAGE | grep CVE-2016-5195
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server or read how to install the agent.
References
Advisories
- RHSA-2016:2107 rhn.redhat.com · vendor advisory
- RHSA-2017:0372 access.redhat.com · vendor advisory
- https://bto.bluecoat.com/security-advisory/sa134 bto.bluecoat.com
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05352241 h20566.www2.hpe.com
- http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html oracle.com
- RHSA-2016:2118 rhn.redhat.com · vendor advisory
- RHSA-2016:2128 rhn.redhat.com · vendor advisory
- https://source.android.com/security/bulletin/2016-12-01.html source.android.com
- RHSA-2016:2120 rhn.redhat.com · vendor advisory
- RHSA-2016:2133 rhn.redhat.com · vendor advisory
- RHSA-2016:2098 rhn.redhat.com · vendor advisory
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03761en_us h20566.www2.hpe.com
79 more
- VU#243144 kb.cert.org · third party advisory
- https://bugzilla.suse.com/show_bug.cgi?id=1004418 bugzilla.suse.com
- https://people.canonical.com/~ubuntu-security/cve/2016/CVE-2016-5195.html people.canonical.com
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03722en_us h20566.www2.hpe.com
- https://security.netapp.com/advisory/ntap-20161025-0001/ security.netapp.com
- RHSA-2016:2127 rhn.redhat.com · vendor advisory
- https://security-tracker.debian.org/tracker/CVE-2016-5195 security-tracker.debian.org
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03742en_us h20566.www2.hpe.com
- https://github.com/torvalds/linux/commit/19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619 github.com
- https://help.ecostruxureit.com/display/public/UADCO8x/StruxureWare+Data+Center+Operation+Software+Vulnerability+Fixes help.ecostruxureit.com
- https://bugzilla.redhat.com/show_bug.cgi?id=1384344 bugzilla.redhat.com
- https://access.redhat.com/security/vulnerabilities/2706661 access.redhat.com
- RHSA-2016:2106 rhn.redhat.com · vendor advisory
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619 git.kernel.org
- https://access.redhat.com/security/cve/cve-2016-5195 access.redhat.com
- https://source.android.com/security/bulletin/2016-11-01.html source.android.com
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05347541 h20566.www2.hpe.com
- RHSA-2016:2124 rhn.redhat.com · vendor advisory
- http://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.8.3 kernel.org
- RHSA-2016:2105 rhn.redhat.com · vendor advisory
- RHSA-2016:2126 rhn.redhat.com · vendor advisory
- RHSA-2016:2132 rhn.redhat.com · vendor advisory
- RHSA-2016:2110 rhn.redhat.com · vendor advisory
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03707en_us h20566.www2.hpe.com
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05341463 h20566.www2.hpe.com
- https://kc.mcafee.com/corporate/index?page=content&id=SB10176 kc.mcafee.com
- SUSE-SU-2016:2635 lists.opensuse.org · vendor advisory
- SUSE-SU-2016:2659 lists.opensuse.org · vendor advisory
- USN-3106-2 ubuntu.com · vendor advisory
- openSUSE-SU-2016:2583 lists.opensuse.org · vendor advisory
- SUSE-SU-2016:2633 lists.opensuse.org · vendor advisory
- http://www.huawei.com/en/psirt/security-advisories/huawei-sa-20161207-01-dirtycow-en huawei.com
- SUSE-SU-2016:2638 lists.opensuse.org · vendor advisory
- openSUSE-SU-2016:2584 lists.opensuse.org · vendor advisory
- SUSE-SU-2016:2658 lists.opensuse.org · vendor advisory
- SUSE-SU-2016:2631 lists.opensuse.org · vendor advisory
- USN-3106-3 ubuntu.com · vendor advisory
- https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-c05352241 h20566.www2.hpe.com
- SUSE-SU-2016:2655 lists.opensuse.org · vendor advisory
- FEDORA-2016-c3558808cd lists.fedoraproject.org · vendor advisory
- SUSE-SU-2016:2637 lists.opensuse.org · vendor advisory
- SUSE-SU-2016:2596 lists.opensuse.org · vendor advisory
- SUSE-SU-2016:2634 lists.opensuse.org · vendor advisory
- 20181107 Cisco TelePresence Video Communication Server Test Validation Script Issue tools.cisco.com · vendor advisory
- 20161026 Vulnerability in Linux Kernel Affecting Cisco Products: October 2016 tools.cisco.com · vendor advisory
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10770 kb.juniper.net
- https://kc.mcafee.com/corporate/index?page=content&id=SB10177 kc.mcafee.com
- SUSE-SU-2016:2657 lists.opensuse.org · vendor advisory
- SUSE-SU-2016:2614 lists.opensuse.org · vendor advisory
- USN-3105-2 ubuntu.com · vendor advisory
- USN-3107-1 ubuntu.com · vendor advisory
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10774 kb.juniper.net
- USN-3107-2 ubuntu.com · vendor advisory
- openSUSE-SU-2016:2625 lists.opensuse.org · vendor advisory
- USN-3106-1 ubuntu.com · vendor advisory
- USN-3106-4 ubuntu.com · vendor advisory
- SUSE-SU-2016:2673 lists.opensuse.org · vendor advisory
- USN-3104-2 ubuntu.com · vendor advisory
- http://fortiguard.com/advisory/FG-IR-16-063 fortiguard.com
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10807 kb.juniper.net
- SUSE-SU-2016:2629 lists.opensuse.org · vendor advisory
- SUSE-SU-2016:2632 lists.opensuse.org · vendor advisory
- USN-3105-1 ubuntu.com · vendor advisory
- SUSE-SU-2016:2630 lists.opensuse.org · vendor advisory
- FEDORA-2016-db4b75b352 lists.fedoraproject.org · vendor advisory
- FEDORA-2016-c8a0c7eece lists.fedoraproject.org · vendor advisory
- SUSE-SU-2016:2636 lists.opensuse.org · vendor advisory
- SUSE-SU-2016:3069 lists.opensuse.org · vendor advisory
- https://kc.mcafee.com/corporate/index?page=content&id=SB10222 kc.mcafee.com
- DSA-3696 debian.org · vendor advisory
- SUSE-SU-2016:2592 lists.opensuse.org · vendor advisory
- USN-3104-1 ubuntu.com · vendor advisory
- SUSE-SU-2016:2593 lists.opensuse.org · vendor advisory
- SUSE-SU-2016:3304 lists.opensuse.org · vendor advisory
- SUSE-SU-2016:2585 lists.opensuse.org · vendor advisory
- openSUSE-SU-2016:2649 lists.opensuse.org · vendor advisory
- https://security.paloaltonetworks.com/CVE-2016-5195 security.paloaltonetworks.com
- openSUSE-SU-2020:0554 lists.opensuse.org · vendor advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2016-5195 cisa.gov · government resource
Exploits and proof of concept
- 40616 exploit-db.com · exploit
- 40839 exploit-db.com · exploit
- 40847 exploit-db.com · exploit
- 40611 exploit-db.com · exploit
Other references
- https://dirtycow.ninja dirtycow.ninja
- [oss-security] 20161026 Re: CVE-2016-5195 "Dirty COW" Linux kernel privilege escalation vulnerability openwall.com · mailing list
- 1037078 securitytracker.com · vdb entry
- 93793 securityfocus.com · vdb entry
- https://github.com/dirtycow/dirtycow.github.io/wiki/PoCs github.com
- https://github.com/dirtycow/dirtycow.github.io/wiki/VulnerabilityDetails github.com
- [oss-security] 20161027 CVE-2016-5195 test case openwall.com · mailing list
- http://packetstormsecurity.com/files/139277/Kernel-Live-Patch-Security-Notice-LSN-0012-1.html packetstormsecurity.com
- http://packetstormsecurity.com/files/142151/Kernel-Live-Patch-Security-Notice-LSN-0021-1.html packetstormsecurity.com
- 20170615 [security bulletin] HPESBGN03761 rev.1 - HPE Virtualization Performance Viewer (VPV)/ Cloud Optimizer using… securityfocus.com · mailing list
- 20170331 [security bulletin] HPESBGN03722 rev.1 - HPE Operations Agent, Local Escalation of Privilege securityfocus.com · mailing list
- [oss-security] 20161030 Re: CVE-2016-5195 test case openwall.com · mailing list
21 more
- http://packetstormsecurity.com/files/139923/Linux-Kernel-Dirty-COW-PTRACE_POKEDATA-Privilege-Escalation.html packetstormsecurity.com
- 20161020 [CVE-2016-5195] "Dirty COW" Linux privilege escalation vulnerability securityfocus.com · mailing list
- http://packetstormsecurity.com/files/139922/Linux-Kernel-Dirty-COW-PTRACE_POKEDATA-Privilege-Escalation.html packetstormsecurity.com
- 20170310 [security bulletin] HPESBGN03707 rev.1 - HPE ConvergedSystem 700 2.0 VMware Kit, Remote Increase of Privilege securityfocus.com · mailing list
- http://packetstormsecurity.com/files/139286/DirtyCow-Linux-Kernel-Race-Condition.html packetstormsecurity.com
- [oss-security] 20161103 Re: CVE-2016-5195 "Dirty COW" Linux kernel privilege escalation vulnerability openwall.com · mailing list
- http://packetstormsecurity.com/files/139287/DirtyCow-Local-Root-Proof-Of-Concept.html packetstormsecurity.com
- 20170331 [security bulletin] HPESBGN03722 rev.1 - HPE Operations Agent, Local Escalation of Privilege securityfocus.com · mailing list
- 20161020 [CVE-2016-5195] "Dirty COW" Linux privilege escalation vulnerability securityfocus.com · mailing list
- 20170615 [security bulletin] HPESBGN03761 rev.1 - HPE Virtualization Performance Viewer (VPV)/ Cloud Optimizer using… securityfocus.com · mailing list
- [oss-security] 20161021 CVE-2016-5195 "Dirty COW" Linux kernel privilege escalation vulnerability openwall.com · mailing list
- 20170310 [security bulletin] HPESBGN03707 rev.1 - HPE ConvergedSystem 700 2.0 VMware Kit, Remote Increase of Privilege securityfocus.com · mailing list
- https://www.arista.com/en/support/advisories-notices/security-advisories/1753-security-advisory-0026 arista.com
- [oss-security] 20220307 CVE-2022-0847: Linux kernel: overwriting read-only files openwall.com · mailing list
- [oss-security] 20220808 Re: CVE-2022-2590: Linux kernel: Modifying shmem/tmpfs files without write permissions openwall.com · mailing list
- [oss-security] 20220808 CVE-2022-2590: Linux kernel: Modifying shmem/tmpfs files without write permissions openwall.com · mailing list
- [oss-security] 20220808 Re: CVE-2022-2590: Linux kernel: Modifying shmem/tmpfs files without write permissions openwall.com · mailing list
- [oss-security] 20220808 Re: CVE-2022-2590: Linux kernel: Modifying shmem/tmpfs files without write permissions openwall.com · mailing list
- [oss-security] 20220809 Re: CVE-2022-2590: Linux kernel: Modifying shmem/tmpfs files without write permissions openwall.com · mailing list
- [oss-security] 20220815 Re: CVE-2022-2590: Linux kernel: Modifying shmem/tmpfs files without write permissions openwall.com · mailing list
- http://seclists.org/fulldisclosure/2024/Aug/35 seclists.org
Source: the record CVE-2016-5195 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse