CVE-2018-8405 — Microsoft DirectX Graphics Kernel Privilege Escalation Vulnerability

CVE-2018-8405

Windows DirectX Graphics Kernel (DXGKRNL) — Local Privilege Escalation via Kernel Memory Handling

What is the DirectX Graphics Kernel?

The DirectX Graphics Kernel driver (dxgkrnl.sys) is the kernel-mode component underpinning Windows' graphics stack, mediating access between user-mode graphics applications/drivers and the GPU. Because it runs in the kernel and processes requests originating from user-mode code — including from low-privileged, sandboxed, or even guest-session processes — bugs here are a recurring source of Windows local privilege escalation vulnerabilities.

Overview

CVE-2018-8405 is an elevation of privilege vulnerability caused by DXGKRNL's improper handling of objects in memory. A locally authenticated attacker who runs a specially crafted application can trigger the flaw to execute code in kernel mode, escalating from a low-privileged account to full SYSTEM control.

Technical Details

The vulnerability is classified under CWE-404 (Improper Resource Shutdown or Release), consistent with a use-after-free-style condition: DXGKRNL fails to properly manage the lifecycle of a kernel object, and a stale reference can later be manipulated by a user-mode caller to corrupt kernel memory. Because the attack vector is local with low attack complexity and only low privileges required, this bug type is typically used as a second-stage escalation primitive following an initial code-execution foothold from a browser, document, or other application-layer exploit.

Discovery

The issue was addressed through Microsoft's regular security update process as part of the August 2018 Patch Tuesday release.

Exploitation Context

CISA added CVE-2018-8405 to the KEV catalog in March 2022, and the entry notes confirmed use in ransomware operations — kernel privilege-escalation bugs like this one are commonly chained by ransomware affiliates and other intruders to move from an initial low-privileged foothold to full administrative control needed for mass encryption or credential harvesting.

Remediation

  1. Apply the August 2018 Windows security update (or later cumulative update) addressing CVE-2018-8405.
  2. Prioritize patching on endpoints where users regularly run untrusted or third-party code, given the local-only attack vector.
  3. Apply least-privilege principles so that a compromised low-privileged account has fewer opportunities to reach vulnerable kernel-mode drivers.
  4. Maintain EDR coverage tuned to detect anomalous privilege escalation attempts and unexpected SYSTEM-level process activity.
  5. Ensure GPU/graphics drivers and the underlying OS are kept on a current, fully patched build as part of routine endpoint hardening.

Key Details

PropertyValue
CVE ID CVE-2018-8405
Vendor / Product Microsoft — DirectX Graphics Kernel (DXGKRNL)
NVD Published2018-08-15
NVD Last Modified2025-10-28
CVSS 3.1 Score7.8
CVSS 3.1 VectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SeverityHIGH
CWE CWE-404 find similar ↗
CISA KEV Added2022-03-28
CISA KEV Deadline2022-04-18
Known Ransomware Use ⚠️ Yes

CVSS 3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2022-04-18. Apply updates per vendor instructions.

Timeline

DateEvent
2018-08-14Patched by Microsoft (August 2018 Patch Tuesday)
2022-03-28Added to CISA Known Exploited Vulnerabilities catalog
2022-04-18CISA BOD 22-01 remediation deadline

References

ResourceType
NVD — CVE-2018-8405 Vulnerability Database
CISA KEV Catalog Entry US Government
Microsoft Security Response Center — CVE-2018-8405 Vendor Advisory