Vulnerability in Linux Kernel
CVE-2017-1000405
- CVSS v3
- 7.0 High
- Public exploits
- 1 repository
- EPSS
- 0.028 · 87.0th percentile
- Published
- 2017-11-30
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.
Vulnerability class: Race Condition
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.0 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
- Attack Vector
- Local
AV:L - Attack Complexity
- High
AC:H - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.028, 87.0th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- bindecy/HugeDirtyCowPOC (200 stars, last pushed 2017-11-30): A POC for the Huge Dirty Cow vulnerability (CVE-2017-1000405)
Also mentioned in 9 other repositories (20142995/sectool, ambynotcoder/C-libraries, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.securityfocus.com/bid/102032 (Third Party Advisory, VDB Entry, vdb-entry)
- RHSA-2018:0180 (vendor-advisory, Third Party Advisory)
- medium.com/bindecy/huge-dirty-cow-cve-2017-1000405-110eca132de0 (Exploit, Third Party Advisory, Issue Tracking)
- source.android.com/security/bulletin/pixel/2018-02-01 (Third Party Advisory)
- www.securitytracker.com/id/1040020 (Third Party Advisory, VDB Entry, vdb-entry)
- www.exploit-db.com/exploits/43199/ (Exploit, exploit, Third Party Advisory, VDB Entry, Issue Tracking)
This CVE has public exploit evidence. See the latest CVEs with public exploits.