CVE-2018-12904

MEDIUM

Linux Kernel < 4.17.2 - Denial of Service via Nested Virtualization VMEXIT

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2018-12904. PoCs published by Google Security Research.

AI-analyzed exploit summary This exploit leverages a flaw in KVM on Intel systems where VMX instructions from a L1 VM are not properly validated for ring 0 execution, allowing user-space programs in L1 to trigger VM exits and potentially escalate privileges. The PoC demonstrates this by executing a VMX instruction from user space, causing a kernel crash.

Description

In arch/x86/kvm/vmx.c in the Linux kernel before 4.17.2, when nested virtualization is used, local attackers could cause L1 KVM guests to VMEXIT, potentially allowing privilege escalations and denial of service attacks due to lack of checking of CPL.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Google Security Research · textdoslinux
https://www.exploit-db.com/exploits/44944

This exploit leverages a flaw in KVM on Intel systems where VMX instructions from a L1 VM are not properly validated for ring 0 execution, allowing user-space programs in L1 to trigger VM exits and potentially escalate privileges. The PoC demonstrates this by executing a VMX instruction from user space, causing a kernel crash.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: KVM (Kernel-based Virtual Machine) on Intel systems running Linux kernel 4.15.0-22-generic
No auth needed
Prerequisites: L1 VM with a running L2 guest · CR4.VMXE enabled in the L1 guest
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (8)

Core 8
Core References
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3752-2/
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3752-3/
Release Notes, Vendor Advisory x_refsource_misc
https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.17.2
Exploit, Third Party Advisory x_refsource_misc
https://bugs.chromium.org/p/project-zero/issues/detail?id=1589
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3752-1/
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/44944/

Scores

CVSS v3 4.9
EPSS 0.0118
EPSS Percentile 63.7%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

Details

Status published
Products (3)
canonical/ubuntu_linux 16.04
canonical/ubuntu_linux 18.04
linux/linux_kernel < 4.17.2
Published Jun 27, 2018
Tracked Since Feb 18, 2026