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
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:
- Trigger the kernel vulnerability — the crafted application calls kernel APIs in a sequence that triggers the flaw
- Kernel pool manipulation — the flaw allows writing to a controlled kernel address
- Token overwrite — the EPROCESS security token for the attacking process is overwritten with the SYSTEM token
- 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
-
Apply MS16-014 (February 2016). Any Windows system current with Windows Update after February 2016 includes this fix.
-
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.
-
Enable Virtualization Based Security (VBS) / HVCI — Hypervisor-Protected Code Integrity significantly raises the bar for kernel exploitation on Windows 10 and later.
-
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
| Property | Value |
|---|---|
| CVE ID | CVE-2016-0040 |
| Vendor / Product | Microsoft — Windows |
| NVD Published | 2016-02-10 |
| NVD Last Modified | 2025-10-22 |
| CVSS 3.1 Score | 7.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Severity | HIGH |
| CWE | CWE-264 — Permissions, Privileges, and Access Controls find similar ↗ |
| CISA KEV Added | 2022-03-28 |
| CISA KEV Deadline | 2022-04-18 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2016-02-09 | Microsoft Security Bulletin MS16-014 released; CVE-2016-0040 patched (February 2016 Patch Tuesday) |
| 2016-02-10 | CVE-2016-0040 published by NVD |
| 2022-03-28 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2022-04-18 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| NVD — CVE-2016-0040 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |
| Microsoft Security Bulletin MS16-014 — Security Update for Microsoft Windows to Address Remote Code Execution | Vendor Advisory |