CVE-2018-12904
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.
Severity
MEDIUM
CVSS v3
4.9
CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L · source nvd
Exploit chance (EPSS)
1.140%
chance of exploitation in the next 30 days
higher than 67.2% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 1
Timeline
- 2018-06-25First Exploit-DB entry (EDB-ID 44944)2 days before publication
- 2018-06-27Published by the CNA11:00 UTC
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 44944 | dos | linux | 2018-06-25 | yes |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| linux linux_kernel | before 4.17.2fixed in 4.17.2 | 4.17.2 |
| canonical ubuntu_linux | 16.04no fix listed18.04no fix listed | not listednot listed |
References
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=727ba748e110b4de50d142edca9d6a9b7e6111d8
- https://github.com/torvalds/linux/commit/727ba748e110b4de50d142edca9d6a9b7e6111d8
- https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.17.2
- https://usn.ubuntu.com/3752-1/
- https://usn.ubuntu.com/3752-2/
- https://usn.ubuntu.com/3752-3/
- https://bugs.chromium.org/p/project-zero/issues/detail?id=1589
- https://www.exploit-db.com/exploits/44944/
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2018-12904'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2018-12904'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2018-12904'curl 'https://api.contrastcyber.com/cve_products/CVE-2018-12904'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).