CVE-2017-1000405

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.

Severity
HIGH
CVSS v3
7.0
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
2.841%
chance of exploitation in the next 30 days
higher than 86.9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 2

Weakness

Timeline

  1. 2017-11-30Published by the CNA22:00 UTC
  2. 2017-11-30First Exploit-DB entry (EDB-ID 43199)same day

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Exploit-DBTypePlatformPublishedEDB-verified
EDB-ID 44305doslinux2017-12-11no
EDB-ID 43199doslinux2017-11-30no

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
linux linux_kernelfrom 3.10.106 before 3.11fixed in 3.11from 3.12.73 before 3.13fixed in 3.13from 3.16.42 before 3.16.52fixed in 3.16.52from 3.18.55 before 3.18.86fixed in 3.18.86from 3.2.87 before 3.3fixed in 3.3(+4 more)3.113.133.16.523.18.863.3

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources