[local] Windows Defender (MsMpEng.exe) - Race Condition
Windows Defender MsMpEng.exe 存在高危竞态条件0-Day,攻击者可利用卷影副本创建与清理回调的竞争实现本地权限提升至SYSTEM,并导致Defender崩溃失去防护。本文深度分析漏洞原理、攻击场景及检测缓解建议。
Windows Defender利用竞态条件实现本地权限提升至SYSTEM,并致其崩溃失去防护。
Critical · CVSS 7.8 (估计,本地权限提升+可用性影响)📋 漏洞基础信息
| CVE | 未分配CVE |
|---|---|
| 漏洞类型 | Race Condition / Use-After-Free → Local Privilege Escalation |
| 受影响版本 | Windows Defender Antivirus (MsMpEng.exe),具体版本未披露 |
| 危害等级 | Critical · CVSS 7.8 (估计,本地权限提升+可用性影响) |
| 发布日期 | 2026-07-06 |
| 提交者 | nu11secur1ty |
| 来源 | Exploit-DB 原文 ↗ |
🔬 漏洞根因
Windows Defender 的 MpCleanCallbackFunction(清理回调)与卷影副本(Volume Shadow Copy)创建之间存在竞态条件,导致释放后使用(Use-After-Free),进而可被利用以实现本地权限提升和进程崩溃。
🎯 攻击场景
1. 攻击者需要能执行本地代码并具备挂载虚拟磁盘的权限。 2. 通过 OpenVirtualDisk / AttachVirtualDisk 挂载伪造的 ISO 镜像。 3. 触发卷影副本创建,同时利用 REALTIME_PRIORITY_CLASS + THREAD_PRIORITY_TIME_CRITICAL 将线程优先级提升至实时/时间关键,与 Defender 的 MpCleanCallbackFunction 清理例程竞争。 4. 赢得竞争后触发 Use-After-Free,使 MsMpEng.exe 崩溃。 5. 利用 CreateProcessAsUser 以 NT AUTHORITY\SYSTEM 身份创建进程,获得 SYSTEM 权限。 成功标志:获得 SYSTEM 会话且 Windows Defender 已崩溃。
💥 漏洞影响
将本地用户权限提升至 NT AUTHORITY\SYSTEM;Windows Defender 进程崩溃,导致当前会话失去防病毒保护;可进一步实施其他恶意操作。
⚔️ 原始 PoC
原文未提供逐步 PoC 代码,仅给出 GitLab 仓库链接。根据描述,PoC 利用虚拟磁盘挂载作为触发源,通过高优先级加速竞态窗口,进而完成权限提升和崩溃。
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 代码,仅给出 GitLab 仓库链接。根据描述,PoC 利用虚拟磁盘挂载作为触发源,通过高优先级加速竞态窗口,进而完成权限提升和崩溃。
🛡️ 修复建议
微软尚未发布补丁(0-Day)。临时缓解:限制本地用户挂载/创建虚拟磁盘和卷影副本的权限;部署 EDR 监控 Defender 进程异常退出;等待微软官方安全更新。
📎 参考链接
- https://gitlab.com/nu11secur1ty/0/-/raw/main/README.md?ref_type=heads
- https://gitlab.com/nu11secur1ty/0.git
- Exploit-DB 原文
🚨 威胁评估
| 📈 EPSS 利用概率 | 暂无数据 |
| 🚨 CISA KEV | 未被已知利用 |
| 🔧 公开 PoC | 暂无公开 PoC |
⚠️ 本文基于公开漏洞数据库,仅供安全研究与防御参考。生成时间: 2026-08-05 08:27 | 来源: Exploit-DB
🤖 常见问题解答(FAQ)
❓ 如何检测该漏洞的利用行为?
监控 MsMpEng.exe 崩溃事件 ID 1000/1001,用 Sysmon 监视 AttachVirtualDisk、OpenVirtualDisk 以及 CreateProcessAsUser 可疑调用。
❓ 影响哪些Windows版本?
原文未披露具体 Windows 版本,凡是使用 Windows Defender MsMpEng.exe 且允许本地用户挂载虚拟磁盘的系统均可能受影响。
❓ 临时缓解措施有哪些?
限制用户创建卷影副本和挂载虚拟磁盘的权限,启用环回。