CVE-2018-18021
Reported by mitre · Published October 7, 2018
arch/arm64/kvm/guest.c in KVM in the Linux kernel before 4.18.12 on the arm64 platform mishandles the KVM_SET_ON_REG ioctl. This is exploitable by attackers who can create virtual machines. An attacker can arbitrarily redirect the hypervisor flow of control (with full register control). An attacker can also cause a denial of service (hypervisor panic) via an illegal exception return. This occurs because of insufficient restrictions on userspace access to the core register file, and because PSTATE.M validation does not prevent unintended execution modes.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux-snapdragon | Ubuntu:16.04:LTS | 4.4.0-1104.109 |
| linux-raspi2 | Ubuntu:18.04:LTS | 4.15.0-1033.35 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | kernel-devel | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2 | perf | 0 |
| amazon:2 | kernel | 0 |
| amazon:2 | python-perf | 0 |
| amazon:2 | kernel-headers | 0 |
| n/a | n/a | * |
| amazon:2 | kernel-tools-devel | 0 |
Timeline
- Oct 7, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Feb 23, 2026 CVE Updated
- Mar 6, 2026 Distribution Patch (6 in total, the first dated here)
- Mar 6, 2026 Security Advisory (7 in total, the first dated here)
- Sep 22, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-18021
vulnetix vdb fixes CVE-2018-18021
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-18021/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- USN-3821-1 vendor-advisoryx_refsource_UBUNTU
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- RHSA-2018:3656 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- 105550 vdb-entryx_refsource_BID
- USN-3821-2 vendor-advisoryx_refsource_UBUNTU
- x_refsource_MISC
- x_refsource_MISC
- DSA-4313 vendor-advisoryx_refsource_DEBIAN
- USN-3931-1 vendor-advisoryx_refsource_UBUNTU
- USN-3931-2 vendor-advisoryx_refsource_UBUNTU