p PatchFirst

CVE-2017-1000405

CVE-2017-1000405

This page contains facts from public vulnerability sources. Check the original advisory before updating.

This page shows selected source facts. See the linked advisories for the complete description and affected versions.

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.

CVSS 7.0 · High · EPSS 2.8% · Public exploit · Fix available

Published
Updated

Stack: system

Affected products and versions

  • n/a

    Versions
    • n/a: Affected

    No fix published

  • linux Debian:12

    Affected ranges
    • ECOSYSTEM: < 4.14.2-1

    Update to 4.14.2-1

  • linux Debian:13

    Affected ranges
    • ECOSYSTEM: < 4.14.2-1

    Update to 4.14.2-1

  • linux Debian:14

    Affected ranges
    • ECOSYSTEM: < 4.14.2-1

    Update to 4.14.2-1

  • linux Ubuntu:14.04:LTS

    Versions
    • 3.11.0-12.19
    • 3.12.0-1.3
    • 3.12.0-2.5
    • 3.12.0-2.7
    • 3.12.0-3.8
    • 3.12.0-3.9
    • 3.12.0-4.10
    • 3.12.0-4.12
    • 3.12.0-5.13
    • 3.12.0-7.15
    • 3.13.0-1.16
    • 3.13.0-2.17
    • 3.13.0-3.18
    • 3.13.0-4.19
    • 3.13.0-5.20
    • 3.13.0-6.23
    • 3.13.0-7.25
    • 3.13.0-7.26
    • 3.13.0-8.27
    • 3.13.0-8.28
    • 3.13.0-10.30
    • 3.13.0-11.31
    • 3.13.0-12.32
    • 3.13.0-13.33
    • 3.13.0-14.34
    • 3.13.0-15.35
    • 3.13.0-16.36
    • 3.13.0-17.37
    • 3.13.0-18.38
    • 3.13.0-19.39
    • 3.13.0-19.40
    • 3.13.0-20.42
    • 3.13.0-21.43
    • 3.13.0-22.44
    • 3.13.0-23.45
    • 3.13.0-24.46
    • 3.13.0-24.47
    • 3.13.0-27.50
    • 3.13.0-29.53
    • 3.13.0-30.54
    • 3.13.0-30.55
    • 3.13.0-32.57
    • 3.13.0-33.58
    • 3.13.0-34.60
    • 3.13.0-35.62
    • 3.13.0-36.63
    • 3.13.0-37.64
    • 3.13.0-39.66
    • 3.13.0-40.69
    • 3.13.0-41.70
    • 3.13.0-43.72
    • 3.13.0-44.73
    • 3.13.0-45.74
    • 3.13.0-46.75
    • 3.13.0-46.76
    • 3.13.0-46.77
    • 3.13.0-46.79
    • 3.13.0-48.80
    • 3.13.0-49.81
    • 3.13.0-49.83
    • 3.13.0-51.84
    • 3.13.0-52.85
    • 3.13.0-52.86
    • 3.13.0-53.88
    • 3.13.0-53.89
    • 3.13.0-54.91
    • 3.13.0-55.92
    • 3.13.0-55.94
    • 3.13.0-57.95
    • 3.13.0-58.97
    • 3.13.0-59.98
    • 3.13.0-61.100
    • 3.13.0-62.102
    • 3.13.0-63.103
    • 3.13.0-65.105
    • 3.13.0-65.106
    • 3.13.0-66.108
    • 3.13.0-67.110
    • 3.13.0-68.111
    • 3.13.0-70.113
    • 3.13.0-71.114
    • 3.13.0-73.116
    • 3.13.0-74.118
    • 3.13.0-76.120
    • 3.13.0-77.121
    • 3.13.0-79.123
    • 3.13.0-83.127
    • 3.13.0-85.129
    • 3.13.0-86.130
    • 3.13.0-86.131
    • 3.13.0-87.133
    • 3.13.0-88.135
    • 3.13.0-91.138
    • 3.13.0-92.139
    • 3.13.0-93.140
    • 3.13.0-95.142
    • 3.13.0-96.143
    • 3.13.0-98.145
    • 3.13.0-100.147
    • 3.13.0-101.148
    • 3.13.0-103.150
    • 3.13.0-105.152
    • 3.13.0-106.153
    • 3.13.0-107.154
    • 3.13.0-108.155
    • 3.13.0-109.156
    • 3.13.0-110.157
    • 3.13.0-111.158
    • 3.13.0-112.159
    • 3.13.0-113.160
    • 3.13.0-115.162
    • 3.13.0-116.163
    • 3.13.0-117.164
    • 3.13.0-119.166
    • 3.13.0-121.170
    • 3.13.0-123.172
    • 3.13.0-125.174
    • 3.13.0-126.175
    • 3.13.0-128.177
    • 3.13.0-129.178
    • 3.13.0-132.181
    • 3.13.0-133.182
    • 3.13.0-135.184
    Affected ranges
    • ECOSYSTEM: < 3.13.0-137.186

    Update to 3.13.0-137.186

  • linux-aws Ubuntu:14.04:LTS

    Versions
    • 4.4.0-1002.2
    • 4.4.0-1003.3
    Affected ranges
    • ECOSYSTEM: < 4.4.0-1005.5

    Update to 4.4.0-1005.5

  • linux-lts-xenial Ubuntu:14.04:LTS

    Versions
    • 4.4.0-13.29~14.04.1
    • 4.4.0-14.30~14.04.2
    • 4.4.0-15.31~14.04.1
    • 4.4.0-18.34~14.04.1
    • 4.4.0-21.37~14.04.1
    • 4.4.0-22.39~14.04.1
    • 4.4.0-22.40~14.04.1
    • 4.4.0-24.43~14.04.1
    • 4.4.0-28.47~14.04.1
    • 4.4.0-31.50~14.04.1
    • 4.4.0-34.53~14.04.1
    • 4.4.0-36.55~14.04.1
    • 4.4.0-38.57~14.04.1
    • 4.4.0-42.62~14.04.1
    • 4.4.0-45.66~14.04.1
    • 4.4.0-47.68~14.04.1
    • 4.4.0-51.72~14.04.1
    • 4.4.0-53.74~14.04.1
    • 4.4.0-57.78~14.04.1
    • 4.4.0-59.80~14.04.1
    • 4.4.0-62.83~14.04.1
    • 4.4.0-63.84~14.04.2
    • 4.4.0-64.85~14.04.1
    • 4.4.0-66.87~14.04.1
    • 4.4.0-67.88~14.04.1
    • 4.4.0-70.91~14.04.1
    • 4.4.0-71.92~14.04.1
    • 4.4.0-72.93~14.04.1
    • 4.4.0-75.96~14.04.1
    • 4.4.0-78.99~14.04.2
    • 4.4.0-79.100~14.04.1
    • 4.4.0-81.104~14.04.1
    • 4.4.0-83.106~14.04.1
    • 4.4.0-87.110~14.04.1
    • 4.4.0-89.112~14.04.1
    • 4.4.0-91.114~14.04.1
    • 4.4.0-92.115~14.04.1
    • 4.4.0-93.116~14.04.1
    • 4.4.0-96.119~14.04.1
    • 4.4.0-97.120~14.04.1
    • 4.4.0-98.121~14.04.1
    • 4.4.0-101.124~14.04.1
    Affected ranges
    • ECOSYSTEM: < 4.4.0-103.126~14.04.1

    Update to 4.4.0-103.126~14.04.1

  • linux Ubuntu:16.04:LTS

    Versions
    • 4.2.0-16.19
    • 4.2.0-17.21
    • 4.2.0-19.23
    • 4.3.0-1.10
    • 4.3.0-2.11
    • 4.3.0-5.16
    • 4.3.0-6.17
    • 4.3.0-7.18
    • 4.4.0-2.16
    • 4.4.0-4.19
    • 4.4.0-6.21
    • 4.4.0-7.22
    • 4.4.0-8.23
    • 4.4.0-9.24
    • 4.4.0-10.25
    • 4.4.0-11.26
    • 4.4.0-12.28
    • 4.4.0-13.29
    • 4.4.0-14.30
    • 4.4.0-15.31
    • 4.4.0-16.32
    • 4.4.0-17.33
    • 4.4.0-18.34
    • 4.4.0-21.37
    • 4.4.0-22.39
    • 4.4.0-22.40
    • 4.4.0-24.43
    • 4.4.0-28.47
    • 4.4.0-31.50
    • 4.4.0-34.53
    • 4.4.0-36.55
    • 4.4.0-38.57
    • 4.4.0-42.62
    • 4.4.0-43.63
    • 4.4.0-45.66
    • 4.4.0-47.68
    • 4.4.0-51.72
    • 4.4.0-53.74
    • 4.4.0-57.78
    • 4.4.0-59.80
    • 4.4.0-62.83
    • 4.4.0-63.84
    • 4.4.0-64.85
    • 4.4.0-65.86
    • 4.4.0-66.87
    • 4.4.0-67.88
    • 4.4.0-70.91
    • 4.4.0-71.92
    • 4.4.0-72.93
    • 4.4.0-75.96
    • 4.4.0-77.98
    • 4.4.0-78.99
    • 4.4.0-79.100
    • 4.4.0-81.104
    • 4.4.0-83.106
    • 4.4.0-87.110
    • 4.4.0-89.112
    • 4.4.0-91.114
    • 4.4.0-92.115
    • 4.4.0-93.116
    • 4.4.0-96.119
    • 4.4.0-97.120
    • 4.4.0-98.121
    • 4.4.0-101.124
    Affected ranges
    • ECOSYSTEM: < 4.4.0-103.126

    Update to 4.4.0-103.126

  • linux-aws Ubuntu:16.04:LTS

    Versions
    • 4.4.0-1001.10
    • 4.4.0-1003.12
    • 4.4.0-1004.13
    • 4.4.0-1007.16
    • 4.4.0-1009.18
    • 4.4.0-1011.20
    • 4.4.0-1012.21
    • 4.4.0-1013.22
    • 4.4.0-1016.25
    • 4.4.0-1017.26
    • 4.4.0-1018.27
    • 4.4.0-1020.29
    • 4.4.0-1022.31
    • 4.4.0-1026.35
    • 4.4.0-1028.37
    • 4.4.0-1030.39
    • 4.4.0-1031.40
    • 4.4.0-1032.41
    • 4.4.0-1035.44
    • 4.4.0-1037.46
    • 4.4.0-1038.47
    • 4.4.0-1039.48
    • 4.4.0-1041.50
    Affected ranges
    • ECOSYSTEM: < 4.4.0-1043.52

    Update to 4.4.0-1043.52

  • linux-azure Ubuntu:16.04:LTS

    Versions
    • 4.11.0-1009.9
    • 4.11.0-1011.11
    • 4.11.0-1013.13
    • 4.11.0-1014.14
    • 4.11.0-1015.15
    Affected ranges
    • ECOSYSTEM: < 4.11.0-1016.16

    Update to 4.11.0-1016.16

  • linux-gcp Ubuntu:16.04:LTS

    Versions
    • 4.10.0-1004.4
    • 4.10.0-1006.6
    • 4.10.0-1007.7
    • 4.10.0-1008.8
    • 4.10.0-1009.9
    Affected ranges
    • ECOSYSTEM: < 4.13.0-1002.5

    Update to 4.13.0-1002.5

  • linux-hwe Ubuntu:16.04:LTS

    Versions
    • 4.8.0-36.36~16.04.1
    • 4.8.0-39.42~16.04.1
    • 4.8.0-41.44~16.04.1
    • 4.8.0-42.45~16.04.1
    • 4.8.0-44.47~16.04.1
    • 4.8.0-45.48~16.04.1
    • 4.8.0-46.49~16.04.1
    • 4.8.0-49.52~16.04.1
    • 4.8.0-51.54~16.04.1
    • 4.8.0-52.55~16.04.1
    • 4.8.0-53.56~16.04.1
    • 4.8.0-54.57~16.04.1
    • 4.8.0-56.61~16.04.1
    • 4.8.0-58.63~16.04.1
    • 4.10.0-27.30~16.04.2
    • 4.10.0-28.32~16.04.2
    • 4.10.0-30.34~16.04.1
    • 4.10.0-32.36~16.04.1
    • 4.10.0-33.37~16.04.1
    • 4.10.0-35.39~16.04.1
    • 4.10.0-37.41~16.04.1
    • 4.10.0-38.42~16.04.1
    • 4.10.0-40.44~16.04.1
    • 4.10.0-42.46~16.04.1
    • 4.13.0-26.29~16.04.2
    • 4.13.0-31.34~16.04.1
    Affected ranges
    • ECOSYSTEM: < 4.13.0-32.35~16.04.1

    Update to 4.13.0-32.35~16.04.1

  • linux-kvm Ubuntu:16.04:LTS

    Versions
    • 4.4.0-1004.9
    • 4.4.0-1007.12
    • 4.4.0-1008.13
    • 4.4.0-1009.14
    • 4.4.0-1010.15
    Affected ranges
    • ECOSYSTEM: < 4.4.0-1012.17

    Update to 4.4.0-1012.17

  • linux-oem Ubuntu:16.04:LTS

    Versions
    • 4.13.0-1008.9
    Affected ranges
    • ECOSYSTEM: < 4.13.0-1010.11

    Update to 4.13.0-1010.11

  • linux-raspi2 Ubuntu:16.04:LTS

    Versions
    • 4.2.0-1013.19
    • 4.2.0-1014.21
    • 4.3.0-1006.6
    • 4.4.0-1003.4
    • 4.4.0-1004.5
    • 4.4.0-1009.10
    • 4.4.0-1010.12
    • 4.4.0-1010.13
    • 4.4.0-1012.16
    • 4.4.0-1016.22
    • 4.4.0-1017.23
    • 4.4.0-1019.25
    • 4.4.0-1021.27
    • 4.4.0-1023.29
    • 4.4.0-1027.33
    • 4.4.0-1029.36
    • 4.4.0-1034.41
    • 4.4.0-1038.45
    • 4.4.0-1040.47
    • 4.4.0-1042.49
    • 4.4.0-1044.51
    • 4.4.0-1046.53
    • 4.4.0-1048.55
    • 4.4.0-1050.57
    • 4.4.0-1051.58
    • 4.4.0-1052.59
    • 4.4.0-1054.61
    • 4.4.0-1055.62
    • 4.4.0-1057.64
    • 4.4.0-1059.67
    • 4.4.0-1061.69
    • 4.4.0-1065.73
    • 4.4.0-1067.75
    • 4.4.0-1069.77
    • 4.4.0-1070.78
    • 4.4.0-1071.79
    • 4.4.0-1074.82
    • 4.4.0-1075.83
    • 4.4.0-1076.84
    • 4.4.0-1077.85
    Affected ranges
    • ECOSYSTEM: < 4.4.0-1079.87

    Update to 4.4.0-1079.87

  • linux-snapdragon Ubuntu:16.04:LTS

    Versions
    • 4.4.0-1012.12
    • 4.4.0-1013.14
    • 4.4.0-1013.15
    • 4.4.0-1015.18
    • 4.4.0-1019.22
    • 4.4.0-1020.23
    • 4.4.0-1022.25
    • 4.4.0-1024.27
    • 4.4.0-1026.29
    • 4.4.0-1030.33
    • 4.4.0-1032.36
    • 4.4.0-1035.39
    • 4.4.0-1039.43
    • 4.4.0-1042.46
    • 4.4.0-1044.48
    • 4.4.0-1046.50
    • 4.4.0-1047.51
    • 4.4.0-1048.52
    • 4.4.0-1050.54
    • 4.4.0-1051.55
    • 4.4.0-1053.57
    • 4.4.0-1054.58
    • 4.4.0-1055.59
    • 4.4.0-1057.61
    • 4.4.0-1058.62
    • 4.4.0-1059.63
    • 4.4.0-1061.66
    • 4.4.0-1063.68
    • 4.4.0-1067.72
    • 4.4.0-1069.74
    • 4.4.0-1071.76
    • 4.4.0-1072.77
    • 4.4.0-1073.78
    • 4.4.0-1076.81
    • 4.4.0-1077.82
    • 4.4.0-1078.83
    • 4.4.0-1079.84
    Affected ranges
    • ECOSYSTEM: < 4.4.0-1081.86

    Update to 4.4.0-1081.86

  • linux-fips Ubuntu:Pro:FIPS-updates:16.04:LTS

    Versions
    • 4.4.0-1003.3
    Affected ranges
    • ECOSYSTEM: < 4.4.0-1005.5

    Update to 4.4.0-1005.5

  • linux-hwe Ubuntu:18.04:LTS

    Versions
    • 4.18.0-13.14~18.04.1
    • 4.18.0-14.15~18.04.1
    • 4.18.0-15.16~18.04.1
    • 4.18.0-16.17~18.04.1
    • 4.18.0-17.18~18.04.1
    • 4.18.0-18.19~18.04.1
    • 4.18.0-20.21~18.04.1
    • 4.18.0-21.22~18.04.1
    • 4.18.0-22.23~18.04.1
    • 4.18.0-24.25~18.04.1
    • 4.18.0-25.26~18.04.1
    • 5.0.0-23.24~18.04.1
    • 5.0.0-25.26~18.04.1
    • 5.0.0-27.28~18.04.1
    • 5.0.0-29.31~18.04.1
    • 5.0.0-31.33~18.04.1
    • 5.0.0-32.34~18.04.2
    • 5.0.0-35.38~18.04.1
    • 5.0.0-36.39~18.04.1
    • 5.0.0-37.40~18.04.1
    • 5.3.0-26.28~18.04.1
    • 5.3.0-28.30~18.04.1
    • 5.3.0-40.32~18.04.1
    • 5.3.0-42.34~18.04.1
    • 5.3.0-45.37~18.04.1
    • 5.3.0-46.38~18.04.1
    • 5.3.0-51.44~18.04.2
    • 5.3.0-53.47~18.04.1
    • 5.3.0-59.53~18.04.1
    • 5.3.0-61.55~18.04.1
    • 5.3.0-62.56~18.04.1
    • 5.3.0-64.58~18.04.1
    • 5.3.0-65.59
    • 5.3.0-66.60
    • 5.3.0-67.61
    • 5.3.0-68.63
    • 5.3.0-69.65
    • 5.3.0-70.66
    • 5.3.0-72.68
    • 5.3.0-73.69
    • 5.3.0-74.70
    • 5.3.0-75.71
    • 5.3.0-76.72
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • linux-hwe-edge Ubuntu:18.04:LTS

    Versions
    • 5.0.0-15.16~18.04.1
    • 5.0.0-16.17~18.04.1
    • 5.0.0-17.18~18.04.1
    • 5.0.0-19.20~18.04.1
    • 5.0.0-20.21~18.04.1
    • 5.3.0-19.20~18.04.2
    • 5.3.0-22.24~18.04.1
    • 5.3.0-23.25~18.04.1
    • 5.3.0-23.25~18.04.2
    • 5.3.0-24.26~18.04.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • linux-azure-fde Ubuntu:20.04:LTS

    Versions
    • 5.4.0-1063.66+cvm2.2
    • 5.4.0-1063.66+cvm3.2
    • 5.4.0-1064.67+cvm1.1
    • 5.4.0-1065.68+cvm2.1
    • 5.4.0-1067.70+cvm1.1
    • 5.4.0-1068.71+cvm1.1
    • 5.4.0-1069.72+cvm1.1
    • 5.4.0-1070.73+cvm1.1
    • 5.4.0-1072.75+cvm1.1
    • 5.4.0-1073.76+cvm1.1
    • 5.4.0-1074.77+cvm1.1
    • 5.4.0-1076.79+cvm1.1
    • 5.4.0-1078.81+cvm1.1
    • 5.4.0-1080.83+cvm1.1
    • 5.4.0-1083.87+cvm1.1
    • 5.4.0-1085.90+cvm1.1
    • 5.4.0-1085.90+cvm2.1
    • 5.4.0-1086.91+cvm1.1
    • 5.4.0-1089.94+cvm1.2
    • 5.4.0-1090.95+cvm1.1
    • 5.4.0-1091.96+cvm1.1
    • 5.4.0-1092.97+cvm1.1
    • 5.4.0-1095.101+cvm1.1
    • 5.4.0-1098.104+cvm1.1
    • 5.4.0-1100.106+cvm1.1
    • 5.4.0-1103.109+cvm1.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • linux-gke Ubuntu:20.04:LTS

    Versions
    • 5.4.0-1033.35
    • 5.4.0-1035.37
    • 5.4.0-1036.38
    • 5.4.0-1037.39
    • 5.4.0-1039.41
    • 5.4.0-1041.43
    • 5.4.0-1042.44
    • 5.4.0-1043.45
    • 5.4.0-1044.46
    • 5.4.0-1046.48
    • 5.4.0-1049.52
    • 5.4.0-1051.54
    • 5.4.0-1052.55
    • 5.4.0-1053.56
    • 5.4.0-1054.57
    • 5.4.0-1055.58
    • 5.4.0-1056.59
    • 5.4.0-1057.60
    • 5.4.0-1059.62
    • 5.4.0-1061.64
    • 5.4.0-1062.65
    • 5.4.0-1063.66
    • 5.4.0-1065.68
    • 5.4.0-1066.69
    • 5.4.0-1067.70
    • 5.4.0-1068.71
    • 5.4.0-1071.76
    • 5.4.0-1072.77
    • 5.4.0-1074.79
    • 5.4.0-1076.82
    • 5.4.0-1078.84
    • 5.4.0-1080.86
    • 5.4.0-1081.87
    • 5.4.0-1083.89
    • 5.4.0-1084.90
    • 5.4.0-1086.93
    • 5.4.0-1087.94
    • 5.4.0-1090.97
    • 5.4.0-1091.98
    • 5.4.0-1094.101
    • 5.4.0-1095.102
    • 5.4.0-1096.103
    • 5.4.0-1097.104
    • 5.4.0-1098.105
    • 5.4.0-1099.106
    • 5.4.0-1100.107
    • 5.4.0-1101.108
    • 5.4.0-1102.109
    • 5.4.0-1103.110
    • 5.4.0-1104.111
    • 5.4.0-1105.112
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • linux-raspi2 Ubuntu:20.04:LTS

    Versions
    • 5.3.0-1007.8
    • 5.3.0-1014.16
    • 5.3.0-1015.17
    • 5.3.0-1017.19
    • 5.4.0-1004.4
    • 5.4.0-1006.6
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • linux-riscv Ubuntu:20.04:LTS

    Versions
    • 5.4.0-24.28
    • 5.4.0-26.30
    • 5.4.0-27.31
    • 5.4.0-28.32
    • 5.4.0-30.34
    • 5.4.0-31.35
    • 5.4.0-33.37
    • 5.4.0-34.38
    • 5.4.0-36.41
    • 5.4.0-37.42
    • 5.4.0-39.44
    • 5.4.0-40.45
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • linux-intel-iot-realtime Ubuntu:22.04:LTS

    Versions
    • 5.15.0-1073.75
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →