{"id":"CVE-2016-5195","details":"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.\"","modified":"2026-04-16T06:20:49.910909158Z","published":"2016-11-10T21:59:00.197Z","related":["SUSE-SU-2016:2585-1","SUSE-SU-2016:2592-1","SUSE-SU-2016:2593-1","SUSE-SU-2016:2596-1","SUSE-SU-2016:2614-1","SUSE-SU-2016:2629-1","SUSE-SU-2016:2630-1","SUSE-SU-2016:2631-1","SUSE-SU-2016:2632-1","SUSE-SU-2016:2633-1","SUSE-SU-2016:2634-1","SUSE-SU-2016:2635-1","SUSE-SU-2016:2636-1","SUSE-SU-2016:2637-1","SUSE-SU-2016:2638-1","SUSE-SU-2016:2655-1","SUSE-SU-2016:2657-1","SUSE-SU-2016:2658-1","SUSE-SU-2016:2659-1","SUSE-SU-2016:2673-1","SUSE-SU-2016:3069-1","SUSE-SU-2016:3304-1","openSUSE-SU-2020:0554-1","openSUSE-SU-2024:10128-1","openSUSE-SU-2024:10901-1"],"references":[{"type":"WEB","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2016-5195"},{"type":"WEB","url":"http://seclists.org/fulldisclosure/2024/Aug/35"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2133.html"},{"type":"ADVISORY","url":"https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-c05352241"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2016/10/30/1"},{"type":"ADVISORY","url":"http://www.ubuntu.com/usn/USN-3107-1"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2017:0372"},{"type":"ADVISORY","url":"https://dirtycow.ninja"},{"type":"ADVISORY","url":"https://kc.mcafee.com/corporate/index?page=content&id=SB10177"},{"type":"ADVISORY","url":"https://www.arista.com/en/support/advisories-notices/security-advisories/1753-security-advisory-0026"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2106.html"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20161025-0001/"},{"type":"ADVISORY","url":"http://packetstormsecurity.com/files/142151/Kernel-Live-Patch-Security-Notice-LSN-0021-1.html"},{"type":"ADVISORY","url":"http://www.ubuntu.com/usn/USN-3106-4"},{"type":"ADVISORY","url":"https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03707en_us"},{"type":"ADVISORY","url":"http://www.securityfocus.com/archive/1/540252/100/0/threaded"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/93793"},{"type":"ADVISORY","url":"https://help.ecostruxureit.com/display/public/UADCO8x/StruxureWare+Data+Center+Operation+Software+Vulnerability+Fixes"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2016/10/27/13"},{"type":"ADVISORY","url":"https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03722en_us"},{"type":"ADVISORY","url":"http://www.huawei.com/en/psirt/security-advisories/huawei-sa-20161207-01-dirtycow-en"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2022/08/09/4"},{"type":"ADVISORY","url":"http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10770"},{"type":"ADVISORY","url":"http://www.ubuntu.com/usn/USN-3106-2"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2120.html"},{"type":"ADVISORY","url":"http://www.securityfocus.com/archive/1/archive/1/539611/100/0/threaded"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2132.html"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E7M62SRP6CZLJ4ZXCRZKV4WPLQBSR7DT/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W3APRVDVPDBXLH4DC5UKZVCR742MJIM3/"},{"type":"ADVISORY","url":"https://kc.mcafee.com/corporate/index?page=content&id=SB10176"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2022/08/08/1"},{"type":"ADVISORY","url":"http://www.securitytracker.com/id/1037078"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2118.html"},{"type":"ADVISORY","url":"https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03761en_us"},{"type":"ADVISORY","url":"http://www.debian.org/security/2016/dsa-3696"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2022/08/15/1"},{"type":"ADVISORY","url":"https://github.com/dirtycow/dirtycow.github.io/wiki/PoCs"},{"type":"ADVISORY","url":"https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05347541"},{"type":"ADVISORY","url":"https://www.exploit-db.com/exploits/40847/"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2128.html"},{"type":"ADVISORY","url":"https://security.paloaltonetworks.com/CVE-2016-5195"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2022/08/08/8"},{"type":"ADVISORY","url":"http://www.securityfocus.com/archive/1/539611/100/0/threaded"},{"type":"ADVISORY","url":"https://access.redhat.com/security/vulnerabilities/2706661"},{"type":"ADVISORY","url":"http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10807"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2098.html"},{"type":"ADVISORY","url":"https://source.android.com/security/bulletin/2016-11-01.html"},{"type":"ADVISORY","url":"https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20181107-vcsd"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2110.html"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2022/08/08/7"},{"type":"ADVISORY","url":"http://www.securityfocus.com/archive/1/540736/100/0/threaded"},{"type":"ADVISORY","url":"http://www.ubuntu.com/usn/USN-3104-1"},{"type":"ADVISORY","url":"http://www.ubuntu.com/usn/USN-3104-2"},{"type":"ADVISORY","url":"http://www.ubuntu.com/usn/USN-3106-3"},{"type":"ADVISORY","url":"https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05352241"},{"type":"ADVISORY","url":"http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20161026-linux"},{"type":"ADVISORY","url":"http://www.securityfocus.com/archive/1/archive/1/540252/100/0/threaded"},{"type":"ADVISORY","url":"http://fortiguard.com/advisory/FG-IR-16-063"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2105.html"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2016/10/21/1"},{"type":"ADVISORY","url":"http://www.ubuntu.com/usn/USN-3105-1"},{"type":"ADVISORY","url":"https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbgn03742en_us"},{"type":"ADVISORY","url":"https://www.kb.cert.org/vuls/id/243144"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2022/03/07/1"},{"type":"ADVISORY","url":"http://www.securityfocus.com/archive/1/archive/1/540736/100/0/threaded"},{"type":"ADVISORY","url":"http://www.ubuntu.com/usn/USN-3105-2"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/cve-2016-5195"},{"type":"ADVISORY","url":"http://www.ubuntu.com/usn/USN-3106-1"},{"type":"ADVISORY","url":"http://www.ubuntu.com/usn/USN-3107-2"},{"type":"ADVISORY","url":"https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05341463"},{"type":"ADVISORY","url":"http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10774"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00041.html"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2124.html"},{"type":"ADVISORY","url":"http://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.8.3"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2022/08/08/2"},{"type":"ADVISORY","url":"https://people.canonical.com/~ubuntu-security/cve/2016/CVE-2016-5195.html"},{"type":"ADVISORY","url":"https://source.android.com/security/bulletin/2016-12-01.html"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2127.html"},{"type":"ADVISORY","url":"http://www.securityfocus.com/archive/1/540344/100/0/threaded"},{"type":"ADVISORY","url":"http://www.securityfocus.com/archive/1/archive/1/540344/100/0/threaded"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2126.html"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2016/10/26/7"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2016-2107.html"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2016/11/03/7"},{"type":"ADVISORY","url":"https://kc.mcafee.com/corporate/index?page=content&id=SB10222"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NWMDLBWMGZKFHMRJ7QUQVCERP5QHDB6W/"},{"type":"REPORT","url":"https://bto.bluecoat.com/security-advisory/sa134"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1384344"},{"type":"REPORT","url":"https://bugzilla.suse.com/show_bug.cgi?id=1004418"},{"type":"REPORT","url":"https://security-tracker.debian.org/tracker/CVE-2016-5195"},{"type":"FIX","url":"http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html"},{"type":"FIX","url":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619"},{"type":"FIX","url":"https://github.com/torvalds/linux/commit/19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00035.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00056.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00072.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00057.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00033.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00066.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00045.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00064.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00053.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-12/msg00100.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00039.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00067.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00036.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00034.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00065.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00040.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00051.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00058.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00054.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00048.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00038.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00063.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00052.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00050.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00049.html"},{"type":"ARTICLE","url":"http://lists.opensuse.org/opensuse-security-announce/2016-10/msg00055.html"},{"type":"EVIDENCE","url":"http://packetstormsecurity.com/files/139287/DirtyCow-Local-Root-Proof-Of-Concept.html"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/40611/"},{"type":"EVIDENCE","url":"http://packetstormsecurity.com/files/139286/DirtyCow-Linux-Kernel-Race-Condition.html"},{"type":"EVIDENCE","url":"http://packetstormsecurity.com/files/139277/Kernel-Live-Patch-Security-Notice-LSN-0012-1.html"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/40616/"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/40839/"},{"type":"EVIDENCE","url":"https://github.com/dirtycow/dirtycow.github.io/wiki/VulnerabilityDetails"},{"type":"EVIDENCE","url":"http://packetstormsecurity.com/files/139922/Linux-Kernel-Dirty-COW-PTRACE_POKEDATA-Privilege-Escalation.html"},{"type":"EVIDENCE","url":"http://packetstormsecurity.com/files/139923/Linux-Kernel-Dirty-COW-PTRACE_POKEDATA-Privilege-Escalation.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git","events":[{"introduced":"0"},{"fixed":"19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619"}]},{"type":"GIT","repo":"https://github.com/torvalds/linux","events":[{"introduced":"0"},{"last_affected":"1c163f4c7b3f621efff9b28a47abb36f7378d783"},{"introduced":"0"},{"last_affected":"4fe89d07dcc2804c8b562f6c7896a45643d34b2f"},{"introduced":"0"},{"last_affected":"c9c3395d5e3dcc6daee66c6908354d47bf98cb0c"},{"introduced":"0"},{"last_affected":"6995e2de6891c724bfeb2db33d7b87775f913ad1"},{"introduced":"0"},{"last_affected":"2dde18cd1d8fac735875f2e4987f11817cc0bc2c"},{"introduced":"0"},{"last_affected":"ffc253263a1375a65fa6c9f62a893e9767fbebfa"},{"introduced":"0"},{"last_affected":"0dd3ee31125508cd67f7e7172247f05b7fd1753a"},{"introduced":"0"},{"last_affected":"7111951b8d4973bda27ff663f2cf18b663d15b48"},{"introduced":"0"},{"last_affected":"bbf5c979011a099af5dc76498918ed7df445635b"},{"introduced":"0"},{"last_affected":"2dde18cd1d8fac735875f2e4987f11817cc0bc2c"},{"fixed":"19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"5"},{"introduced":"0"},{"last_affected":"6.0"},{"introduced":"0"},{"last_affected":"6.2"},{"introduced":"0"},{"last_affected":"6.4"},{"introduced":"0"},{"last_affected":"6.5"},{"introduced":"0"},{"last_affected":"6.6"},{"introduced":"0"},{"last_affected":"6.7"},{"introduced":"0"},{"last_affected":"5.6"},{"introduced":"0"},{"last_affected":"5.9"},{"introduced":"0"},{"last_affected":"6.5"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5195.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"12.04"}]},{"events":[{"introduced":"0"},{"last_affected":"14.04"}]},{"events":[{"introduced":"0"},{"last_affected":"16.04"}]},{"events":[{"introduced":"0"},{"last_affected":"16.10"}]},{"events":[{"introduced":"2.6.22"},{"fixed":"3.2.83"}]},{"events":[{"introduced":"3.3"},{"fixed":"3.4.113"}]},{"events":[{"introduced":"3.5"},{"fixed":"3.10.104"}]},{"events":[{"introduced":"3.11"},{"fixed":"3.12.66"}]},{"events":[{"introduced":"3.13"},{"fixed":"3.16.38"}]},{"events":[{"introduced":"3.17"},{"fixed":"3.18.44"}]},{"events":[{"introduced":"3.19"},{"fixed":"4.1.35"}]},{"events":[{"introduced":"4.2"},{"fixed":"4.4.26"}]},{"events":[{"introduced":"4.5"},{"fixed":"4.7.9"}]},{"events":[{"introduced":"4.8"},{"fixed":"4.8.3"}]},{"events":[{"introduced":"0"},{"last_affected":"7.0"}]},{"events":[{"introduced":"0"},{"last_affected":"7.1"}]},{"events":[{"introduced":"0"},{"last_affected":"7.0"}]},{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"23"}]},{"events":[{"introduced":"0"},{"last_affected":"24"}]},{"events":[{"introduced":"0"},{"last_affected":"25"}]},{"events":[{"introduced":"5.1"},{"fixed":"7.0.14"}]},{"events":[{"introduced":"7.1.0"},{"fixed":"7.1.8"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}