CVE-2017-1000405

Public Exploit

Description

The Linux Kernel versions 2.6.38 through 4.14 have a problematic use of pmd_mkdirty() in the touch_pmd() function inside the THP implementation. touch_pmd() can be reached by get_user_pages(). In such case, the pmd will become dirty. This scenario breaks the new can_follow_write_pmd()'s logic - pmd can become dirty without going through a COW cycle. This bug is not as severe as the original "Dirty cow" because an ext4 file (or any other regular file) cannot be mapped using THP. Nevertheless, it does allow us to overwrite read-only huge pages. For example, the zero huge page and sealed shmem files can be overwritten (since their mapping can be populated using THP). Note that after the first write page-fault to the zero page, it will be replaced with a new fresh (and zeroed) thp.

Category

7.0
CVSS
Severity: High
CVSS 3.1 •
CVSS 2.0 •
EPSS 3.73% Top 15%
Vendor Advisory redhat.com
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
http://www.securityfocus.com/bid/102032 vdb entry third party advisory
https://access.redhat.com/errata/RHSA-2018:0180 third party advisory vendor advisory
https://medium.com/bindecy/huge-dirty-cow-cve-2017-1000405-110eca132de0 issue tracking exploit third party advisory
https://source.android.com/security/bulletin/pixel/2018-02-01 third party advisory
http://www.securitytracker.com/id/1040020 vdb entry third party advisory
https://www.exploit-db.com/exploits/43199/ issue tracking exploit vdb entry third party advisory

Frequently Asked Questions

What is the severity of CVE-2017-1000405?
CVE-2017-1000405 has been scored as a high severity vulnerability.
How to fix CVE-2017-1000405?
To fix CVE-2017-1000405, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2017-1000405 being actively exploited in the wild?
It is possible that CVE-2017-1000405 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~4% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.