p PatchFirst

CVE-2020-8834

CVE-2020-8834 · Linux kernel KVM Power8 conflicting use of HSTATE_HOST_R1

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

KVM in the Linux kernel on Power8 processors has a conflicting use of HSTATE_HOST_R1 to store r1 state in kvmppc_hv_entry plus in kvmppc_{save,restore}_tm, leading to a stack corruption. Because of this, an attacker with the ability run code in kernel space of a guest VM can cause the host kernel to panic. There were two commits that, according to the reporter, introduced the vulnerability: f024ee098476 ("KVM: PPC: Book3S HV: Pull out TM state save/restore into separate procedures") 87a11bb6a7f7 ("KVM: PPC: Book3S HV: Work around XER[SO] bug in fake suspend mode") The former landed in 4.8, the latter in 4.17. This was fixed without realizing the impact in 4.18 with the following three commits, though it's believed the first is the only strictly necessary commit: 6f597c6b63b6 ("KVM: PPC: Book3S PR: Add guest MSR parameter for kvmppc_save_tm()/kvmppc_restore_tm()") 7b0e827c6970 ("KVM: PPC: Book3S HV: Factor fake-suspend handling out of kvmppc_save/restore_tm") 009c872a8bc4 ("KVM: PPC: Book3S PR: Move kvmppc_save_tm/kvmppc_restore_tm to separate file")

CVSS 6.5 · Medium · EPSS 0.3% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • linux kernel

    Versions
    • ≥ 4.8, < unspecified: Affected (custom)
    • ≥ unspecified, < 4.18: Affected (custom)

    Update to 4.18

  • linux Debian:12

    Affected ranges
    • ECOSYSTEM: < 4.18.6-1

    Update to 4.18.6-1

  • linux Debian:13

    Affected ranges
    • ECOSYSTEM: < 4.18.6-1

    Update to 4.18.6-1

  • linux Debian:14

    Affected ranges
    • ECOSYSTEM: < 4.18.6-1

    Update to 4.18.6-1

  • 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
    • 4.13.0-32.35~16.04.1
    • 4.13.0-36.40~16.04.1
    • 4.13.0-37.42~16.04.1
    • 4.13.0-38.43~16.04.1
    • 4.13.0-39.44~16.04.1
    • 4.13.0-41.46~16.04.1
    • 4.13.0-43.48~16.04.1
    • 4.13.0-45.50~16.04.1
    • 4.15.0-24.26~16.04.1
    • 4.15.0-29.31~16.04.1
    • 4.15.0-30.32~16.04.1
    • 4.15.0-32.35~16.04.1
    • 4.15.0-33.36~16.04.1
    • 4.15.0-34.37~16.04.1
    • 4.15.0-36.39~16.04.1
    • 4.15.0-38.41~16.04.1
    • 4.15.0-39.42~16.04.1
    • 4.15.0-42.45~16.04.1
    • 4.15.0-43.46~16.04.1
    • 4.15.0-45.48~16.04.1
    • 4.15.0-46.49~16.04.1
    • 4.15.0-47.50~16.04.1
    • 4.15.0-48.51~16.04.1
    • 4.15.0-50.54~16.04.1
    • 4.15.0-51.55~16.04.1
    • 4.15.0-52.56~16.04.1
    • 4.15.0-54.58~16.04.1
    • 4.15.0-55.60~16.04.2
    • 4.15.0-58.64~16.04.1
    • 4.15.0-60.67~16.04.1
    • 4.15.0-62.69~16.04.1
    • 4.15.0-64.73~16.04.1
    • 4.15.0-65.74~16.04.1
    • 4.15.0-66.75~16.04.1
    • 4.15.0-69.78~16.04.1
    • 4.15.0-70.79~16.04.1
    • 4.15.0-72.81~16.04.1
    • 4.15.0-74.83~16.04.1
    • 4.15.0-76.86~16.04.1
    • 4.15.0-88.88~16.04.1
    • 4.15.0-91.92~16.04.1
    Affected ranges
    • ECOSYSTEM: < 4.15.0-96.97~16.04.1

    Update to 4.15.0-96.97~16.04.1

  • linux-hwe-edge Ubuntu:16.04:LTS

    Versions
    • 4.8.0-28.30~16.04.1
    • 4.8.0-30.32~16.04.1
    • 4.8.0-32.34~16.04.1
    • 4.8.0-34.36~16.04.1
    • 4.10.0-14.16~16.04.1
    • 4.10.0-19.21~16.04.1
    • 4.10.0-20.22~16.04.1
    • 4.10.0-21.23~16.04.1
    • 4.10.0-22.24~16.04.1
    • 4.10.0-24.28~16.04.1
    • 4.10.0-26.30~16.04.1
    • 4.11.0-13.19~16.04.1
    • 4.11.0-14.20~16.04.1
    • 4.13.0-16.19~16.04.3
    • 4.13.0-17.20~16.04.1
    • 4.13.0-19.22~16.04.1
    • 4.13.0-21.24~16.04.1
    • 4.13.0-25.29~16.04.2
    • 4.15.0-13.14~16.04.1
    • 4.15.0-15.16~16.04.1
    • 4.15.0-20.21~16.04.1
    • 4.15.0-22.24~16.04.1
    • 4.15.0-23.25~16.04.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

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

    Versions
    • 4.4.0-1003.3
    • 4.4.0-1005.5
    • 4.4.0-1006.6
    • 4.4.0-1008.10
    • 4.4.0-1010.13
    • 4.4.0-1011.14
    • 4.4.0-1012.16
    • 4.4.0-1013.17
    • 4.4.0-1015.20
    • 4.4.0-1017.22
    • 4.4.0-1019.24
    • 4.4.0-1021.26
    • 4.4.0-1022.27
    • 4.4.0-1023.28
    • 4.4.0-1025.30
    • 4.4.0-1026.31
    • 4.4.0-1027.32
    • 4.4.0-1028.33
    • 4.4.0-1029.34
    • 4.4.0-1031.36
    • 4.4.0-1032.37
    • 4.4.0-1033.38
    • 4.4.0-1034.39
    • 4.4.0-1041.46
    • 4.4.0-1042.47
    • 4.4.0-1043.48
    • 4.4.0-1044.49
    • 4.4.0-1045.50
    • 4.4.0-1046.51
    • 4.4.0-1048.53
    • 4.4.0-1049.55
    • 4.4.0-1051.57
    • 4.4.0-1052.58
    • 4.4.0-1054.60
    • 4.4.0-1055.61
    • 4.4.0-1056.62
    • 4.4.0-1057.63
    • 4.4.0-1058.64
    • 4.4.0-1060.66
    • 4.4.0-1061.67
    • 4.4.0-1062.68
    • 4.4.0-1063.69
    • 4.4.0-1064.70
    • 4.4.0-1065.71
    • 4.4.0-1066.72
    • 4.4.0-1067.73
    • 4.4.0-1068.74
    • 4.4.0-1069.75
    • 4.4.0-1071.77
    • 4.4.0-1072.78
    • 4.4.0-1073.79
    • 4.4.0-1074.80
    • 4.4.0-1077.84
    • 4.4.0-1079.86
    • 4.4.0-1080.87
    • 4.4.0-1081.88
    • 4.4.0-1082.89
    • 4.4.0-1083.90
    • 4.4.0-1084.91
    • 4.4.0-1085.92
    • 4.4.0-1086.93
    • 4.4.0-1088.95
    • 4.4.0-1089.96
    • 4.4.0-1090.97
    • 4.4.0-1091.98
    • 4.4.0-1092.99
    • 4.4.0-1093.100
    • 4.4.0-1094.101
    • 4.4.0-1095.102
    • 4.4.0-1097.104
    • 4.4.0-1099.106
    • 4.4.0-1100.107
    • 4.4.0-1101.108
    • 4.4.0-1102.109
    • 4.4.0-1103.110
    • 4.4.0-1104.111
    • 4.4.0-1105.112
    • 4.4.0-1106.113
    • 4.4.0-1107.114
    • 4.4.0-1108.115
    • 4.4.0-1109.116
    • 4.4.0-1110.117
    • 4.4.0-1111.118
    • 4.4.0-1112.119
    • 4.4.0-1113.120
    • 4.4.0-1114.121
    • 4.4.0-1115.122
    • 4.4.0-1116.123
    • 4.4.0-1117.124
    • 4.4.0-1119.126
    • 4.4.0-1120.127
    • 4.4.0-1121.128
    • 4.4.0-1122.129
    • 4.4.0-1123.130
    • 4.4.0-1124.131
    • 4.4.0-1125.132
    • 4.4.0-1126.133
    • 4.4.0-1127.134
    • 4.4.0-1128.135
    • 4.4.0-1129.136
    • 4.4.0-1130.137
    • 4.4.0-1131.138
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

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

    Versions
    • 4.4.0-1001.1
    • 4.4.0-1002.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • linux Ubuntu:18.04:LTS

    Versions
    • 4.13.0-16.19
    • 4.13.0-17.20
    • 4.13.0-25.29
    • 4.13.0-32.35
    • 4.15.0-10.11
    • 4.15.0-12.13
    • 4.15.0-13.14
    • 4.15.0-15.16
    • 4.15.0-19.20
    • 4.15.0-20.21
    • 4.15.0-22.24
    • 4.15.0-23.25
    • 4.15.0-24.26
    • 4.15.0-29.31
    • 4.15.0-30.32
    • 4.15.0-32.35
    • 4.15.0-33.36
    • 4.15.0-34.37
    • 4.15.0-36.39
    • 4.15.0-38.41
    • 4.15.0-39.42
    • 4.15.0-42.45
    • 4.15.0-43.46
    • 4.15.0-44.47
    • 4.15.0-45.48
    • 4.15.0-46.49
    • 4.15.0-47.50
    • 4.15.0-48.51
    • 4.15.0-50.54
    • 4.15.0-51.55
    • 4.15.0-52.56
    • 4.15.0-54.58
    • 4.15.0-55.60
    • 4.15.0-58.64
    • 4.15.0-60.67
    • 4.15.0-62.69
    • 4.15.0-64.73
    • 4.15.0-65.74
    • 4.15.0-66.75
    • 4.15.0-69.78
    • 4.15.0-70.79
    • 4.15.0-72.81
    • 4.15.0-74.84
    • 4.15.0-76.86
    • 4.15.0-88.88
    • 4.15.0-91.92
    Affected ranges
    • ECOSYSTEM: < 4.15.0-96.97

    Update to 4.15.0-96.97

  • linux-aws-fips Ubuntu:Pro:FIPS-updates:18.04:LTS

    Versions
    • 4.15.0-2000.4
    Affected ranges
    • ECOSYSTEM: < 4.15.0-2018.18

    Update to 4.15.0-2018.18

  • linux-azure-fips Ubuntu:Pro:FIPS-updates:18.04:LTS

    Versions
    • 4.15.0-1002.2
    Affected ranges
    • ECOSYSTEM: < 4.15.0-2006.7

    Update to 4.15.0-2006.7

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

    Versions
    • 4.15.0-1027.32
    Affected ranges
    • ECOSYSTEM: < 4.15.0-1029.34

    Update to 4.15.0-1029.34

  • linux-aws-fips Ubuntu:Pro:FIPS:18.04:LTS

    Versions
    • 4.15.0-2000.4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • linux-azure-fips Ubuntu:Pro:FIPS:18.04:LTS

    Versions
    • 4.15.0-1002.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • linux-gcp-fips Ubuntu:Pro:FIPS:18.04:LTS

    Versions
    • 4.15.0-1001.1
    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-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

  • linux-realtime Ubuntu:22.04:LTS

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

    No fix published

  • linux-riscv Ubuntu:22.04:LTS

    Versions
    • 5.13.0-1004.4
    • 5.13.0-1006.6+22.04.1
    • 5.13.0-1007.7+22.04.1
    • 5.13.0-1010.11+22.04.1
    • 5.15.0-1004.4
    • 5.15.0-1005.5
    • 5.15.0-1006.6
    • 5.15.0-1007.7
    • 5.15.0-1008.8
    • 5.15.0-1011.12
    • 5.15.0-1012.13
    • 5.15.0-1014.16
    • 5.15.0-1015.17
    • 5.15.0-1016.18
    • 5.15.0-1017.19
    • 5.15.0-1018.21
    • 5.15.0-1019.22
    • 5.15.0-1020.23
    • 5.15.0-1022.26
    • 5.15.0-1023.27
    • 5.15.0-1026.30
    • 5.15.0-1027.31
    • 5.15.0-1028.32
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • linux-raspi-realtime Ubuntu:24.04:LTS

    Versions
    • 6.8.0-2019.20
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →