[local] Windows Defender (MsMpEng.exe) - Race Condition

Windows Defender MsMpEng.exe 被披露存在高危竞态条件漏洞(无 CVE),允许本地攻击者利用 MpCleanCallbackFunction 与卷影复制创建的竞争窗口实现 LPE 至 SYSTEM,并致 Defender 崩溃。攻击手段涉及伪造 ISO 挂载、实时优先级抢占和 Use-After-Free。本文深度解析根因、攻击场景、检测与修复建议。

未分配CVE

Windows Defender(MsMpEng.exe)存在竞态条件,可致本地提权至SYSTEM及防病毒崩溃。

Critical · CVSS 8.8(估计)

📋 漏洞基础信息

CVE未分配CVE
漏洞类型竞态条件(Race Condition)导致 Use-After-Free 与本地权限提升(LPE)
受影响版本Microsoft Windows Defender Antivirus(MsMpEng.exe),具体版本未在原文中指定
危害等级Critical · CVSS 8.8(估计)
发布日期2026-07-06
提交者nu11secur1ty
来源Exploit-DB 原文 ↗

🔬 漏洞根因

Windows Defender 的清理例程 MpCleanCallbackFunction 与卷影复制(Volume Shadow Copy)创建之间存在竞态条件。攻击者利用该窗口触发 Use-After-Free,并借助 CreateProcessAsUser 将权限提升至 NT AUTHORITY\SYSTEM。同时可导致 MsMpEng.exe 崩溃,使系统在本次会话中失去防病毒保护。

🎯 攻击场景

前置条件:攻击者拥有本地用户权限,可加载虚拟磁盘并创建卷影副本。步骤:1. 通过 OpenVirtualDisk 和 AttachVirtualDisk 挂载伪造的 ISO 镜像,构造触发条件。2. 将进程优先级设置为 REALTIME_PRIORITY_CLASS,线程优先级设为 THREAD_PRIORITY_TIME_CRITICAL,以抢占系统资源。3. 在 Defender 的 MpCleanCallbackFunction 清理例程执行过程中,并发创建卷影副本,制造竞态窗口。4. 在竞态窗口内触发 Use-After-Free,并利用 CreateProcessAsUser 以 SYSTEM 身份执行代码。成功标志:获得 SYSTEM 权限,且 MsMpEng.exe 崩溃,当前会话中系统无防病毒保护。

💥 漏洞影响

本地权限提升至 NT AUTHORITY\SYSTEM,完全控制系统;可导致 Windows Defender 崩溃,使系统在本次会话中失去防病毒保护,增加后续恶意活动风险。

⚔️ 原始 PoC

原文未提供完整 PoC 代码,仅描述利用技术:使用 OpenVirtualDisk / AttachVirtualDisk 挂载伪造 ISO;通过 REALTIME_PRIORITY_CLASS 和 THREAD_PRIORITY_TIME_CRITICAL 提升实时优先级;与 Defender 的清理例程进行速度竞争,最终通过 CreateProcessAsUser 实现提权,并造成 UAF 崩溃。

https://gitlab.com/nu11secur1ty/0/-/raw/main/README.md?ref_type=heads

## Description:
A race condition exists between Windows Defender's
`MpCleanCallbackFunction` (cleanup routine) and Volume Shadow Copy
creation. Successful exploitation results in:

1. LPE (Local Privilege Escalation) to NT AUTHORITY\SYSTEM via
`CreateProcessAsUser`
2. Use-after-free condition causing Windows Defender (`MsMpEng.exe`) to
crash
3. System remains without antivirus protection for the session

The exploit uses:
- Fake ISO mount via `OpenVirtualDisk` / `AttachVirtualDisk`
- Real-time priority escalation (`REALTIME_PRIORITY_CLASS` +
`THREAD_PRIORITY_TIME_CRITICAL`)
- Speed racing against Defender's cleanup routine

**STATUS: HIGH - Critical (0-Day / LPE)**

Exploit:
[url](https://gitlab.com/nu11secur1ty/0.git)

Demo:
[url](https://www.patreon.com/nu11secur1ty/posts/honda-exploit-160798929)

Time spent:
9:10:00

--
System Administrator - Infrastructure Engineer
Penetration Testing Engineer
Exploit developer at https://packetstormsecurity.com/
https://cve.mitre.org/index.html
https://cxsecurity.com/ and https://www.exploit-db.com/
home page: https://www.asc3t1c-nu11secur1ty.com/
hiPEnIMR0v7QCo/+SEH9gBclAAYWGnPoBIQ75sCj60E=
nu11secur1ty https://www.asc3t1c-nu11secur1ty.com/
-- 

System Administrator - Infrastructure Engineer
Penetration Testing Engineer
Exploit developer at https://packetstorm.news/
https://cve.mitre.org/index.html
https://cxsecurity.com/ and https://www.exploit-db.com/
0day Exploit DataBase https://0day.today/
home page: https://www.asc3t1c-nu11secur1ty.com/
hiPEnIMR0v7QCo/+SEH9gBclAAYWGnPoBIQ75sCj60E=
                          nu11secur1ty <http://nu11secur1ty.com/>

🔬 深度技术分析

原文未提供完整 PoC 代码,仅描述利用技术:使用 OpenVirtualDisk / AttachVirtualDisk 挂载伪造 ISO;通过 REALTIME_PRIORITY_CLASS 和 THREAD_PRIORITY_TIME_CRITICAL 提升实时优先级;与 Defender 的清理例程进行速度竞争,最终通过 CreateProcessAsUser 实现提权,并造成 UAF 崩溃。

🛡️ 修复建议

原文未提供补丁或版本信息。临时缓解:限制本地用户对卷影副本服务的访问、实时禁用 Windows Defender 清理回调(如通过组策略)、监控 MsMpEng.exe 异常崩溃并升级至 Microsoft 最新 Defender 平台版本。

📎 参考链接

🚨 威胁评估

📈 EPSS 利用概率暂无数据
🚨 CISA KEV未被已知利用
🔧 公开 PoC暂无公开 PoC

⚠️ 本文基于公开漏洞数据库,仅供安全研究与防御参考。生成时间: 2026-08-02 08:44 | 来源: Exploit-DB

🤖 常见问题解答(FAQ)

❓ 如何检测是否被此漏洞攻击?

监视 MsMpEng.exe 崩溃事件,审计 CreateProcessAsUser 的 SYSTEM 进程创建,以及检测 REALTIME_PRIORITY_CLASS 的异常进程。

❓ 哪些版本受影响?

原文未列出具体版本,涉及 Windows Defender Antivirus(MsMpEng.exe)的任意版本,需关注 Microsoft 安全公告。

❓ 若无法立即安装补丁,怎么缓解?

限制本地用户读取卷影副本权限,使用 Defender 受控文件夹访问,并启用云交付保护;同时监控异常虚拟磁盘挂载。

[!] CONTACT_CHANNELS

如需商务合作、技术咨询或漏洞反馈,请通过以下离岸节点联系作者。

> PING_AUTHOR (@A1RedTeam)