Exploitation Summary
EIP tracks 3 public exploits for CVE-2017-1000405. PoCs published by anonymous, Bindecy, bindecy.
AI-analyzed exploit summary This exploit leverages a race condition in the Linux kernel (CVE-2017-1000405) to achieve local privilege escalation by writing to read-only memory mappings via /proc/self/mem. It uses multithreading to force a write to a memory page that should be protected, demonstrating the vulnerability.
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.
Exploits (3)
This exploit leverages a race condition in the Linux kernel (CVE-2017-1000405) to achieve local privilege escalation by writing to read-only memory mappings via /proc/self/mem. It uses multithreading to force a write to a memory page that should be protected, demonstrating the vulnerability.
This exploit leverages a race condition in the Linux kernel's handling of transparent huge pages (CVE-2017-1000405) to overwrite the zero page, potentially leading to privilege escalation. It uses multithreading to force a dirty PMD state and achieve arbitrary write access.
This repository contains a functional proof-of-concept exploit for CVE-2017-1000405, leveraging a race condition in the Linux kernel's handling of transparent huge pages to achieve local privilege escalation. The exploit uses multithreading to overwrite the system's huge zero page, demonstrating the vulnerability.
References (6)
Scores
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H