CVEfocus › CVE database › CVE-2017-1000405

CVE-2017-1000405

CVSS 7.0 HighEPSS 2.8% (higher than 87% of CVEs)Published 2017-11-30Updated 2024-08-05Assigner: mitre

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.

What to do

Fixed builds are available from Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

31Fixed
2Fix pending
20Will not fix
79Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04linuxNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-awsNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-azureNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-azure-fdeNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-gcpNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-gkeNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-gkeopNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-ibmNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-intelNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-lowlatencyNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-nvidiaNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-nvidia-lowlatencyNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-oem-6.11Not affected
vulnerable_code_not_present
Ubuntu 24.04linux-oem-6.8Not affected
vulnerable_code_not_present
Ubuntu 24.04linux-oracleNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-raspiNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-raspi-realtimeWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
UBUNTU-CVE-2017-1000405
Ubuntu 24.04linux-realtimeNot affected
vulnerable_code_not_present
Ubuntu 24.04linux-riscvNot affected
vulnerable_code_not_present
Ubuntu 22.04linuxNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-awsNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-aws-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-azureNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-azure-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-azure-fdeNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-gcpNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-gcp-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-gkeNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-gkeopNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-hwe-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-ibmNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-intel-iot-realtimeWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
UBUNTU-CVE-2017-1000405
Ubuntu 22.04linux-intel-iotgNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-kvmNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-lowlatencyNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-lowlatency-hwe-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-nvidiaNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-nvidia-6.5Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-nvidia-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-oracleNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-oracle-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-raspiNot affected
vulnerable_code_not_present
Ubuntu 22.04linux-realtimeWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
UBUNTU-CVE-2017-1000405
Ubuntu 22.04linux-riscvWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
UBUNTU-CVE-2017-1000405
Ubuntu 22.04linux-riscv-6.8Not affected
vulnerable_code_not_present
Ubuntu 22.04linux-xilinx-zynqmpNot affected
vulnerable_code_not_present
Ubuntu 20.04linux-azure-fdeWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
UBUNTU-CVE-2017-1000405
Ubuntu 20.04linux-gkeWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
UBUNTU-CVE-2017-1000405
Ubuntu 20.04linux-gkeopNot affected
vulnerable_code_not_present
Ubuntu 20.04linux-gkeop-5.15Not affected
vulnerable_code_not_present
Ubuntu 20.04linux-raspi2Will not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
UBUNTU-CVE-2017-1000405
Ubuntu 20.04linux-riscvWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
UBUNTU-CVE-2017-1000405
Ubuntu 18.04linux-azureNot affected
vulnerable_code_not_present
Ubuntu 18.04linux-gcpNot affected
vulnerable_code_not_present
Ubuntu 18.04linux-hweFix pendingUBUNTU-CVE-2017-1000405
Ubuntu 18.04linux-hwe-edgeFix pendingUBUNTU-CVE-2017-1000405
Ubuntu 18.04linux-oemNot affected
vulnerable_code_not_present
Ubuntu 18.04linux-raspi2Not affected
vulnerable_code_not_present
Ubuntu 16.04linuxFixed4.4.0-103.126UBUNTU-CVE-2017-1000405
Ubuntu 16.04linux-awsFixed4.4.0-1043.52UBUNTU-CVE-2017-1000405
Ubuntu 16.04linux-aws-hweNot affected
vulnerable_code_not_present
Ubuntu 16.04linux-azureFixed4.11.0-1016.16UBUNTU-CVE-2017-1000405
Ubuntu 16.04linux-euclidNot affected
vulnerable_code_not_present
Ubuntu 16.04linux-floWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
Ubuntu 16.04linux-gcpFixed4.13.0-1002.5UBUNTU-CVE-2017-1000405
Ubuntu 16.04linux-gkeWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
Ubuntu 16.04linux-goldfishNot affected
vulnerable_code_not_present
Ubuntu 16.04linux-hweFixed4.13.0-32.35~16.04.1UBUNTU-CVE-2017-1000405
Ubuntu 16.04linux-kvmFixed4.4.0-1012.17UBUNTU-CVE-2017-1000405
Ubuntu 16.04linux-makoWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
Ubuntu 16.04linux-oemFixed4.13.0-1010.11UBUNTU-CVE-2017-1000405
Ubuntu 16.04linux-oracleNot affected
vulnerable_code_not_present
Ubuntu 16.04linux-raspi2Fixed4.4.0-1079.87UBUNTU-CVE-2017-1000405
Ubuntu 16.04linux-snapdragonFixed4.4.0-1081.86UBUNTU-CVE-2017-1000405
Ubuntu 14.04linuxFixed3.13.0-137.186UBUNTU-CVE-2017-1000405
Ubuntu 14.04linux-awsFixed4.4.0-1005.5UBUNTU-CVE-2017-1000405
Ubuntu 14.04linux-floWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
Ubuntu 14.04linux-goldfishWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
Ubuntu 14.04linux-grouperWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
Ubuntu 14.04linux-lts-utopicWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
Ubuntu 14.04linux-lts-vividWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
Ubuntu 14.04linux-lts-wilyWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
Ubuntu 14.04linux-lts-xenialFixed4.4.0-103.126~14.04.1UBUNTU-CVE-2017-1000405
Ubuntu 14.04linux-maguroWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
Ubuntu 14.04linux-makoWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
Ubuntu 14.04linux-mantaWill not fix
Added introducing commit as suggested by RH. We backported that into Trusty and later but not into Precise.
Debian 14linuxFixed4.14.2-1DEBIAN-CVE-2017-1000405
Debian 13linuxFixed4.14.2-1DEBIAN-CVE-2017-1000405
Debian 12linuxFixed4.14.2-1DEBIAN-CVE-2017-1000405
Red Hat Enterprise Linux 7bpftoolNot affected
Red Hat Enterprise Linux 7kernelFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7kernel-abi-whitelistsFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7kernel-altFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7kernel-bootwrapperFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7kernel-debugFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7kernel-debug-develFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7kernel-debuginfo-common-aarch64Fixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7kernel-debuginfo-common-ppc64leFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7kernel-develFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7kernel-docFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7kernel-headersFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7kernel-kdumpNot affected
Red Hat Enterprise Linux 7kernel-kdump-develNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 7kernel-rt-debugNot affected
Red Hat Enterprise Linux 7kernel-rt-debug-develNot affected
Red Hat Enterprise Linux 7kernel-rt-debug-kvmNot affected
Red Hat Enterprise Linux 7kernel-rt-develNot affected
Red Hat Enterprise Linux 7kernel-rt-docNot affected
Red Hat Enterprise Linux 7kernel-rt-kvmNot affected
Red Hat Enterprise Linux 7kernel-rt-traceNot affected
Red Hat Enterprise Linux 7kernel-rt-trace-develNot affected
Red Hat Enterprise Linux 7kernel-rt-trace-kvmNot affected
Red Hat Enterprise Linux 7kernel-toolsFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7kernel-tools-libsFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7kernel-tools-libs-develFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7perfFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 7python-perfFixed0:4.11.0-44.4.1.el7aRHSA-2018:0180
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 6kernel-abi-whitelistsNot affected
Red Hat Enterprise Linux 6kernel-bootwrapperNot affected
Red Hat Enterprise Linux 6kernel-debugNot affected
Red Hat Enterprise Linux 6kernel-debug-develNot affected
Red Hat Enterprise Linux 6kernel-develNot affected
Red Hat Enterprise Linux 6kernel-docNot affected
Red Hat Enterprise Linux 6kernel-firmwareNot affected
Red Hat Enterprise Linux 6kernel-headersNot affected
Red Hat Enterprise Linux 6kernel-kdumpNot affected
Red Hat Enterprise Linux 6kernel-kdump-develNot affected
Red Hat Enterprise Linux 6perfNot affected
Red Hat Enterprise Linux 6python-perfNot affected
Red Hat Enterprise Linux 5kernelNot affected

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.