The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40397

CVE-2026-40397: Windows 10 1607 Privilege Escalation Flaw

CVE-2026-40397 is a privilege escalation vulnerability in Windows 10 1607 affecting the Common Log File System Driver. This integer underflow flaw lets authorized attackers gain elevated privileges locally.

Published: May 17, 2026

CVE-2026-40397 Overview

CVE-2026-40397 is an integer underflow vulnerability in the Windows Common Log File System (CLFS) Driver. The flaw allows an authorized local attacker to elevate privileges on affected Windows systems. Microsoft classifies the issue under [CWE-191: Integer Underflow (wrap or wraparound)]. Successful exploitation grants the attacker high impact on confidentiality, integrity, and availability of the target system.

The vulnerability affects a broad range of Windows client and server versions, from Windows 10 1607 through Windows 11 26h1, and Windows Server 2012 through Windows Server 2025. Microsoft published the advisory on May 12, 2026.

Critical Impact

A local, authenticated attacker can trigger an integer underflow in the CLFS kernel driver to escalate to SYSTEM privileges, gaining full control of the affected host.

Affected Products

  • Microsoft Windows 10 (1607, 1809, 21H2, 22H2) on x86, x64, and ARM64
  • Microsoft Windows 11 (23H2, 24H2, 25H2, 26H1) on x64 and ARM64
  • Microsoft Windows Server 2012, 2012 R2, 2016, 2019, 2022, 2022 23H2, and 2025

Discovery Timeline

  • 2026-05-12 - CVE-2026-40397 published to NVD
  • 2026-05-15 - Last updated in NVD database

Technical Details for CVE-2026-40397

Vulnerability Analysis

The vulnerability resides in the Common Log File System (CLFS) Driver (clfs.sys), a kernel-mode component that provides transactional logging services to Windows applications and the operating system itself. CLFS has been a recurring target for privilege escalation research due to the complexity of its log file parsing and management code.

An integer underflow occurs when an arithmetic operation produces a value below the minimum representable value for its data type, causing it to wrap to a large positive number. In the context of CLFS, this wraparound can corrupt size or offset calculations used during log file processing. The corrupted values are subsequently used to drive memory operations in kernel space.

Because the affected code runs in the kernel, successful exploitation yields code execution at the highest privilege level on the local machine. The vulnerability requires only low-privilege local access and no user interaction.

Root Cause

The root cause is improper validation of arithmetic operations on untrusted length or offset fields within CLFS log structures. When an attacker supplies crafted input that causes a subtraction to underflow, the resulting wrapped value bypasses subsequent bounds checks. This leads to out-of-bounds memory access in the kernel pool, which can be shaped into a write primitive for privilege escalation.

Attack Vector

Exploitation requires local access with valid user credentials. An attacker runs a crafted program that interacts with the CLFS driver through documented or undocumented IOCTLs and log file APIs. By submitting a malformed log file or specially constructed parameters, the attacker triggers the underflow path. No user interaction beyond running the attacker's binary is required. Refer to the Microsoft Security Update Guide for CVE-2026-40397 for vendor technical details.

// No verified public proof-of-concept code is available at the time of writing.
// The vulnerability is described in prose. See the Microsoft Security Update Guide
// for vendor-supplied technical details.

Detection Methods for CVE-2026-40397

Indicators of Compromise

  • Creation of unexpected .blf (Base Log File) or container log files in user-writable directories outside standard CLFS paths
  • Unsigned or low-reputation processes opening handles to \Device\CLFS or invoking CLFS APIs such as CreateLogFile shortly before a privilege change
  • Sudden token elevation of a non-administrative process to SYSTEM without a corresponding service or scheduled task launch
  • Unexpected kernel bug checks (KERNEL_MODE_HEAP_CORRUPTION, PAGE_FAULT_IN_NONPAGED_AREA) referencing clfs.sys in crash dumps

Detection Strategies

  • Monitor process creation events where a standard user process spawns child processes with SYSTEM integrity level
  • Inspect kernel crash dumps for stack frames originating in clfs.sys paired with arithmetic-related faults
  • Hunt for processes that write .blf files and immediately invoke high-privilege actions such as service installation or LSASS access

Monitoring Recommendations

  • Enable PowerShell and Sysmon logging with rules covering CLFS API usage and token manipulation events (Event IDs 1, 10, 11)
  • Forward kernel crash telemetry and Windows Defender ASR events to a central SIEM for correlation
  • Track installation status of the May 2026 Microsoft security updates across the fleet to identify unpatched hosts

How to Mitigate CVE-2026-40397

Immediate Actions Required

  • Apply the May 2026 Microsoft security updates referenced in the Microsoft Security Update Guide for CVE-2026-40397 to all affected Windows client and server systems
  • Prioritize patching multi-user systems, terminal servers, and developer workstations where local accounts are common
  • Audit local account privileges and remove unnecessary interactive logon rights from standard users
  • Restrict execution of unsigned binaries through Windows Defender Application Control or AppLocker policies

Patch Information

Microsoft has released security updates that address the integer underflow in the CLFS driver. The patches are available through Windows Update, Microsoft Update Catalog, and WSUS. Administrators should consult the Microsoft Security Update Guide for CVE-2026-40397 for the specific KB article corresponding to each supported Windows version.

Workarounds

  • No official vendor workaround replaces patching; apply the security update as soon as possible
  • Enforce least-privilege access to limit which users can execute arbitrary code on affected hosts
  • Use attack surface reduction (ASR) rules to block credential theft and process injection commonly chained with local privilege escalation
bash
# Verify the latest cumulative update is installed on a Windows host
# Replace KBNNNNNNN with the KB ID listed in the MSRC advisory for your build
Get-HotFix -Id KBNNNNNNN

# List installed updates and filter by install date
Get-CimInstance -ClassName Win32_QuickFixEngineering |
  Sort-Object -Property InstalledOn -Descending |
  Select-Object -First 10 HotFixID, Description, InstalledOn

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechWindows

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-191
  • Vendor Resources
  • Microsoft Security Update CVE-2026-40397
  • Related CVEs
  • CVE-2026-41088: Windows 10 21h2 Privilege Escalation Flaw

  • CVE-2026-41095: Windows Server 2012 Privilege Escalation

  • CVE-2026-40382: Windows 10 1607 Privilege Escalation Flaw

  • CVE-2026-40398: Windows 10 1607 Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English