cve.bz

CVE-2018-18021 Improper Input Validation

7.1 highEPSS 0.6%Fix available

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

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

Severity

CVSS 3.0

7.1 high
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
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-18021 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-18021?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-18021?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-18021 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_kernelbefore 4.18.12
debian:debian_linux9.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8linux-4.94.9.144-3.1~deb8u1DLA-1715-1
Debian9linux4.9.110-3+deb9u6DSA-4313-1
Debian12, 13, 14linux4.18.10-2DEBIAN-CVE-2018-18021
Ubuntu14.04:LTSlinux-aws4.4.0-1034.37USN-3821-2
Ubuntu14.04:LTSlinux-azure4.15.0-1041.45~14.04.1USN-3931-2
Ubuntu14.04:LTSlinux-lts-xenial4.4.0-139.165~14.04.1UBUNTU-CVE-2018-18021 USN-3821-2
Ubuntu16.04:LTSlinux4.4.0-139.165UBUNTU-CVE-2018-18021 USN-3821-1
Ubuntu16.04:LTSlinux-aws4.4.0-1072.82USN-3821-1
Ubuntu16.04:LTSlinux-aws-hwe4.15.0-1035.37~16.04.1UBUNTU-CVE-2018-18021 USN-3931-2
Ubuntu16.04:LTSlinux-azure4.15.0-1041.45USN-3931-2
Ubuntu16.04:LTSlinux-gcp4.15.0-1029.31~16.04.1USN-3931-2
Ubuntu16.04:LTSlinux-hwe4.15.0-47.50~16.04.1UBUNTU-CVE-2018-18021 USN-3931-2
Ubuntu16.04:LTSlinux-kvm4.4.0-1037.43USN-3821-1
Ubuntu16.04:LTSlinux-oracle4.15.0-1010.12~16.04.1UBUNTU-CVE-2018-18021 USN-3931-2
Ubuntu16.04:LTSlinux-raspi24.4.0-1100.108UBUNTU-CVE-2018-18021 USN-3821-1
13 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::serverperf, kernel, kernel-alt and 17 more0:4.14.0-115.2.2.el7aRHSA-2018:3656

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7kernel-alt-0:4.14.0-115.2.2.el7aFixed 2018-11-26RHSA-2018:3656
Red Hat Enterprise Linux 5kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise MRG 2kernel-rtNot affected

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-18021.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON