CVE-2026-40407
High · 7.8CVSS
7.8
EPSS
0.3%
Published
May 12, 2026
CISA due date
—
Cloudanix analysis
A logged-in attacker could use this Windows flaw to take full control of a computer, so affected systems should be updated.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Privilege Gain
- Component
- OS kernel
- Class
- Buffer Overflow
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
CVE-2026-40407 is a local privilege-escalation vulnerability caused by a heap-based buffer overflow in the Windows Common Log File System driver, clfs.sys. An attacker who already has the ability to run code as a low-privileged user can trigger malformed CLFS operations that corrupt kernel memory. Successful exploitation can allow arbitrary code execution in kernel context, commonly resulting in SYSTEM-level privileges and full compromise of the affected Windows host. The CVSS vector indicates local attack access, low attack complexity, required low privileges, no user interaction, unchanged scope, and high confidentiality, integrity, and availability impact.
Why it matters to the business
This vulnerability does not provide initial remote access by itself, but it can turn a limited foothold from phishing, malware, stolen credentials, or application compromise into full administrative control of a Windows workstation or server. Because the affected product set includes many supported Windows client and server releases, exposure can be broad across enterprise environments. A successful attacker could disable security tools, steal credentials, access sensitive data, install persistence, move laterally, or disrupt services. It is not currently listed in CISA KEV, is not marked as ransomware-associated, has low and stable EPSS, and has no reported public exploit maturity, but local Windows kernel privilege-escalation flaws are commonly valuable in attack chains and should still be remediated through normal patch cycles with higher priority on internet-facing, shared, administrative, and high-value systems.
How an attack unfolds
An attacker first obtains local code execution on an affected Windows system using another technique such as phishing, malware execution, exploitation of an application, abuse of valid credentials, or access to a low-privileged account. The attacker then runs a specially crafted program that interacts with the Windows Common Log File System driver. By supplying malformed data or triggering vulnerable CLFS behavior, the program causes a heap-based buffer overflow in kernel memory. If the memory corruption is controlled reliably, the attacker can modify kernel structures, elevate the current process or thread token, or otherwise execute code with kernel privileges. The attacker then launches a SYSTEM-level shell or service, disables protections, dumps credentials, installs persistence, and uses the elevated access to perform lateral movement or complete the original intrusion objective.
How to fix it
Apply the relevant Microsoft Windows cumulative security update that remediates this vulnerability for each affected Windows version. Where exact fixed build numbers or KBs are not available in the provided data, use Microsoft Update, Windows Server Update Services, Microsoft Configuration Manager, Intune, or an equivalent patch-management platform to deploy the latest cumulative updates released on or after the vendor fix date for Windows 10, Windows 11, and Windows Server versions in scope. Prioritize servers, administrator workstations, shared systems, systems used by privileged users, and endpoints with elevated exposure to untrusted code. If immediate patching is not possible, reduce risk by enforcing least privilege, removing unnecessary local administrator rights, restricting interactive logon and RDP access, blocking untrusted executable content, enabling attack-surface reduction rules, maintaining tamper protection and EDR, and monitoring for local privilege-escalation behavior. There is no safe configuration-only workaround that should be considered equivalent to patching a vulnerable kernel driver.
How to confirm the fix worked
Confirm that all affected Windows systems have installed the applicable cumulative security update and are reporting compliant OS build levels through centralized patch management. Validate that C:\Windows\System32\drivers\clfs.sys is updated to the version delivered by the applicable Microsoft security update for that OS branch. Run authenticated vulnerability scans or endpoint compliance checks that evaluate Windows build and patch state rather than relying only on product name. For high-risk systems, verify after reboot that pending updates are fully applied and no rollback occurred. If compensating controls were used before patching, confirm they remain effective until the update is installed, including restricted local logon paths, least-privilege enforcement, and EDR visibility for process, driver, and file events.
Typical attack path
- Gain local access to an affected Windows workstation or server as a standard or low-privileged user.
- Transfer or stage a local exploit binary or script that targets the Common Log File System driver.
- Execute the exploit to trigger malformed CLFS operations and corrupt kernel heap memory.
- Achieve kernel-mode code execution or manipulate process tokens to obtain SYSTEM privileges.
- Spawn an elevated process, install a privileged service, or create another persistence mechanism.
- Disable or evade security tooling, collect credentials, access protected data, and move laterally to other systems.
How to detect it
This is a local kernel privilege-escalation vulnerability, so exploitation is usually visible through host telemetry rather than network indicators. Review Windows Security logs, Sysmon, EDR telemetry, Windows Defender alerts, Windows Error Reporting, and System event logs for suspicious sequences where a low-privileged process rapidly becomes SYSTEM or creates privileged child processes, services, scheduled tasks, or security configuration changes. Useful events include Security 4688 for process creation, 4672 for special privileges assigned, 4624 for logons, 4697 or System 7045 for service installation, 4698 or Task Scheduler Operational 106 for scheduled task creation, Sysmon Event ID 1 for process creation, Sysmon Event ID 7 for driver/module load where available, and Sysmon Event ID 11 for suspicious file creation. Look for unusual creation or manipulation of CLFS-related files such as .blf, .regtrans-ms, and .tm.blf by user-writable or unexpected processes, especially shortly before privilege changes or crashes. Also review System Event ID 1001 and Windows Error Reporting events for bugchecks or crashes involving clfs.sys, because failed exploitation attempts may destabilize the kernel. Since no public exploit maturity, KEV listing, ransomware use, named threat actor, or unique exploit artifact is provided, detection should focus on behavioral privilege-escalation patterns rather than a single definitive IOC.
- C:\Windows\System32\drivers\clfs.sys
- clfs.sys
- .blf
- .regtrans-ms
- .tm.blf
- Faulting module name: clfs.sys
- The computer has rebooted from a bugcheck
- Event ID 7045
- Event ID 4688
- Event ID 4672
- Event ID 4698
- Event ID 1001
What your security team should do
- Patch affected Windows client and server systems with the latest applicable cumulative security updates, prioritizing high-value servers, administrator workstations, and systems exposed to untrusted users or code.
- Use asset inventory and vulnerability management to identify Windows 10, Windows 11, and Windows Server versions listed as affected, including legacy server versions that may require special servicing channels or extended support handling.
- Review EDR and Windows event telemetry for signs of recent local privilege escalation, especially low-privileged processes spawning SYSTEM-level shells, services, scheduled tasks, or security-tool tampering.
- Harden endpoints by removing unnecessary local administrator rights, limiting interactive logon, restricting RDP access, and enforcing application control or attack-surface reduction policies where feasible.
- Ensure credential-protection controls are enabled, including LSASS protection where supported, because successful exploitation may be followed by credential dumping.
- Treat any confirmed exploitation as a full host compromise: isolate the system, collect forensic evidence, rotate credentials used on the host, and investigate lateral movement.
- Track vendor advisories for exact KB and build information if not already available in patch-management tooling, and verify compliance after reboot.
The record
Heap-based buffer overflow in Windows Common Log File System Driver allows an authorized attacker to elevate privileges locally.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-112403 Pillow is a Python imaging library. CWE-122
- CVE-2026-112393 Pillow is a Python imaging library. CWE-122
- CVE-2026-112395 Pillow is a Python imaging library. CWE-122
- CVE-2026-103658 GNU Aspell 0.60.8.2 (first vulnerable version is not known) contains a heap-based buffer… CWE-122
- CVE-2026-107161 A heap-based buffer overflow flaw was found in Cyrus SASL. CWE-122
- CVE-2026-106574 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-122
- CVE-2026-106564 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-122
- CVE-2026-46570 In NTFS-3G before 2026.7.7, a heap buffer overflow exists in ntfs_index_walk_down() in… CWE-122