Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privileged local access
-
DeliveryCraft malicious CLFS base log file
-
ExploitInvoke CLFS API to parse it
-
ExecutionTrigger integer underflow in clfs.sys kernel memory
-
PersistExecute code as SYSTEM
-
ImpactSteal credentials and move laterally
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer underflow checks
|
| Exploitation Conditions | Exploitation requires the attacker to already have a valid local, low-privileged account and the ability to execute code on the target host (CVSS PR:L, AV:L) - this is a local privilege-escalation bug, not remotely reachable. The concrete trigger is getting the kernel-mode CLFS driver (clfs.sys) to parse an attacker-crafted Base Log File so the integer underflow in a size/length computation is hit; this is reachable through standard, always-available CLFS logging APIs, so no non-default feature toggle is needed. No user interaction is required (UI:N) and complexity is low (AC:L). Limiting factors: the attacker must first obtain code execution as an authenticated user on the machine, and the affected build must be pre-patch; there is no network-facing exposure, which is why SSVC marks it Automatable=no. |
| Impact | The signals are internally consistent and point to a genuine but not emergency-level priority. The CVSS 3.1 vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (base 7.8, HIGH) describes a local, low-complexity attack requiring only low existing privileges and no user interaction, with total impact - the classic profile of a post-compromise SYSTEM escalation, not an initial-access vector. Supporting signals reinforce this: SSVC lists Exploitation=none, Automatable=no (local-only, cannot be mass-worm-driven), and Technical Impact=total, while EPSS is very low at 0.06% (19th percentile) and the CVE is not in CISA KEV. No signals conflict. One note of caution: the supplied Tags include 'Information Disclosure' and the intel labels this 'Integer Overflow,' whereas the authoritative description and CWE-191 specify integer underflow enabling privilege elevation - the CVSS C:H/I:H/A:H supports EoP over pure info-disclosure, so treat the tag as loose metadata. Bottom line: not actively exploited and low probability today, but CLFS underflow/overflow bugs have a strong track record of being weaponized for EoP in ransomware intrusions, so this belongs in the normal Patch Tuesday remediation cycle rather than being deprioritized purely on its EPSS score. |
| Exploit ScenarioDerived | An attacker who has already gained a low-privileged foothold on a Windows host - for instance via phishing, a compromised service account, or a standard user login on a shared terminal server - crafts a malicious CLFS base log file and invokes the logging APIs to have clfs.sys parse it. The integer underflow corrupts kernel memory and elevates the attacker to SYSTEM, enabling credential theft, defense evasion, and lateral movement. No public exploit is identified at time of analysis and no user interaction is required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 23, 2026
Local privilege escalation in the Windows Common Log File System (CLFS) driver lets an already-authenticated low-privileged user gain SYSTEM-level rights on affected Windows client and server builds by triggering an integer underflow (CWE-191) in the driver's log-file parsing. The flaw yields total confidentiality, integrity, and availability impact on the local machine. There is no public exploit identified at time of analysis, EPSS risk is low (0.06%, 19th percentile), and CISA SSVC records exploitation status as none - but CLFS is a historically heavily-targeted attack surface, so patching is warranted.
RemediationAI
Apply Microsoft's security update for CVE-2026-40397 - the fix is delivered through the standard cumulative/monthly rollup, so install the update that raises the OS to or above the fixed build for your version (for example 10.0.19045.7291 for Windows 10 22H2, 10.0.26100.8457 for Windows 11 24H2, 10.0.20348.5139 for Windows Server 2022, 10.0.26100.32860 for Windows Server 2025), per the MSRC advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40397. Vendor-released patch: apply the cumulative update matching your build. Because CLFS is deeply embedded and disabling clfs.sys is not a supported option, there is no clean feature-level workaround; where immediate patching is impossible, reduce exposure by enforcing least privilege so untrusted or low-trust local accounts cannot run code on the host (this bug requires an existing local foothold), deploy EDR/attack-surface-reduction rules that flag anomalous kernel-driver exploitation, and prioritize multi-user, RDP, and terminal-server systems where low-privileged interactive logons are common. The trade-off of the least-privilege approach is operational friction for shared hosts but no functional loss to CLFS-dependent services.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 21 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The Common Log File System (CLFS) is a general-purpose transactional logging subsystem implemented in the kernel-mode driver clfs.sys, used by Windows components (TxF/TxR, Kernel Transaction Manager, ETW, and various services) to persist structured log records in Base Log Files (BLFs). The vulnerability is classified as CWE-191 (Integer Underflow / wraparound): a subtraction or size computation over an attacker-influenced field in a crafted log file wraps below zero, producing an unexpectedly large or incorrect length that drives an out-of-bounds memory operation within kernel context. Because clfs.sys runs in the kernel, corrupting its internal state translates directly into arbitrary code execution or memory manipulation at SYSTEM. The CPE set confirms the affected surface is the Microsoft Windows OS itself across Windows 10 (1607, 1809, 21H2, 22H2), Windows 11 (22H3, 23H2, 24H2, 25H2, 26H1), and Windows Server (2012 through 2025).
Know when Windows Server 2012 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Local vector and low existing privileges are required (AV:L/PR:L), no user interaction (UI:N), and a kernel-mode compromise yields full SYSTEM control giving total C/I/A impact.
Primary rating from NVD.
CVSS VectorNVD
DescriptionCVE.org
Integer underflow (wrap or wraparound) in Windows Common Log File System Driver allows an authorized attacker to elevate privileges locally.
Articles & Coverage 1
Executive ViewAI
CVE-2026-40397 is a privilege escalation flaw in Windows Common Log File System (CLFS) driver affecting client and server operating systems. An already-authenticated low-privileged user can exploit an integer underflow to gain unrestricted SYSTEM-level access, compromising confidentiality, integrity, and availability of affected machines. No public exploit identified at time of analysis, though the historical targeting of CLFS attack surface warrants immediate patching to contain lateral movement risk.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Windows Server 2012
View allWindows MSHTML component contains a remote code execution vulnerability that allows attackers to craft malicious ActiveX
<p>A remote code execution vulnerability exists when the Windows Print Spooler service improperly performs privileged fi
Remote code execution in Microsoft Office 2007-2016 and Windows Vista through 10 allows attackers to execute arbitrary c
Windows MSDT (Microsoft Support Diagnostic Tool) allows remote code execution when called via the ms-msdt URL protocol f
The SMBv1 server in Microsoft Windows Vista SP2; Windows Server 2008 SP2 and R2 SP1; Windows 7 SP1; Windows 8.1; Windows
The Windows VBScript engine contains a remote code execution vulnerability in object handling that allows full system co
Windows Print Spooler Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no auth
The Win32k kernel-mode driver in Windows Vista through Windows Server 2016 allows local privilege escalation, exploited
Windows Search Remote Code Execution Vulnerability. Rated high severity (CVSS 7.5), this vulnerability is remotely explo
An elevation of privilege vulnerability exists in Windows when the Win32k component fails to properly handle objects in
An elevation of privilege vulnerability exists in Windows when the Win32k component fails to properly handle objects in
Active Directory Domain Services Elevation of Privilege Vulnerability. Rated high severity (CVSS 7.5), this vulnerabilit
EUVD-2026-29659
GHSA-864v-w6fx-r2g4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB