CVE-2017-1000405

Published: Nov 30, 2017 Last Modified: Apr 20, 2025 EU-VD ID: EUVD-2017-1545 Aliases: GSD-2017-1000405
ExploitDB:
Other exploit source:
Google Dorks:
HIGH 7,0
Attack Vector: local
Attack Complexity: high
Privileges Required: low
User Interaction: none
Scope: unchanged
Confidentiality: high
Integrity: high
Availability: high
MEDIUM 6,9
Access Vector: local
Access Complexity: medium
Authentication: none
Confidentiality: complete
Integrity: complete
Availability: complete

Description

AI Translation Available

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.

EPSS (Exploit Prediction Scoring System)

Trend Analysis

EPSS (Exploit Prediction Scoring System)

Prevede la probabilità di sfruttamento basata su intelligence sulle minacce e sulle caratteristiche della vulnerabilità.

EPSS Score
0,0449
Percentile
0,9th
Updated

EPSS Score Trend (Last 90 Days)

362

Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Draft
Common Consequences
Security Scopes Affected:
Availability Confidentiality Integrity Access Control
Potential Impacts:
Dos: Resource Consumption (Cpu) Dos: Resource Consumption (Memory) Dos: Resource Consumption (Other) Dos: Crash, Exit, Or Restart Dos: Instability Read Files Or Directories Read Application Data Execute Unauthorized Code Or Commands Gain Privileges Or Assume Identity Bypass Protection Mechanism
Applicable Platforms
Languages: C, C++, Java
Technologies: Mobile, ICS/OT
View CWE Details
Exploit

Linux Kernel - 'The Huge Dirty Cow' Overwriting …

Linux Kernel - 'The Huge Dirty Cow' Overwriting The Huge Zero Page (1)

View Exploit Code →
Exploit

Linux Kernel - 'The Huge Dirty Cow' Overwriting …

Linux Kernel - 'The Huge Dirty Cow' Overwriting The Huge Zero Page (2)

View Exploit Code →
Operating System

Linux Kernel by Linux

Version Range Affected
From 4.9.7 (inclusive)
To 4.9.67 (exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
Operating System

Linux Kernel by Linux

Version Range Affected
From 3.10.106 (inclusive)
To 3.11 (exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
Operating System

Linux Kernel by Linux

Version Range Affected
From 4.10 (inclusive)
To 4.14.4 (exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
Operating System

Linux Kernel by Linux

Version Range Affected
From 3.16.42 (inclusive)
To 3.16.52 (exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
Operating System

Linux Kernel by Linux

Version Range Affected
From 4.1.41 (inclusive)
To 4.1.48 (exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
Operating System

Linux Kernel by Linux

Version Range Affected
From 3.12.73 (inclusive)
To 3.13 (exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
Operating System

Linux Kernel by Linux

Version Range Affected
From 3.18.55 (inclusive)
To 3.18.86 (exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
Operating System

Linux Kernel by Linux

Version Range Affected
From 3.2.87 (inclusive)
To 3.3 (exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
Operating System

Linux Kernel by Linux

Version Range Affected
From 4.4.70 (inclusive)
To 4.4.104 (exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Common Platform Enumeration - Standardized vulnerability identification
https://access.redhat.com/errata/RHSA-2018:0180
https://medium.com/bindecy/huge-dirty-cow-cve-2017-1000405-…
Exploit Issue Tracking Third Party Advisory
https://medium.com/bindecy/huge-dirty-cow-cve-2017-1000405-110eca132de0
https://source.android.com/security/bulletin/pixel/2018-02-01
https://www.exploit-db.com/exploits/43199/
Exploit Issue Tracking Third Party Advisory VDB Entry
https://www.exploit-db.com/exploits/43199/
http://www.securityfocus.com/bid/102032
Third Party Advisory VDB Entry
http://www.securityfocus.com/bid/102032
http://www.securitytracker.com/id/1040020
Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1040020
https://access.redhat.com/errata/RHSA-2018:0180
https://medium.com/bindecy/huge-dirty-cow-cve-2017-1000405-…
Exploit Issue Tracking Third Party Advisory
https://medium.com/bindecy/huge-dirty-cow-cve-2017-1000405-110eca132de0
https://source.android.com/security/bulletin/pixel/2018-02-01
https://www.exploit-db.com/exploits/43199/
Exploit Issue Tracking Third Party Advisory VDB Entry
https://www.exploit-db.com/exploits/43199/
http://www.securityfocus.com/bid/102032
Third Party Advisory VDB Entry
http://www.securityfocus.com/bid/102032
http://www.securitytracker.com/id/1040020
Third Party Advisory VDB Entry
http://www.securitytracker.com/id/1040020