cve.bz

CVE-2018-1087 Execution with Unnecessary Privileges

7.8 highEPSS 0.7%

High (7.8). EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.8 high
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-250 Execution with Unnecessary Privileges
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-1087 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-1087?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-1087?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-1087 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernel4.16
linux:linux_kernel4.16:rc7
linux:linux_kernel4.17:rc1
linux:linux_kernel4.17:rc2
linux:linux_kernel4.17:rc3
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
debian:debian_linux8.0
debian:debian_linux9.0
redhat:enterprise_linux7.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.2
redhat:enterprise_linux_server_aus7.3
redhat:enterprise_linux_server_aus7.4
redhat:enterprise_linux_server_eus7.3
redhat:enterprise_linux_server_eus7.4
redhat:enterprise_linux_server_eus7.5
redhat:enterprise_linux_server_tus7.2
redhat:enterprise_linux_server_tus7.3
redhat:enterprise_linux_server_tus7.4
redhat:enterprise_linux_virtualization4.0
redhat:enterprise_linux_workstation7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8linux3.16.56-1+deb8u1DSA-4196-1
Debian9linux4.9.88-1+deb9u1DSA-4196-1
Debian12, 13, 14linux4.15.17-1DEBIAN-CVE-2018-1087
Ubuntu14.04:LTSlinux3.13.0-147.196UBUNTU-CVE-2018-1087 USN-3641-1
Ubuntu14.04:LTSlinux-aws4.4.0-1019.19UBUNTU-CVE-2018-1087 USN-3641-1
Ubuntu14.04:LTSlinux-lts-xenial4.4.0-124.148~14.04.1UBUNTU-CVE-2018-1087 USN-3641-1
Ubuntu16.04:LTSlinux4.4.0-124.148UBUNTU-CVE-2018-1087 USN-3641-1
Ubuntu16.04:LTSlinux-aws4.4.0-1057.66UBUNTU-CVE-2018-1087 USN-3641-1
Ubuntu16.04:LTSlinux-azure4.13.0-1016.19UBUNTU-CVE-2018-1087 USN-3641-1
Ubuntu16.04:LTSlinux-euclid4.4.0-9027.29UBUNTU-CVE-2018-1087 USN-3641-1
Ubuntu16.04:LTSlinux-gcp4.13.0-1015.19UBUNTU-CVE-2018-1087 USN-3641-1
Ubuntu16.04:LTSlinux-hwe4.13.0-41.46~16.04.1UBUNTU-CVE-2018-1087 USN-3641-1
Ubuntu16.04:LTSlinux-kvm4.4.0-1023.28UBUNTU-CVE-2018-1087 USN-3641-1
Ubuntu16.04:LTSlinux-oem4.13.0-1026.29UBUNTU-CVE-2018-1087 USN-3641-1
Ubuntu16.04:LTSlinux-raspi24.4.0-1089.97USN-3641-1
5 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:6::hypervisorrhev-hypervisor70:7.3-20180521.1.el6evRHSA-2018:1711
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::workstationperf, kernel, kernel-doc and 15 more0:3.10.0-862.2.3.el7RHSA-2018:1318
Red Hatenterprise_linux:7::hypervisorimgbased, python-imgbased0:1.0.16-0.1.el7evRHSA-2018:1524
Red Hatenterprise_linux:7::hypervisorovirt-node-ng, ovirt-node-ng-nodectl0:4.2.0-0.20170814.0.el7RHSA-2018:1524
Red Hatenterprise_linux:7::hypervisorredhat-release-virtualization-host, redhat-virtualization-host-image-update-placeholder0:4.2-3.0.el7RHSA-2018:1524
Red Hatenterprise_linux:7::hypervisorredhat-virtualization-host, redhat-virtualization-host-image-update0:3.6-20180521.0.el7_3RHSA-2018:1710
Red Hatenterprise_linux:7::hypervisorredhat-virtualization-host, redhat-virtualization-host-image-update0:4.2-20180508.0.el7_5RHSA-2018:1524
Red Hatenterprise_linux:7::hypervisorrhev-hypervisor70:7.3-20180521.1.el7evRHSA-2018:1711
Red Hatenterprise_linux:7::serverperf, kernel, kernel-doc and 22 more0:3.10.0-862.2.3.el7RHSA-2018:1318
Red Hatrhel_aus:7.2::server, rhel_e4s:7.2::server, rhel_tus:7.2::serverperf, kernel, kernel-doc and 15 more0:3.10.0-327.66.3.el7RHSA-2018:1347
Red Hatrhel_eus:7.3::computenodeperf, kernel, kernel-doc and 15 more0:3.10.0-514.48.3.el7RHSA-2018:1348
Red Hatrhel_eus:7.3::serverperf, kernel, kernel-doc and 22 more0:3.10.0-514.48.3.el7RHSA-2018:1348
3 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 morekernel-syms, kernel-source, kernel-default4.4.121-92.73.1SUSE-SU-2018:1173-1
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 morekgraft-patch-SLE12-SP2_Update_211-3.3.1SUSE-SU-2018:1173-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_19-2.1SUSE-SU-2018:1643-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_103-2.1SUSE-SU-2018:1636-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_28-2.1SUSE-SU-2018:1642-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_38-2.1SUSE-SU-2018:1641-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_47-2.1SUSE-SU-2018:1648-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_56-2.1SUSE-SU-2018:1637-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_66-2.1SUSE-SU-2018:1645-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_76-2.1SUSE-SU-2018:1640-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_84-2.1SUSE-SU-2018:1644-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_94-2.1SUSE-SU-2018:1639-1
25 more for SUSE in the JSON and on SUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue does not affect the versions of Linux kernel as shipped with Red Hat Enterprise Linux 5, 6, and Red Hat Enterprise MRG 2.

This issue affects the version of the kernel package as shipped with Red Hat Enterprise Linux 7. Future kernel updates for Red Hat Enterprise Linux 7 may address this issue.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7kernel-rt-0:3.10.0-862.2.3.rt56.806.el7Fixed 2018-05-08RHSA-2018:1355
Red Hat Enterprise Linux 7kernel-0:3.10.0-862.2.3.el7Fixed 2018-05-08RHSA-2018:1318
Red Hat Enterprise Linux 7.2 Advanced Update Supportkernel-0:3.10.0-327.66.3.el7Fixed 2018-05-08RHSA-2018:1347
Red Hat Enterprise Linux 7.2 Telco Extended Update Supportkernel-0:3.10.0-327.66.3.el7Fixed 2018-05-08RHSA-2018:1347
Red Hat Enterprise Linux 7.2 Update Services for SAP Solutionskernel-0:3.10.0-327.66.3.el7Fixed 2018-05-08RHSA-2018:1347
Red Hat Enterprise Linux 7.3 Extended Update Supportkernel-0:3.10.0-514.48.3.el7Fixed 2018-05-08RHSA-2018:1348
Red Hat Enterprise Linux 7.4 Extended Update Supportkernel-0:3.10.0-693.25.4.el7Fixed 2018-05-08RHSA-2018:1345
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7imgbased-0:1.0.16-0.1.el7evFixed 2018-05-15RHSA-2018:1524
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7ovirt-node-ng-0:4.2.0-0.20170814.0.el7Fixed 2018-05-15RHSA-2018:1524
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7redhat-release-virtualization-host-0:4.2-3.0.el7Fixed 2018-05-15RHSA-2018:1524
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7redhat-virtualization-host-0:4.2-20180508.0Fixed 2018-05-15RHSA-2018:1524
RHEV 3.X Hypervisor and Agents for RHEL-6rhev-hypervisor7-0:7.3-20180521.1.el6evFixed 2018-05-23RHSA-2018:1711
RHEV 3.X Hypervisor and Agents for RHEL-7 ELSredhat-virtualization-host-0:3.6-20180521.0Fixed 2018-05-23RHSA-2018:1710
Red Hat Enterprise Linux 5kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernel-altNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise MRG 2kernel-rtNot affected
Red Hat Enterprise Virtualization 3rhev-hypervisor-ngAffected
Red Hat Virtualization 4rhev-hypervisor-ngAffected
1 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-1087.

Attack patterns (CAPEC)

  • CAPEC-69 Target Programs with Elevated Privileges Likelihood: High · Severity: Very High
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON