CVE-2016-0040 — Microsoft Windows Kernel Privilege Escalation Vulnerability

CVE-2016-0040

Microsoft Windows Kernel — Local Privilege Escalation to SYSTEM via Crafted Application; Patched MS16-014 (February 2016)

What Is the Windows Kernel?

The Windows kernel (ntoskrnl.exe) is the core of the operating system, running in privileged ring 0 (kernel mode) with unrestricted access to hardware and system resources. Vulnerabilities in kernel components that can be triggered by user-space code represent the most severe class of local privilege escalation — a successful kernel LPE enables an attacker to elevate to SYSTEM, the highest privilege level on Windows, bypassing all user-space security controls, endpoint protection, and access restrictions.

Overview

Actively Exploited. This vulnerability has been added to CISA's Known Exploited Vulnerabilities (KEV) Catalog on March 28, 2022. Federal agencies are required to apply mitigations per BOD 22-01.

CVE-2016-0040 is a local privilege escalation vulnerability in the Windows kernel that allows local users to gain SYSTEM-level privileges via a specially crafted application. The vulnerability resides in Windows kernel components and was patched in MS16-014 (February 9, 2016). Like other Windows kernel LPEs, CVE-2016-0040 is used as the second stage in multi-step exploit chains — providing SYSTEM access after an initial foothold is established via browser, document, or network exploitation.

Affected Versions

Windows Status
Windows Vista SP2 Vulnerable
Windows Server 2008 SP2 / R2 SP1 Vulnerable
Windows 7 SP1 Vulnerable
Windows 8.1 Vulnerable
Windows Server 2012 / 2012 R2 Vulnerable
Windows RT 8.1 Vulnerable
Windows 10 Vulnerable (pre-patch)

Fixed in MS16-014 (February 2016). Any Windows system current with Windows Update since February 2016 is protected.

Technical Details

Root Cause: Kernel Privilege Escalation via Crafted Application

CVE-2016-0040 involves a flaw in Windows kernel components where processing a specially crafted application or sequence of system calls triggers a privilege escalation condition. The CVSS PR:N (no privileges required) combined with UI:R (user interaction required) suggests the vulnerability may be triggered when a user opens a crafted file or runs an application that makes specific kernel API calls in an unexpected sequence.

The kernel LPE exploitation pattern:

  1. Trigger the kernel vulnerability — the crafted application calls kernel APIs in a sequence that triggers the flaw
  2. Kernel pool manipulation — the flaw allows writing to a controlled kernel address
  3. Token overwrite — the EPROCESS security token for the attacking process is overwritten with the SYSTEM token
  4. SYSTEM privileges achieved — the process now runs with full SYSTEM access

Role in Attack Chains

CVE-2016-0040 serves as the privilege escalation component in multi-stage attack chains:

  • Stage 1 — initial code execution at user privilege via browser exploit, email attachment, or exploit kit
  • Stage 2 — CVE-2016-0040 escalates from standard user to SYSTEM
  • Post-exploitation — with SYSTEM: disable antivirus, install persistence mechanisms, access all files, move laterally

Attack Characteristics

Attribute Detail
Attack Vector Local — crafted application or API call sequence
Privileges Required None (standard user context)
User Interaction Required (run crafted application)
Impact SYSTEM-level privilege escalation
Use Second stage after initial code execution

Discovery

Reported to Microsoft and patched in MS16-014 (February 2016 Patch Tuesday).

Exploitation Context

  • Post-exploitation escalation: CVE-2016-0040 was used by threat actors requiring SYSTEM privileges following initial access; from SYSTEM, attackers can disable endpoint detection, modify protected system files, create privileged persistence, and access all user data on the compromised system
  • Long exploitation tail: CISA's March 2022 KEV addition — six years after the patch — confirms continued exploitation against unpatched Windows systems; Windows 7 and Server 2008 systems that remained in production after EOL (January 2020) were common targets
  • CISA KEV (2022): Added March 2022

Remediation

CISA BOD 22-01 Deadline: April 18, 2022. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
  1. Apply MS16-014 (February 2016). Any Windows system current with Windows Update after February 2016 includes this fix.

  2. Upgrade end-of-life Windows — Windows 7 and Server 2008 are end-of-life and cannot receive further security updates. Upgrade to Windows 10/11 or Server 2019/2022.

  3. Enable Virtualization Based Security (VBS) / HVCI — Hypervisor-Protected Code Integrity significantly raises the bar for kernel exploitation on Windows 10 and later.

  4. Principle of least privilege — run user accounts with standard (non-admin) privileges; limit the post-LPE value by ensuring standard users have access only to what they need.

Key Details

PropertyValue
CVE ID CVE-2016-0040
Vendor / Product Microsoft — Windows
NVD Published2016-02-10
NVD Last Modified2025-10-22
CVSS 3.1 Score7.8
CVSS 3.1 VectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
SeverityHIGH
CWE CWE-264 — Permissions, Privileges, and Access Controls find similar ↗
CISA KEV Added2022-03-28
CISA KEV Deadline2022-04-18
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
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
2016-02-09Microsoft Security Bulletin MS16-014 released; CVE-2016-0040 patched (February 2016 Patch Tuesday)
2016-02-10CVE-2016-0040 published by NVD
2022-03-28Added to CISA Known Exploited Vulnerabilities catalog
2022-04-18CISA BOD 22-01 remediation deadline