CVE-2017-1000405

EUVD-2017-1545
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.
Race Condition
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
7 HIGH
LOCAL
HIGH
LOW
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 88%
Affected Products (NVD)
VendorProductVersion
linuxlinux_kernel
3.2.87 ≤
𝑥
< 3.3
linuxlinux_kernel
3.10.106 ≤
𝑥
< 3.11
linuxlinux_kernel
3.12.73 ≤
𝑥
< 3.13
linuxlinux_kernel
3.16.42 ≤
𝑥
< 3.16.52
linuxlinux_kernel
3.18.55 ≤
𝑥
< 3.18.86
linuxlinux_kernel
4.1.41 ≤
𝑥
< 4.1.48
linuxlinux_kernel
4.4.70 ≤
𝑥
< 4.4.104
linuxlinux_kernel
4.9.7 ≤
𝑥
< 4.9.67
linuxlinux_kernel
4.10 ≤
𝑥
< 4.14.4
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
linux
bookworm
6.1.106-3
fixed
bookworm (security)
6.1.112-1
fixed
bullseye
5.10.223-1
fixed
bullseye (security)
5.10.226-1
fixed
sid
6.11.6-1
fixed
trixie
6.11.5-1
fixed
wheezy
not-affected
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
linux
artful
Fixed 4.13.0-19.22
released
bionic
not-affected
focal
not-affected
jammy
not-affected
noble
not-affected
trusty
Fixed 3.13.0-137.186
released
xenial
Fixed 4.4.0-103.126
released
zesty
Fixed 4.10.0-42.46
released
linux-aws
artful
dne
bionic
not-affected
focal
not-affected
jammy
not-affected
noble
not-affected
trusty
Fixed 4.4.0-1005.5
released
xenial
Fixed 4.4.0-1043.52
released
zesty
dne
linux-aws-5.15
bionic
dne
focal
not-affected
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-aws-5.4
bionic
not-affected
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-aws-fips
bionic
dne
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
ignored
linux-aws-hwe
bionic
dne
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
not-affected
linux-azure
artful
dne
bionic
ignored
focal
not-affected
jammy
not-affected
noble
not-affected
trusty
not-affected
xenial
Fixed 4.11.0-1016.16
released
zesty
dne
linux-azure-4.15
bionic
not-affected
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-azure-5.15
bionic
dne
focal
not-affected
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-azure-5.4
bionic
not-affected
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-azure-fde
bionic
dne
focal
ignored
jammy
not-affected
noble
dne
trusty
dne
xenial
dne
linux-azure-fde-5.15
bionic
dne
focal
not-affected
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-azure-fips
bionic
dne
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
ignored
linux-bluefield
bionic
dne
focal
not-affected
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-euclid
artful
dne
bionic
dne
trusty
dne
xenial
not-affected
zesty
dne
linux-fips
bionic
dne
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-flo
artful
dne
bionic
dne
trusty
dne
xenial
ignored
zesty
dne
linux-gcp
artful
dne
bionic
ignored
focal
not-affected
jammy
not-affected
noble
not-affected
trusty
dne
xenial
Fixed 4.13.0-1002.5
released
zesty
dne
linux-gcp-4.15
bionic
not-affected
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-gcp-5.15
bionic
dne
focal
not-affected
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-gcp-5.4
bionic
not-affected
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-gcp-fips
bionic
dne
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
ignored
linux-gke
artful
dne
bionic
dne
focal
ignored
jammy
not-affected
noble
not-affected
trusty
dne
xenial
ignored
zesty
dne
linux-gkeop
bionic
dne
focal
not-affected
jammy
not-affected
noble
dne
trusty
dne
xenial
dne
linux-gkeop-5.15
bionic
dne
focal
not-affected
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-goldfish
artful
dne
bionic
dne
trusty
dne
xenial
not-affected
zesty
not-affected
linux-grouper
artful
dne
bionic
dne
trusty
dne
xenial
dne
zesty
dne
linux-hwe
artful
dne
bionic
ignored
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
Fixed 4.13.0-32.35~16.04.1
released
zesty
dne
linux-hwe-5.15
bionic
dne
focal
not-affected
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-hwe-5.4
bionic
not-affected
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-hwe-6.8
bionic
dne
focal
dne
jammy
not-affected
noble
dne
trusty
dne
xenial
dne
linux-hwe-edge
artful
dne
bionic
ignored
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
Fixed 4.10.0-42.46~16.04.1
released
zesty
dne
linux-ibm
bionic
dne
focal
not-affected
jammy
not-affected
noble
not-affected
trusty
dne
xenial
dne
linux-ibm-5.15
bionic
dne
focal
not-affected
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-ibm-5.4
bionic
not-affected
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-intel
bionic
dne
focal
dne
jammy
dne
noble
not-affected
trusty
dne
xenial
dne
linux-intel-iot-realtime
bionic
dne
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-intel-iotg
bionic
dne
focal
dne
jammy
not-affected
noble
dne
trusty
dne
xenial
dne
linux-intel-iotg-5.15
bionic
dne
focal
not-affected
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-iot
bionic
dne
focal
not-affected
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-kvm
artful
dne
bionic
not-affected
focal
not-affected
jammy
not-affected
noble
dne
trusty
dne
xenial
Fixed 4.4.0-1012.17
released
zesty
dne
linux-lowlatency
bionic
dne
focal
dne
jammy
not-affected
noble
not-affected
trusty
dne
xenial
dne
linux-lowlatency-hwe-5.15
bionic
dne
focal
not-affected
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-lowlatency-hwe-6.8
bionic
dne
focal
dne
jammy
not-affected
noble
dne
trusty
dne
xenial
dne
linux-lts-quantal
artful
dne
bionic
dne
trusty
dne
xenial
dne
zesty
dne
linux-lts-raring
artful
dne
bionic
dne
trusty
dne
xenial
dne
zesty
dne
linux-lts-saucy
artful
dne
bionic
dne
trusty
dne
xenial
dne
zesty
dne
linux-lts-trusty
artful
dne
bionic
dne
trusty
dne
xenial
dne
zesty
dne
linux-lts-utopic
artful
dne
bionic
dne
trusty
dne
xenial
dne
zesty
dne
linux-lts-vivid
artful
dne
bionic
dne
trusty
ignored
xenial
dne
zesty
dne
linux-lts-wily
artful
dne
bionic
dne
trusty
dne
xenial
dne
zesty
dne
linux-lts-xenial
artful
dne
bionic
dne
focal
dne
jammy
dne
noble
dne
trusty
Fixed 4.4.0-103.126~14.04.1
released
xenial
dne
zesty
dne
linux-maguro
artful
dne
bionic
dne
trusty
dne
xenial
dne
zesty
dne
linux-mako
artful
dne
bionic
dne
trusty
dne
xenial
ignored
zesty
dne
linux-manta
artful
dne
bionic
dne
trusty
dne
xenial
dne
zesty
dne
linux-nvidia
bionic
dne
focal
dne
jammy
not-affected
noble
not-affected
trusty
dne
xenial
dne
linux-nvidia-6.5
bionic
dne
focal
dne
jammy
not-affected
noble
dne
trusty
dne
xenial
dne
linux-nvidia-6.8
bionic
dne
focal
dne
jammy
not-affected
noble
dne
trusty
dne
xenial
dne
linux-nvidia-lowlatency
bionic
dne
focal
dne
jammy
dne
noble
not-affected
trusty
dne
xenial
dne
linux-oem
artful
dne
bionic
ignored
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
Fixed 4.13.0-1010.11
released
zesty
dne
linux-oem-6.8
bionic
dne
focal
dne
jammy
dne
noble
not-affected
trusty
dne
xenial
dne
linux-oracle
bionic
not-affected
focal
not-affected
jammy
not-affected
noble
not-affected
trusty
dne
xenial
not-affected
linux-oracle-5.15
bionic
dne
focal
not-affected
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-oracle-5.4
bionic
not-affected
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-raspi
bionic
dne
focal
not-affected
jammy
not-affected
noble
not-affected
trusty
dne
xenial
dne
linux-raspi-5.4
bionic
not-affected
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-raspi-realtime
bionic
dne
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-raspi2
artful
Fixed 4.13.0-1008.8
released
bionic
not-affected
focal
ignored
jammy
dne
noble
dne
trusty
dne
xenial
Fixed 4.4.0-1079.87
released
zesty
Fixed 4.10.0-1023.26
released
linux-realtime
bionic
dne
focal
dne
jammy
ignored
noble
dne
trusty
dne
xenial
dne
linux-riscv
bionic
dne
focal
ignored
jammy
ignored
noble
not-affected
trusty
dne
xenial
dne
linux-riscv-5.15
bionic
dne
focal
not-affected
jammy
dne
noble
dne
trusty
dne
xenial
dne
linux-riscv-6.8
bionic
dne
focal
dne
jammy
not-affected
noble
dne
trusty
dne
xenial
dne
linux-snapdragon
artful
Fixed 4.4.0-1081.86
released
bionic
dne
focal
dne
jammy
dne
noble
dne
trusty
dne
xenial
Fixed 4.4.0-1081.86
released
zesty
Fixed 4.4.0-1081.86
released
linux-xilinx-zynqmp
bionic
dne
focal
not-affected
jammy
not-affected
noble
dne
trusty
dne
xenial
dne