[local] Windows Defender (MsMpEng.exe) - Race Condition
Windows Defender (MsMpEng.exe) 被披露存在竞态条件漏洞,可导致本地权限提升至SYSTEM、UAF崩溃及杀毒失效。该漏洞被标记为0-Day Critical,利用手法涉及伪造ISO挂载和实时优先级抢占。本文深度分析漏洞根因、攻击场景及临时缓解措施。
Windows Defender的MpCleanCallbackFunction与卷影副本创建存在竞态条件,导致LPE到SYSTEM、UAF崩溃及防护失效。
Critical · CVSS 8.8 (AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) 估计📋 漏洞基础信息
| CVE | 未分配CVE |
|---|---|
| 漏洞类型 | 竞态条件(Race Condition)导致本地权限提升(LPE)与释放后使用(UAF) |
| 受影响版本 | Windows Defender Antivirus (MsMpEng.exe),具体版本号未披露 |
| 危害等级 | Critical · CVSS 8.8 (AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) 估计 |
| 发布日期 | 2026-07-06 |
| 提交者 | nu11secur1ty |
| 来源 | Exploit-DB 原文 ↗ |
🔬 漏洞根因
Windows Defender 的清理例程 `MpCleanCallbackFunction` 与 Volume Shadow Copy (VSS) 创建之间存在竞态条件(Race Condition),攻击者可通过伪造ISO挂载和实时优先级抢占,在清理回调执行间隙触发对象释放后使用,最终获取SYSTEM权限并使Defender崩溃。
🎯 攻击场景
1. 前置条件:攻击者拥有本地用户权限,可调用虚拟磁盘API。2. 使用 `OpenVirtualDisk`/`AttachVirtualDisk` 挂载伪造ISO镜像,触发Defender扫描/清理流程。3. 将恶意进程优先级提升到 `REALTIME_PRIORITY_CLASS` 并设置 `THREAD_PRIORITY_TIME_CRITICAL`,抢占CPU时间片。4. 在 `MpCleanCallbackFunction` 与卷影副本创建之间快速触发竞态窗口,使Defender使用已释放的对象。5. 利用 `CreateProcessAsUser` 以NT AUTHORITY\SYSTEM身份执行任意代码,同时导致MsMpEng.exe崩溃。6. 成功标志:获得SYSTEM权限,当前会话杀毒防护失效。
💥 漏洞影响
1. 本地权限提升(LPE):攻击者可从普通用户提升至SYSTEM权限,执行任意代码。2. 释放后使用(UAF):导致MsMpEng.exe崩溃,使Windows Defender在当前会话中失效,系统失去防病毒保护。3. 由于杀毒软件崩溃,可能进一步被用于安装持久化后门或绕过安全检测。
⚔️ 原始 PoC
原始PoC未在漏洞文本中详细展开,仅说明使用伪造ISO挂载(OpenVirtualDisk/AttachVirtualDisk)、实时优先级提升(REALTIME_PRIORITY_CLASS + THREAD_PRIORITY_TIME_CRITICAL)以及竞速Defender清理例程;具体代码需从gitlab仓库获取。
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未在漏洞文本中详细展开,仅说明使用伪造ISO挂载(OpenVirtualDisk/AttachVirtualDisk)、实时优先级提升(REALTIME_PRIORITY_CLASS + THREAD_PRIORITY_TIME_CRITICAL)以及竞速Defender清理例程;具体代码需从gitlab仓库获取。
🛡️ 修复建议
目前无官方补丁(未分配CVE),建议:1. 等待微软发布安全更新。2. 临时缓解措施:限制普通用户对虚拟磁盘API的访问权限;监控并阻止异常的 `REALTIME_PRIORITY_CLASS` 进程行为;使用EDR/XDR检测MsMpEng.exe异常崩溃并自动重启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-02 08:25 | 来源: Exploit-DB
🤖 常见问题解答(FAQ)
❓ 该漏洞是否已有在野利用?
原文标记为Critical 0-Day/LPE,未明确提供在野利用证据,但公开了PoC和演示视频,建议视为高危。
❓ 如何临时缓解此漏洞?
等待补丁,限制本地用户访问虚拟磁盘API,使用EDR监控进程异常优先级及Defender崩溃,必要时通过组策略禁用Defender自动清理功能(需评估业务影响)。
❓ UAF的具体触发条件是什么?
攻击者利用伪造ISO挂载触发Defender扫描,并在清理回调(MpCleanCallbackFunction)与卷影副本创建的竞态窗口内,使回调对象被释放后仍被引用,导致UAF和崩溃。