CVE-2018-1087
kernel KVM before versions kernel 4.16, kernel 4.16-rc7, kernel 4.17-rc1, kernel 4.17-rc2 and kernel 4.17-rc3 is vulnerable to a flaw in the way the Linux kernel's KVM hypervisor handled exceptions delivered after a stack switch operation via Mov SS or Pop SS instructions. During the stack switch operation, the processor did not deliver interrupts and exceptions, rather they are delivered once the first instruction after the stack switch is executed. An unprivileged KVM guest user could use this flaw to crash the guest or, potentially, escalate their privileges in the guest.
What to do
Fixed builds are available from Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | linux | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-aws | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-azure | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-azure-fde | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-gcp | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-gke | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-gkeop | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-ibm | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-intel | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-lowlatency | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-nvidia | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-nvidia-lowlatency | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-oem-6.11 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-oem-6.8 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-oracle | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-raspi | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-raspi-realtime | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | UBUNTU-CVE-2018-1087 | |
| Ubuntu 24.04 | linux-realtime | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-riscv | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-aws | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-aws-6.8 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-azure | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-azure-6.8 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-azure-fde | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-gcp | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-gcp-6.8 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-gke | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-gkeop | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-hwe-6.8 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-ibm | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-intel-iot-realtime | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | UBUNTU-CVE-2018-1087 | |
| Ubuntu 22.04 | linux-intel-iotg | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-kvm | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-lowlatency | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-lowlatency-hwe-6.8 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-nvidia | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-nvidia-6.5 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-nvidia-6.8 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-oracle | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-oracle-6.8 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-raspi | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-realtime | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | UBUNTU-CVE-2018-1087 | |
| Ubuntu 22.04 | linux-riscv | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | UBUNTU-CVE-2018-1087 | |
| Ubuntu 22.04 | linux-riscv-6.8 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-xilinx-zynqmp | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | linux-azure-fde | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | UBUNTU-CVE-2018-1087 | |
| Ubuntu 20.04 | linux-gke | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | UBUNTU-CVE-2018-1087 | |
| Ubuntu 20.04 | linux-gkeop | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | linux-gkeop-5.15 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | linux-raspi2 | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | UBUNTU-CVE-2018-1087 | |
| Ubuntu 20.04 | linux-riscv | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | UBUNTU-CVE-2018-1087 | |
| Ubuntu 18.04 | linux-azure | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-gcp | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-hwe | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-hwe-edge | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-oem | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | linux-raspi2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux | Fixed | 4.4.0-124.148 | UBUNTU-CVE-2018-1087 |
| Ubuntu 16.04 | linux-aws | Fixed | 4.4.0-1057.66 | UBUNTU-CVE-2018-1087 |
| Ubuntu 16.04 | linux-aws-hwe | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-azure | Fixed | 4.13.0-1016.19 | UBUNTU-CVE-2018-1087 |
| Ubuntu 16.04 | linux-euclid | Fixed | 4.4.0-9027.29 | UBUNTU-CVE-2018-1087 |
| Ubuntu 16.04 | linux-flo | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | ||
| Ubuntu 16.04 | linux-gcp | Fixed | 4.13.0-1015.19 | UBUNTU-CVE-2018-1087 |
| Ubuntu 16.04 | linux-gke | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | ||
| Ubuntu 16.04 | linux-goldfish | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | ||
| Ubuntu 16.04 | linux-hwe | Fixed | 4.13.0-41.46~16.04.1 | UBUNTU-CVE-2018-1087 |
| Ubuntu 16.04 | linux-kvm | Fixed | 4.4.0-1023.28 | UBUNTU-CVE-2018-1087 |
| Ubuntu 16.04 | linux-mako | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | ||
| Ubuntu 16.04 | linux-oem | Fixed | 4.13.0-1026.29 | UBUNTU-CVE-2018-1087 |
| Ubuntu 16.04 | linux-oracle | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-raspi2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | linux-snapdragon | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | linux | Fixed | 3.13.0-147.196 | UBUNTU-CVE-2018-1087 |
| Ubuntu 14.04 | linux-aws | Fixed | 4.4.0-1019.19 | UBUNTU-CVE-2018-1087 |
| Ubuntu 14.04 | linux-flo | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | ||
| Ubuntu 14.04 | linux-goldfish | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | ||
| Ubuntu 14.04 | linux-grouper | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | ||
| Ubuntu 14.04 | linux-lts-utopic | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | ||
| Ubuntu 14.04 | linux-lts-vivid | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | ||
| Ubuntu 14.04 | linux-lts-wily | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | ||
| Ubuntu 14.04 | linux-lts-xenial | Fixed | 4.4.0-124.148~14.04.1 | UBUNTU-CVE-2018-1087 |
| Ubuntu 14.04 | linux-maguro | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | ||
| Ubuntu 14.04 | linux-mako | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | ||
| Ubuntu 14.04 | linux-manta | Will not fix Thanks to Andy Lutomirski for help in Linux kernel research and test case | ||
| Debian 14 | linux | Fixed | 4.15.17-1 | DEBIAN-CVE-2018-1087 |
| Debian 13 | linux | Fixed | 4.15.17-1 | DEBIAN-CVE-2018-1087 |
| Debian 12 | linux | Fixed | 4.15.17-1 | DEBIAN-CVE-2018-1087 |
| Red Hat Enterprise Linux 8 | bpftool | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-abi-stablelists | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-abi-whitelists | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-core | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-cross-headers | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-debug | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-debug-core | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-debug-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-debug-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-debug-modules-extra | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-debug-modules-internal | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-headers | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-ipaclones-internal | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-modules-extra | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-modules-internal | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-selftests-internal | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-tools-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-tools-libs-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-zfcpdump | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-zfcpdump-core | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-zfcpdump-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-zfcpdump-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-zfcpdump-modules-extra | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel-zfcpdump-modules-internal | Not affected | ||
| Red Hat Enterprise Linux 8 | perf | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-perf | Not affected | ||
| Red Hat Enterprise Linux 7 | imgbased | Fixed | 0:1.0.16-0.1.el7ev | RHSA-2018:1524 |
| Red Hat Enterprise Linux 7 | kernel | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-abi-whitelists | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-bootwrapper | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-debug | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-debug-devel | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-debuginfo-common-ppc64 | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-debuginfo-common-ppc64le | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-debuginfo-common-s390x | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-debuginfo-common-x86_64 | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-devel | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-doc | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-headers | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-kdump | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-kdump-devel | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-tools | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-tools-libs | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-tools-libs-devel | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | ovirt-node-ng | Fixed | 0:4.2.0-0.20170814.0.el7 | RHSA-2018:1524 |
| Red Hat Enterprise Linux 7 | ovirt-node-ng-nodectl | Fixed | 0:4.2.0-0.20170814.0.el7 | RHSA-2018:1524 |
| Red Hat Enterprise Linux 7 | perf | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | python-imgbased | Fixed | 0:1.0.16-0.1.el7ev | RHSA-2018:1524 |
| Red Hat Enterprise Linux 7 | python-perf | Fixed | 0:3.10.0-862.2.3.el7 | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | redhat-release-virtualization-host | Fixed | 0:4.2-3.0.el7 | RHSA-2018:1524 |
| Red Hat Enterprise Linux 7 | redhat-virtualization-host | Fixed | 0:4.2-20180508.0.el7_5 | RHSA-2018:1710 |
| Red Hat Enterprise Linux 7 | redhat-virtualization-host-image-update | Fixed | 0:4.2-20180508.0.el7_5 | RHSA-2018:1710 |
| Red Hat Enterprise Linux 7 | redhat-virtualization-host-image-update-placeholder | Fixed | 0:4.2-3.0.el7 | RHSA-2018:1524 |
| Red Hat Enterprise Linux 7 | rhev-hypervisor7 | Fixed | 0:7.3-20180521.1.el7ev | RHSA-2018:1711 |
| Red Hat Enterprise Linux 6 | kernel | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-abi-whitelists | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-bootwrapper | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-debug | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-debug-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-doc | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-firmware | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-headers | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-kdump | Not affected | ||
| Red Hat Enterprise Linux 6 | kernel-kdump-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | perf | Not affected | ||
| Red Hat Enterprise Linux 6 | python-perf | Not affected | ||
| Red Hat Enterprise Linux 6 | rhev-hypervisor7 | Fixed | 0:7.3-20180521.1.el6ev | RHSA-2018:1711 |
| Red Hat Enterprise Linux 5 | kernel | Not affected |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- kernel KVM: affected: kernel 4.16, kernel 4.16-rc7, kernel 4.17-rc1, kernel 4.17-rc2, kernel 4.17-rc3
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2018:1347 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:1348 (vendor-advisory)
- https://www.debian.org/security/2018/dsa-4196 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:1355 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:1345 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:1318 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2018:1347
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-1087
- http://www.securitytracker.com/id/1040862
- https://access.redhat.com/errata/RHSA-2018:1348
- https://www.debian.org/security/2018/dsa-4196
- https://access.redhat.com/errata/RHSA-2018:1355
- https://access.redhat.com/errata/RHSA-2018:1345
- https://access.redhat.com/security/vulnerabilities/pop_ss
- https://access.redhat.com/errata/RHSA-2018:1318
- https://access.redhat.com/errata/RHSA-2018:1524
- http://www.openwall.com/lists/oss-security/2018/05/08/5
- http://www.securityfocus.com/bid/104127
- https://usn.ubuntu.com/3641-2/
- https://usn.ubuntu.com/3641-1/
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.