CVE-2017-1000405

high
Published 2017-11-30 ยท Modified 2026-05-13
CVSS v3
7.0
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
8.0

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.

Predictions

Exploit likelihood
69%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-43199 dos linux
Bindecy ยท 2017-11-30

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

Source code queued for fetch โ€” refresh in a moment.
EDB-44305 dos linux
anonymous ยท 2017-12-11

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

Source code queued for fetch โ€” refresh in a moment.

OS impact

OSVersionStatusFixed in
suse slesaffected
debian debianbookwormfixed4.14.2-1
debian debianbullseyefixed4.14.2-1
debian debianforkyfixed4.14.2-1
debian debiansidfixed4.14.2-1
debian debiantrixiefixed4.14.2-1
linux linux-kernelaffected3.3

References

CWEs

CWE-362

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.