CVE-2017-1000405
Reported by mitre · Published November 30, 2017
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf | Amazon Linux | 4.9.81-44.57.amzn2 |
| kernel-headers | Amazon Linux | 4.9.81-44.57.amzn2 |
| linux-kvm | Ubuntu:16.04:LTS | 4.4.0-1012.17 |
| linux-hwe | Ubuntu:16.04:LTS | 4.13.0-32.35~16.04.1 |
| linux-snapdragon | Ubuntu:16.04:LTS | 4.4.0-1081.86 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | perf | 0 |
| amazon:2 | kernel-headers | 0 |
| n/a | n/a | * |
| amazon:2 | kernel-doc | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2 | python-perf | 0 |
| amazon:2 | kernel | 0 |
| amazon:2 | kernel-tools-devel | 0 |
| amazon:2 | kernel-devel | 0 |
Timeline
- Nov 29, 2017 CVE Published
- Dec 1, 2017 PoC Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 5, 2026 Distribution Patch (27 in total, the first dated here)
- Mar 5, 2026 Security Advisory (11 in total, the first dated here)
- Oct 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-1000405
vulnetix vdb fixes CVE-2017-1000405
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-1000405/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 102032 vdb-entryx_refsource_BID
- RHSA-2018:0180 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- x_refsource_CONFIRM
- 1040020 vdb-entryx_refsource_SECTRACK
- 43199 exploitx_refsource_EXPLOIT-DB