CVE-2018-1087: High severity Linux Linux kernel vulnerability

Published Apr 13, 2018
·
Updated

A flaw was found 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, processor does not deliver interrupts and exceptions, 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 and/or potentially escalate their privileges in the guest.

Upstream patch: --------------- -> https://git.kernel.org/linus/32d43cd391bacb5f0814c2624399a5dad3501d09

Reference: ---------- -> http://www.openwall.com/lists/oss-security/2018/05/08/5

Other sources

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.

Launchpad

Affected Software

26 affected componentsFixes available
redhat/kernel<4.16
4.16
Linux Linux kernel=4.16
Linux Linux kernel=4.16-rc7
Linux Linux kernel=4.17-rc1
Linux Linux kernel=4.17-rc2
Linux Linux kernel=4.17-rc3
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10
Debian Debian Linux=8.0
Debian Debian Linux=9.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Aus=7.2
redhat Enterprise Linux Server Aus=7.3
redhat Enterprise Linux Server Aus=7.4
redhat Enterprise Linux Server Eus=7.3
redhat Enterprise Linux Server Eus=7.4
redhat Enterprise Linux Server Eus=7.5
redhat Enterprise Linux Server Tus=7.2
redhat Enterprise Linux Server Tus=7.3
redhat Enterprise Linux Server Tus=7.4
redhat Enterprise Linux Virtualization=4.0
redhat Enterprise Linux Workstation=7.0
debian/linux
5.10.223-15.10.257-16.1.170-36.1.174-16.12.86-16.12.94-17.0.13-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 4.16
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 4.17
  3. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.257-1Fixed in 6.1.170-3Fixed in 6.1.174-1Fixed in 6.12.86-1Fixed in 6.12.94-1Fixed in 7.0.13-1
  4. Upgrade

    Upgrade Linux kernel KVM to a version that resolves this vulnerability.

    Fixed in 4.16-rc7
  5. Upgrade

    Upgrade Linux kernel KVM to a version that resolves this vulnerability.

    Fixed in 4.17-rc1
  6. Upgrade

    Upgrade Linux kernel KVM to a version that resolves this vulnerability.

    Fixed in 4.17-rc2
  7. Upgrade

    Upgrade Linux kernel KVM to a version that resolves this vulnerability.

    Fixed in 4.17-rc3
  8. Upgrade

    Upgrade Linux kernel KVM to a version that resolves this vulnerability.

    Patch 32d43cd391bacb5f0814c2624399a5dad3501d09

Event History

May 15, 2018
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:29 PM
DescriptionSeverityWeaknessAffected Software
Jan 15, 2024
Data Sourced
via Launchpad·10:47 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·03:21 PM
RemedyDescriptionSeverityAffected Software
Jun 29, 2026
Data Sourced
via Debian·02:44 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-1087?

CVE-2018-1087 has a moderate severity rating as it can lead to information disclosure or potential denial of service.

2

How do I fix CVE-2018-1087?

To fix CVE-2018-1087, you need to update your Linux kernel to version 4.16 or later for affected distributions.

3

Which Linux distributions are affected by CVE-2018-1087?

CVE-2018-1087 affects various Linux distributions including Red Hat Enterprise Linux, Debian, and Ubuntu.

4

What versions of the Linux kernel are vulnerable to CVE-2018-1087?

The vulnerable versions include the Linux kernel prior to 4.16, as well as the 4.17-rc1 through 4.17-rc3 releases.

5

Is there a risk of exploitation for CVE-2018-1087?

Yes, there is a risk of exploitation for CVE-2018-1087, particularly in environments that utilize KVM hypervisors.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203