[local] Windows Defender (MsMpEng.exe) - Race Condition
Windows Defender的MsMpEng.exe被曝存在竞态条件0-Day漏洞。攻击者挂载伪造ISO触发Use-After-Free,可本地提权至NT AUTHORITY\SYSTEM并导致杀毒引擎崩溃。本文深度分析漏洞根因、攻击步骤、临时缓解与检测思路。
Windows Defender引擎MsMpEng.exe存在竞态条件,可导致Use-After-Free并本地提权至SYSTEM,同时使杀毒崩溃。
Critical · CVSS 7.8 (CVSS:3.1 估计值;本地攻击、低复杂度、高机密性/完整性与可用性影响)📋 漏洞基础信息
| CVE | 未分配CVE |
|---|---|
| 漏洞类型 | 竞态条件(Race Condition)+ Use-After-Free,导致本地权限提升(LPE) |
| 受影响版本 | Microsoft Windows Defender Antivirus 引擎进程 MsMpEng.exe;原文未注明具体版本号,适用于存在 MpCleanCallbackFunction 清理例程的版本。 |
| 危害等级 | Critical · CVSS 7.8 (CVSS:3.1 估计值;本地攻击、低复杂度、高机密性/完整性与可用性影响) |
| 发布日期 | 2026-07-06 |
| 提交者 | nu11secur1ty |
| 来源 | Exploit-DB 原文 ↗ |
🔬 漏洞根因
Windows Defender 的 MpCleanCallbackFunction 清理例程与卷影复制(Volume Shadow Copy)创建之间存在竞态条件,导致 Use-After-Free。攻击者通过本地操作与实时线程优先级加速竞争,进而利用 CreateProcessAsUser 提升至 NT AUTHORITY\SYSTEM。
🎯 攻击场景
前置条件:攻击者拥有本地低权限账号,能调用虚拟磁盘创建/挂载相关API。步骤:1. 构造恶意伪造的ISO镜像文件;2. 使用 OpenVirtualDisk / AttachVirtualDisk 将ISO挂载为虚拟磁盘;3. 将自身进程/线程优先级提升为 REALTIME_PRIORITY_CLASS + THREAD_PRIORITY_TIME_CRITICAL,与Defender清理例程竞争;4. 触发 MpCleanCallbackFunction 与卷影复制创建之间的竞态,造成 Use-After-Free;5. 通过 CreateProcessAsUser 以 SYSTEM 身份执行任意代码;6. 成功标志:获得SYSTEM shell,且 MsMpEng.exe 崩溃导致本会话无杀毒保护。
💥 漏洞影响
1. 本地权限提升至 NT AUTHORITY\SYSTEM,可完全控制系统;2. Windows Defender (MsMpEng.exe) 因 Use-After-Free 崩溃,造成防病毒保护暂时失效;3. 属于0-Day级高危害漏洞,可用于后续持久化、数据窃取或横向移动。
⚔️ 原始 PoC
原始PoC未在原文中公布代码,但根据描述可归纳:利用 OpenVirtualDisk / AttachVirtualDisk 挂载伪造 ISO,将线程优先级调至实时/时间关键,加快与 Defender 清理回调的竞争,触发 UAF 后调用 CreateProcessAsUser 提权。无具体代码,故不做逐行分析。
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,将线程优先级调至实时/时间关键,加快与 Defender 清理回调的竞争,触发 UAF 后调用 CreateProcessAsUser 提权。无具体代码,故不做逐行分析。
🛡️ 修复建议
官方补丁:原文未提供CVE和补丁版本,建议持续关注Microsoft安全响应中心更新,尽快安装最新Windows Defender引擎及病毒库。临时缓解:限制非管理员用户的ISO/虚拟磁盘挂载权限;启用Windows Defender篡改保护;通过组策略约束实时优先级进程创建;部署EDR/行为监控以检测异常提权行为。
📎 参考链接
- https://gitlab.com/nu11secur1ty/0/-/raw/main/README.md?ref_type=heads
- https://gitlab.com/nu11secur1ty/0.git
- https://www.patreon.com/nu11secur1ty/posts/honda-exploit-160798929
- Exploit-DB 原文
🚨 威胁评估
| 📈 EPSS 利用概率 | 暂无数据 |
| 🚨 CISA KEV | 未被已知利用 |
| 🔧 公开 PoC | 暂无公开 PoC |
⚠️ 本文基于公开漏洞数据库,仅供安全研究与防御参考。生成时间: 2026-08-10 08:30 | 来源: Exploit-DB
🤖 常见问题解答(FAQ)
❓ 该漏洞是否需要用户交互或高权限?
不需要用户交互,但需要本地低权限访问。攻击者必须能够调用虚拟磁盘挂载API,并以实时优先级运行线程进行竞态竞争。
❓ 如何判断系统是否已被利用?
观察MsMpEng.exe是否异常崩溃、Windows Defender服务是否停止、是否存在以SYSTEM身份运行的未知进程,以及大量ISO/虚拟磁盘挂载事件。
❓ 最有效的临时缓解措施是什么?
限制非管理员挂载ISO/虚拟磁盘的权限,启用Defender篡改保护,并用EDR监控CreateProcessAsUser和实时优先级线程的异常组合。