CVE-2018-1087
kernel KVM: Execution with Unnecessary Privileges
Check your servers for CVE-2018-1087
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2018-1087 affects kvm, with the command that installs the fix. The free plan covers one server and does not need a credit card.
Description
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)
CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.74%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 50.8% of all scored CVEs. Scores of 26 Nov 2026.
Weakness
- CWE-250 Execution with Unnecessary Privileges
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| KVM |
affected kernel 4.16 affected kernel 4.16-rc7 affected kernel 4.17-rc1 affected kernel 4.17-rc2 affected kernel 4.17-rc3
|
Is my server affected?
Find the installed version of kvm and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i kvm
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2018-1087 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2018-1087RHEL, Rocky, Alma, Fedora
rpm -q kvm
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2018-1087Alpine
apk list --installed | grep -i kvmWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2018-1087
trivy image --scanners vuln IMAGE | grep CVE-2018-1087
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server or read how to install the agent.
References
Advisories
- RHSA-2018:1347 access.redhat.com · vendor advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-1087 bugzilla.redhat.com
- RHSA-2018:1348 access.redhat.com · vendor advisory
- DSA-4196 debian.org · vendor advisory
- RHSA-2018:1355 access.redhat.com · vendor advisory
- RHSA-2018:1345 access.redhat.com · vendor advisory
- RHSA-2018:1318 access.redhat.com · vendor advisory
- RHSA-2018:1524 access.redhat.com · vendor advisory
- USN-3641-2 usn.ubuntu.com · vendor advisory
- USN-3641-1 usn.ubuntu.com · vendor advisory
Other references
- 1040862 securitytracker.com · vdb entry
- https://access.redhat.com/security/vulnerabilities/pop_ss access.redhat.com
- http://www.openwall.com/lists/oss-security/2018/05/08/5 openwall.com
- 104127 securityfocus.com · vdb entry
Source: the record CVE-2018-1087 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.