VDB

CVE-2017-1000405

CVE-2017-1000405 PUBLISHED

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.

PackageEcosystemFixed in
perfAmazon Linux4.9.81-44.57.amzn2
kernel-headersAmazon Linux4.9.81-44.57.amzn2
linux-kvmUbuntu:16.04:LTS4.4.0-1012.17
linux-hweUbuntu:16.04:LTS4.13.0-32.35~16.04.1
linux-snapdragonUbuntu:16.04:LTS4.4.0-1081.86

Affected products

VendorProductVersions
n/an/an/a
amazon:2perf0
amazon:2kernel-headers0
n/an/a*
amazon:2kernel-doc0
amazon:2kernel-tools0
amazon:2python-perf0
amazon:2kernel0
amazon:2kernel-tools-devel0
amazon:2kernel-devel0

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
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›