Advisory
UBUNTU-CVE-2017-1000405
Also known as: CVE-2017-1000405
Summary
The record has no summary.
Details
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 Basis: CVSS v3 score 7, vector CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Dates
- Published
- 2017-11-30 00:00 UTC
- Modified
- 2026-10-05 19:17 UTC
Affected packages and fixes
| Package | System | Affected | Fix |
|---|---|---|---|
| linux | Debian packages (deb) · Ubuntu 14.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-aws | Debian packages (deb) · Ubuntu 14.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-lts-xenial | Debian packages (deb) · Ubuntu 14.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux | Debian packages (deb) · Ubuntu 16.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-aws | Debian packages (deb) · Ubuntu 16.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-azure | Debian packages (deb) · Ubuntu 16.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-gcp | Debian packages (deb) · Ubuntu 16.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-hwe | Debian packages (deb) · Ubuntu 16.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-kvm | Debian packages (deb) · Ubuntu 16.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-oem | Debian packages (deb) · Ubuntu 16.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-raspi2 | Debian packages (deb) · Ubuntu 16.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-snapdragon | Debian packages (deb) · Ubuntu 16.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-hwe | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-hwe-edge | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-azure-fde | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-gke | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-raspi2 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-riscv | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-intel-iot-realtime | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-realtime | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-riscv | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| linux-raspi-realtime | Debian packages (deb) · Ubuntu 24.04 | introduced 0 | No fixed version is listed. |
Some commands upgrade the distribution's packages. Compare the fixed version with the version you have installed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- https://ubuntu.com/security/CVE-2017-1000405
- https://medium.com/bindecy/huge-dirty-cow-cve-2017-1000405-110eca132de0
- http://www.openwall.com/lists/oss-security/2017/11/30/1
- https://bugzilla.redhat.com/show_bug.cgi?id=1516514
- https://ubuntu.com/security/notices/USN-3511-1
- https://ubuntu.com/security/notices/USN-3510-1
- https://ubuntu.com/security/notices/USN-3510-2
- https://ubuntu.com/security/notices/USN-3509-1
- https://ubuntu.com/security/notices/USN-3509-2
- https://ubuntu.com/security/notices/USN-3508-1
- https://ubuntu.com/security/notices/USN-3508-2
- https://ubuntu.com/security/notices/USN-3507-1
- https://ubuntu.com/security/notices/USN-3507-2
- https://www.cve.org/CVERecord?id=CVE-2017-1000405
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0