2026 年 6 月 9 日,微软发布 6 月补丁星期二更新,一次性修复 206 个微软原生漏洞,创下历史纪录。其中 CVE-2026-45657(CVSS 9.8)是 Windows 内核 TCP/IP 栈中的释放后重用漏洞,具备可蠕虫化远程代码执行能力,潜在破坏力堪比 2017 年的 EternalBlue(永恒之蓝)。公网暴露的 Windows 11/Server 2022/2025 服务器面临最高风险。本文深入分析漏洞根因、攻击场景,并提供从检测到修复的完整指南。
文章目录
-
- [1. 漏洞全景概览](#1. 漏洞全景概览)
-
- [1.1 漏洞速览](#1.1 漏洞速览)
- [1.2 6 月补丁星期二全景](#1.2 6 月补丁星期二全景)
- [1.3 漏洞核心特征](#1.3 漏洞核心特征)
- [2. 漏洞根因分析](#2. 漏洞根因分析)
-
- [2.1 Windows TCP/IP 栈背景](#2.1 Windows TCP/IP 栈背景)
- [2.2 释放后重用根因](#2.2 释放后重用根因)
- [2.3 可蠕虫化分析](#2.3 可蠕虫化分析)
- [2.4 攻击链分析](#2.4 攻击链分析)
- [3. 攻击场景复现](#3. 攻击场景复现)
-
- [3.1 攻击前提条件](#3.1 攻击前提条件)
- [3.2 影响评估](#3.2 影响评估)
- [3.3 高风险场景](#3.3 高风险场景)
- [4. 修复方案](#4. 修复方案)
- [5. 深度加固方案](#5. 深度加固方案)
-
- [5.1 Windows 服务器安全加固清单](#5.1 Windows 服务器安全加固清单)
- [5.2 组策略加固](#5.2 组策略加固)
- [5.3 监控告警配置](#5.3 监控告警配置)
- [5.4 SIEM 告警规则](#5.4 SIEM 告警规则)
- [6. 验证修复效果](#6. 验证修复效果)
-
- [6.1 修复验证检查表](#6.1 修复验证检查表)
- [6.2 自动化验证脚本](#6.2 自动化验证脚本)
- [7. 踩坑指南](#7. 踩坑指南)
- [8. 总结](#8. 总结)
1. 漏洞全景概览
1.1 漏洞速览
| 项目 | 详情 |
|---|---|
| CVE 编号 | CVE-2026-45657 |
| 发布日期 | 2026 年 6 月 9 日 |
| 影响组件 | Windows 内核 TCP/IP 协议栈 |
| 漏洞类型 | 释放后重用(UAF)→ 远程代码执行 |
| CVSS 评分 | 9.8(Critical) |
| 攻击向量 | 网络(无需认证) |
| 可蠕虫化 | 是------可自动传播 |
| 影响系统 | Windows 11、Windows Server 2022/2025 |
| 补丁状态 | 已发布(6 月补丁星期二) |
| 在野利用 | 暂无确认 |
1.2 6 月补丁星期二全景
2026 年 6 月补丁星期二创下历史纪录:
| 维度 | 数据 |
|---|---|
| 微软原生漏洞 | 206 个(历史最高) |
| 第三方组件漏洞 | 362 个(Chromium 等) |
| 总漏洞量 | 571 个 |
| 严重级漏洞 | 39 个 |
| 远程代码执行 | 56 个 |
| 公开零日漏洞 | 3 个 |
| 高利用可能性 | 15 个 |
1.3 漏洞核心特征
#mermaid-svg-ytp0cj6WWNu4Q9Ac{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .error-icon{fill:#552222;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .marker{fill:#333333;stroke:#333333;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .marker.cross{stroke:#333333;}#mermaid-svg-ytp0cj6WWNu4Q9Ac svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-ytp0cj6WWNu4Q9Ac p{margin:0;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge{stroke-width:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section--1 rect,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section--1 path,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section--1 circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section--1 polygon,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section--1 path{fill:hsl(240, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section--1 text{fill:#ffffff;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .node-icon--1{font-size:40px;color:#ffffff;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-edge--1{stroke:hsl(240, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-depth--1{stroke-width:17;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section--1 line{stroke:hsl(60, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:lightgray;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:#efefef;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-0 rect,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-0 path,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-0 circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-0 polygon,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-0 path{fill:hsl(60, 100%, 73.5294117647%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-0 text{fill:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .node-icon-0{font-size:40px;color:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-edge-0{stroke:hsl(60, 100%, 73.5294117647%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-depth-0{stroke-width:14;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-0 line{stroke:hsl(240, 100%, 83.5294117647%);stroke-width:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:lightgray;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:#efefef;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-1 rect,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-1 path,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-1 circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-1 polygon,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-1 path{fill:hsl(80, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-1 text{fill:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .node-icon-1{font-size:40px;color:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-edge-1{stroke:hsl(80, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-depth-1{stroke-width:11;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-1 line{stroke:hsl(260, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:lightgray;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:#efefef;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-2 rect,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-2 path,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-2 circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-2 polygon,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-2 path{fill:hsl(270, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-2 text{fill:#ffffff;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .node-icon-2{font-size:40px;color:#ffffff;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-edge-2{stroke:hsl(270, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-depth-2{stroke-width:8;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-2 line{stroke:hsl(90, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:lightgray;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:#efefef;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-3 rect,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-3 path,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-3 circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-3 polygon,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-3 path{fill:hsl(300, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-3 text{fill:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .node-icon-3{font-size:40px;color:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-edge-3{stroke:hsl(300, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-depth-3{stroke-width:5;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-3 line{stroke:hsl(120, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:lightgray;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:#efefef;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-4 rect,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-4 path,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-4 circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-4 polygon,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-4 path{fill:hsl(330, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-4 text{fill:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .node-icon-4{font-size:40px;color:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-edge-4{stroke:hsl(330, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-depth-4{stroke-width:2;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-4 line{stroke:hsl(150, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:lightgray;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:#efefef;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-5 rect,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-5 path,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-5 circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-5 polygon,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-5 path{fill:hsl(0, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-5 text{fill:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .node-icon-5{font-size:40px;color:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-edge-5{stroke:hsl(0, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-depth-5{stroke-width:-1;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-5 line{stroke:hsl(180, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:lightgray;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:#efefef;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-6 rect,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-6 path,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-6 circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-6 polygon,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-6 path{fill:hsl(30, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-6 text{fill:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .node-icon-6{font-size:40px;color:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-edge-6{stroke:hsl(30, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-depth-6{stroke-width:-4;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-6 line{stroke:hsl(210, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:lightgray;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:#efefef;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-7 rect,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-7 path,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-7 circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-7 polygon,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-7 path{fill:hsl(90, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-7 text{fill:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .node-icon-7{font-size:40px;color:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-edge-7{stroke:hsl(90, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-depth-7{stroke-width:-7;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-7 line{stroke:hsl(270, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:lightgray;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:#efefef;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-8 rect,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-8 path,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-8 circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-8 polygon,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-8 path{fill:hsl(150, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-8 text{fill:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .node-icon-8{font-size:40px;color:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-edge-8{stroke:hsl(150, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-depth-8{stroke-width:-10;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-8 line{stroke:hsl(330, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:lightgray;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:#efefef;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-9 rect,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-9 path,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-9 circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-9 polygon,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-9 path{fill:hsl(180, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-9 text{fill:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .node-icon-9{font-size:40px;color:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-edge-9{stroke:hsl(180, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-depth-9{stroke-width:-13;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-9 line{stroke:hsl(0, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:lightgray;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:#efefef;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-10 rect,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-10 path,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-10 circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-10 polygon,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-10 path{fill:hsl(210, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-10 text{fill:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .node-icon-10{font-size:40px;color:black;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-edge-10{stroke:hsl(210, 100%, 76.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge-depth-10{stroke-width:-16;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-10 line{stroke:hsl(30, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:lightgray;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .disabled text{fill:#efefef;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-root rect,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-root path,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-root circle,#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-root polygon{fill:hsl(240, 100%, 46.2745098039%);}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-root text{fill:#ffffff;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-root span{color:#ffffff;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .section-2 span{color:#ffffff;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .icon-container{height:100%;display:flex;justify-content:center;align-items:center;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .edge{fill:none;}#mermaid-svg-ytp0cj6WWNu4Q9Ac .mindmap-node-label{dy:1em;alignment-baseline:middle;text-anchor:middle;dominant-baseline:middle;text-align:center;}#mermaid-svg-ytp0cj6WWNu4Q9Ac :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} CVE-2026-45657 Windows TCP/IP UAF
漏洞特征
CVSS 9.8 Critical
可蠕虫化传播
无需认证
可比 EternalBlue
技术原理
TCP/IP栈释放后重用
网络数据包触发
内核级代码执行
影响范围
Windows 11
Windows Server 2022
Windows Server 2025
公网暴露服务器
修复方案
安装6月补丁
禁用SMBv1
防火墙限制
网络分段
2. 漏洞根因分析
2.1 Windows TCP/IP 栈背景
Windows 内核 TCP/IP 协议栈(tcpip.sys)是 Windows 网络通信的核心组件,负责处理所有入站和出站的 TCP/IP 数据包。它运行在内核态,任何漏洞都可能导致内核级代码执行。
2.2 释放后重用根因
CVE-2026-45657 的根因在于 TCP/IP 栈在处理特定网络数据包序列时,对网络连接关联的数据结构进行了提前释放,但后续操作仍引用了已释放的内存。
c
// 漏洞版本简化示意(tcpip.sys)
NTSTATUS TcpipProcessPacket(IN PNET_BUFFER_LIST NetBufferList)
{
// 获取连接对象
PTCP_CONNECTION conn = TcpipFindConnection(NetBufferList);
// 处理 TCP 状态机
if (conn->state == TCP_TIME_WAIT) {
// 连接进入 TIME_WAIT 状态
// 漏洞点:在特定条件下
// 连接对象被提前释放
TcpipFreeConnection(conn);
// conn 指针现在指向已释放的内存
// 但后续代码仍使用 conn 指针
// 处理后续数据包时访问已释放内存
TcpipProcessData(conn, NetBufferList); // UAF!
}
return STATUS_SUCCESS;
}
2.3 可蠕虫化分析
Why:可蠕虫化意味着漏洞可以像蠕虫一样自动传播------攻击者无需用户交互,只需发送特制网络数据包即可感染目标,然后被感染的目标继续扫描和攻击其他系统。这与 2017 年 WannaCry 使用的 EternalBlue 漏洞类似。
#mermaid-svg-90xmRzSXuDYq1OV5{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-90xmRzSXuDYq1OV5 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-90xmRzSXuDYq1OV5 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-90xmRzSXuDYq1OV5 .error-icon{fill:#552222;}#mermaid-svg-90xmRzSXuDYq1OV5 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-90xmRzSXuDYq1OV5 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-90xmRzSXuDYq1OV5 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-90xmRzSXuDYq1OV5 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-90xmRzSXuDYq1OV5 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-90xmRzSXuDYq1OV5 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-90xmRzSXuDYq1OV5 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-90xmRzSXuDYq1OV5 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-90xmRzSXuDYq1OV5 .marker.cross{stroke:#333333;}#mermaid-svg-90xmRzSXuDYq1OV5 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-90xmRzSXuDYq1OV5 p{margin:0;}#mermaid-svg-90xmRzSXuDYq1OV5 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-svg-90xmRzSXuDYq1OV5 .cluster-label text{fill:#333;}#mermaid-svg-90xmRzSXuDYq1OV5 .cluster-label span{color:#333;}#mermaid-svg-90xmRzSXuDYq1OV5 .cluster-label span p{background-color:transparent;}#mermaid-svg-90xmRzSXuDYq1OV5 .label text,#mermaid-svg-90xmRzSXuDYq1OV5 span{fill:#333;color:#333;}#mermaid-svg-90xmRzSXuDYq1OV5 .node rect,#mermaid-svg-90xmRzSXuDYq1OV5 .node circle,#mermaid-svg-90xmRzSXuDYq1OV5 .node ellipse,#mermaid-svg-90xmRzSXuDYq1OV5 .node polygon,#mermaid-svg-90xmRzSXuDYq1OV5 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-90xmRzSXuDYq1OV5 .rough-node .label text,#mermaid-svg-90xmRzSXuDYq1OV5 .node .label text,#mermaid-svg-90xmRzSXuDYq1OV5 .image-shape .label,#mermaid-svg-90xmRzSXuDYq1OV5 .icon-shape .label{text-anchor:middle;}#mermaid-svg-90xmRzSXuDYq1OV5 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-90xmRzSXuDYq1OV5 .rough-node .label,#mermaid-svg-90xmRzSXuDYq1OV5 .node .label,#mermaid-svg-90xmRzSXuDYq1OV5 .image-shape .label,#mermaid-svg-90xmRzSXuDYq1OV5 .icon-shape .label{text-align:center;}#mermaid-svg-90xmRzSXuDYq1OV5 .node.clickable{cursor:pointer;}#mermaid-svg-90xmRzSXuDYq1OV5 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-90xmRzSXuDYq1OV5 .arrowheadPath{fill:#333333;}#mermaid-svg-90xmRzSXuDYq1OV5 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-90xmRzSXuDYq1OV5 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-90xmRzSXuDYq1OV5 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-90xmRzSXuDYq1OV5 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-90xmRzSXuDYq1OV5 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-90xmRzSXuDYq1OV5 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-90xmRzSXuDYq1OV5 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-90xmRzSXuDYq1OV5 .cluster text{fill:#333;}#mermaid-svg-90xmRzSXuDYq1OV5 .cluster span{color:#333;}#mermaid-svg-90xmRzSXuDYq1OV5 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-90xmRzSXuDYq1OV5 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-90xmRzSXuDYq1OV5 rect.text{fill:none;stroke-width:0;}#mermaid-svg-90xmRzSXuDYq1OV5 .icon-shape,#mermaid-svg-90xmRzSXuDYq1OV5 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-90xmRzSXuDYq1OV5 .icon-shape p,#mermaid-svg-90xmRzSXuDYq1OV5 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-90xmRzSXuDYq1OV5 .icon-shape .label rect,#mermaid-svg-90xmRzSXuDYq1OV5 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-90xmRzSXuDYq1OV5 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-90xmRzSXuDYq1OV5 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-90xmRzSXuDYq1OV5 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} 攻击者发送特制TCP/IP数据包
目标Windows内核处理数据包
触发TCP/IP栈UAF
内核级代码执行
安装蠕虫载荷
扫描内网其他Windows系统
自动攻击新目标
蠕虫式传播
2.4 攻击链分析
目标2 目标1 蠕虫载荷 目标2 目标1 蠕虫载荷 #mermaid-svg-ely5ePMF17KXLxJi{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-ely5ePMF17KXLxJi .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-ely5ePMF17KXLxJi .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-ely5ePMF17KXLxJi .error-icon{fill:#552222;}#mermaid-svg-ely5ePMF17KXLxJi .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-ely5ePMF17KXLxJi .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-ely5ePMF17KXLxJi .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-ely5ePMF17KXLxJi .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-ely5ePMF17KXLxJi .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-ely5ePMF17KXLxJi .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-ely5ePMF17KXLxJi .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-ely5ePMF17KXLxJi .marker{fill:#333333;stroke:#333333;}#mermaid-svg-ely5ePMF17KXLxJi .marker.cross{stroke:#333333;}#mermaid-svg-ely5ePMF17KXLxJi svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-ely5ePMF17KXLxJi p{margin:0;}#mermaid-svg-ely5ePMF17KXLxJi .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-ely5ePMF17KXLxJi text.actor>tspan{fill:black;stroke:none;}#mermaid-svg-ely5ePMF17KXLxJi .actor-line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-ely5ePMF17KXLxJi .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-svg-ely5ePMF17KXLxJi .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-ely5ePMF17KXLxJi .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-ely5ePMF17KXLxJi #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-ely5ePMF17KXLxJi .sequenceNumber{fill:white;}#mermaid-svg-ely5ePMF17KXLxJi #sequencenumber{fill:#333;}#mermaid-svg-ely5ePMF17KXLxJi #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-ely5ePMF17KXLxJi .messageText{fill:#333;stroke:none;}#mermaid-svg-ely5ePMF17KXLxJi .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-ely5ePMF17KXLxJi .labelText,#mermaid-svg-ely5ePMF17KXLxJi .labelText>tspan{fill:black;stroke:none;}#mermaid-svg-ely5ePMF17KXLxJi .loopText,#mermaid-svg-ely5ePMF17KXLxJi .loopText>tspan{fill:black;stroke:none;}#mermaid-svg-ely5ePMF17KXLxJi .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-ely5ePMF17KXLxJi .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-ely5ePMF17KXLxJi .noteText,#mermaid-svg-ely5ePMF17KXLxJi .noteText>tspan{fill:black;stroke:none;}#mermaid-svg-ely5ePMF17KXLxJi .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-ely5ePMF17KXLxJi .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-ely5ePMF17KXLxJi .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-ely5ePMF17KXLxJi .actorPopupMenu{position:absolute;}#mermaid-svg-ely5ePMF17KXLxJi .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#mermaid-svg-ely5ePMF17KXLxJi .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-ely5ePMF17KXLxJi .actor-man circle,#mermaid-svg-ely5ePMF17KXLxJi line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-ely5ePMF17KXLxJi :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} tcpip.sys 处理数据包 触发 UAF 漏洞 内核代码执行 安装蠕虫载荷 触发相同漏洞 蠕虫式传播 发送特制 TCP/IP 数据包 扫描内网 Windows 系统 发送特制 TCP/IP 数据包
3. 攻击场景复现
3.1 攻击前提条件
markdown
攻击门槛:
- 目标系统为 Windows 11 / Server 2022 / 2025
- 目标系统未安装 6 月补丁
- 目标系统的 TCP/IP 端口可达(任何端口均可触发)
- 无需用户交互
- 无需认证
3.2 影响评估
| 影响维度 | 评估 |
|---|---|
| 机密性 | 严重------可读取所有系统数据 |
| 完整性 | 严重------可修改任意系统文件 |
| 可用性 | 严重------可导致系统崩溃或被勒索 |
| 攻击门槛 | 低------无需认证和用户交互 |
| 传播能力 | 高------可蠕虫式自动传播 |
| 历史类比 | 2017 EternalBlue(WannaCry) |
3.3 高风险场景
markdown
高风险环境:
1. 公网暴露的 Windows 服务器(RDP/SMB/IIS)
2. DMZ 区域的 Windows 服务器
3. 混合云环境中的 Windows 实例
4. 未及时更新补丁的企业内网
5. 工业控制系统(ICS)中的 Windows 主机
4. 修复方案
4.1 安装 6 月补丁
Why:这是唯一彻底的修复方式。微软已在 6 月补丁星期二中发布了修复。
powershell
# 方式1:通过 Windows Update
# 设置 → 更新和安全 → Windows 更新 → 检查更新
# 方式2:通过 PowerShell
Install-Module PSWindowsUpdate -Force
Import-Module PSWindowsUpdate
Get-WindowsUpdate -Install -AcceptAll -AutoReboot
# 方式3:通过命令行(离线环境)
# 下载补丁包
# https://catalog.update.microsoft.com/
# 搜索 KB5061080(Windows 11)或对应 KB 编号
# 安装补丁
wusa.exe KB5061080.msu /quiet /norestart
# 验证补丁安装
wmic qfe list brief /format:table | findstr "KB5061080"
4.2 临时缓解措施
禁用 SMBv1
powershell
# 检查 SMBv1 状态
Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
# 禁用 SMBv1(减少攻击面)
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol -NoRestart
# 验证
Get-SmbServerConfiguration | Select EnableSMB1Protocol
# 预期: False
防火墙限制
powershell
# 限制入站连接
# 仅允许必要的端口
# 阻止 SMB(如果不需要)
New-NetFirewallRule -Name "Block-SMB-In" `
-DisplayName "Block SMB Inbound" `
-Direction Inbound `
-Protocol TCP `
-LocalPort 445 `
-Action Block `
-Profile Any
# 阻止 RDP(如果不需要)
New-NetFirewallRule -Name "Block-RDP-In" `
-DisplayName "Block RDP Inbound" `
-Direction Inbound `
-Protocol TCP `
-LocalPort 3389 `
-Action Block `
-Profile Any
# 限制 RPC 动态端口范围
Set-NetTCPSetting -DynamicPortRangeStartPort 49152 `
-DynamicPortRangeNumberOfPorts 16384
网络分段
powershell
# 使用 Windows Defender Firewall 限制内网通信
# 仅允许必要的通信
# 创建隔离规则
New-NetFirewallRule -Name "Isolate-DMZ" `
-DisplayName "Isolate DMZ from Internal" `
-Direction Inbound `
-RemoteAddress 10.0.0.0/8 `
-Action Block `
-Profile Domain
# 允许特定管理主机
New-NetFirewallRule -Name "Allow-Admin-Access" `
-DisplayName "Allow Admin Access" `
-Direction Inbound `
-RemoteAddress 10.0.1.100 `
-Action Allow `
-Profile Domain
4.3 服务器环境修复
powershell
# 批量更新多台服务器
$servers = @("server1", "server2", "server3")
foreach ($server in $servers) {
Write-Host "Updating $server..."
# 远程检查补丁状态
Invoke-Command -ComputerName $server -ScriptBlock {
$hotfix = Get-HotFix | Where-Object { $_.HotFixID -eq "KB5061080" }
if ($hotfix) {
Write-Host "$env:COMPUTERNAME: 已安装补丁"
} else {
Write-Host "$env:COMPUTERNAME: 未安装补丁,需要更新"
# 触发 Windows Update
Install-Module PSWindowsUpdate -Force
Import-Module PSWindowsUpdate
Get-WindowsUpdate -Install -AcceptAll -AutoReboot
}
}
}
4.4 云环境修复
| 云平台 | 操作 |
|---|---|
| AWS EC2 | Systems Manager → Patch Manager → 部署补丁基线 |
| Azure VM | 更新管理 → 部署更新 → 选择 6 月补丁 |
| 阿里云 ECS | 云安全中心 → 漏洞修复 → 选择 CVE-2026-45657 |
| 腾讯云 CVM | 主机安全 → 漏洞扫描 → 一键修复 |
5. 深度加固方案
5.1 Windows 服务器安全加固清单
markdown
补丁管理:
- [ ] 安装 6 月补丁星期二所有更新
- [ ] 启用自动更新(或配置 WSUS)
- [ ] 定期检查补丁状态
- [ ] 建立补丁测试流程
网络加固:
- [ ] 禁用 SMBv1
- [ ] 限制入站端口
- [ ] 配置防火墙规则
- [ ] 实施网络分段
- [ ] 限制 RPC 端口范围
认证加固:
- [ ] 启用 Windows Defender Credential Guard
- [ ] 配置账户锁定策略
- [ ] 禁用本地管理员账户
- [ ] 使用 LAPS 管理本地密码
监控加固:
- [ ] 启用 Windows 事件转发(WEF)
- [ ] 配置 SIEM 告警
- [ ] 监控异常网络连接
- [ ] 监控异常进程创建
5.2 组策略加固
powershell
# 导入安全模板
# 使用 secedit 配置安全策略
# 账户锁定策略
secedit /configure /db secedit.sdb /cfg security_template.inf
# security_template.inf 关键配置
"""
[System Access]
MinimumPasswordLength = 14
PasswordComplexity = 1
MaximumPasswordAge = 30
LockoutBadCount = 3
LockoutDuration = 30
RequireLogonToChangePassword = 0
[Registry Values]
# 禁用 SMBv1
MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\SMB1 = 4,0
# 启用 SMB 签名
MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\RequireSecuritySignature = 4,1
# 禁用匿名访问
MACHINE\System\CurrentControlSet\Control\Lsa\RestrictAnonymous = 4,1
"""
5.3 监控告警配置
powershell
# Windows 事件监控脚本
# 监控可能的 CVE-2026-45657 利用
# 1. 监控 tcpip.sys 相关崩溃
Get-WinEvent -FilterHashtable @{
LogName = 'System'
ProviderName = 'Microsoft-Windows-WER-SystemErrorReporting'
StartTime = (Get-Date).AddHours(-24)
} | Where-Object { $_.Message -match 'tcpip.sys' }
# 2. 监控异常网络连接
Get-NetTCPConnection | Where-Object {
$_.State -eq 'Established' -and
$_.RemoteAddress -notmatch '^(10\.|172\.(1[6-9]|2[0-9]|3[01])\.|192\.168\.|127\.)'
} | Select-Object LocalAddress, LocalPort, RemoteAddress, RemotePort
# 3. 监控异常进程创建
Get-WinEvent -FilterHashtable @{
LogName = 'Security'
Id = 4688
StartTime = (Get-Date).AddHours(-1)
} | Where-Object {
$_.Properties[5].Value -match 'powershell|cmd|wscript|cscript'
} | Select-Object TimeCreated, @{N='Process';E={$_.Properties[5].Value}}
5.4 SIEM 告警规则
sql
-- Splunk/ELK 告警规则:检测 CVE-2026-45657 利用
-- 规则1:tcpip.sys 相关的蓝屏崩溃
index=windows source="WinEventLog:System"
(EventCode=1001 OR EventCode=6008)
"tcpip.sys"
| stats count by host
| where count > 3
| alert
-- 规则2:异常的入站连接激增
index=network sourcetype=firewall
action=allowed direction=inbound
| stats count by src_ip dest_port
| where count > 100
| alert
-- 规则3:可疑的内核模式进程注入
index=windows source="WinEventLog:Security"
EventCode=4688
(NewProcessName="*\\powershell.exe" OR NewProcessName="*\\cmd.exe")
ParentProcessName="*\\services.exe"
| alert
6. 验证修复效果
6.1 修复验证检查表
| 检查项 | 验证方法 | 预期结果 |
|---|---|---|
| 补丁安装 | `wmic qfe list | findstr KB5061080` |
| SMBv1 状态 | `Get-SmbServerConfiguration | Select EnableSMB1Protocol` |
| 防火墙状态 | `Get-NetFirewallProfile | Select Name,Enabled` |
| 系统版本 | winver |
最新版本 |
| 蓝屏日志 | 事件查看器 → 系统 | 无 tcpip.sys 崩溃 |
6.2 自动化验证脚本
powershell
# verify_windows_fix.ps1 - 验证 Windows 修复效果
Write-Host "=== Windows 安全修复验证 ===" -ForegroundColor Cyan
# 1. 验证补丁安装
Write-Host -NoNewline "1. 6月补丁状态: "
$patch = Get-HotFix | Where-Object { $_.HotFixID -eq "KB5061080" }
if ($patch) {
Write-Host "PASS (已安装 $($patch.HotFixID))" -ForegroundColor Green
} else {
Write-Host "FAIL (未安装)" -ForegroundColor Red
}
# 2. 验证 SMBv1 状态
Write-Host -NoNewline "2. SMBv1 状态: "
$smb1 = Get-SmbServerConfiguration | Select -ExpandProperty EnableSMB1Protocol
if ($smb1 -eq $false) {
Write-Host "PASS (已禁用)" -ForegroundColor Green
} else {
Write-Host "FAIL (仍启用)" -ForegroundColor Red
}
# 3. 验证防火墙状态
Write-Host -NoNewline "3. 防火墙状态: "
$fw = Get-NetFirewallProfile | Select Name, Enabled
$allEnabled = ($fw | Where-Object { $_.Enabled -eq $false }).Count -eq 0
if ($allEnabled) {
Write-Host "PASS (全部启用)" -ForegroundColor Green
} else {
Write-Host "FAIL (部分未启用)" -ForegroundColor Red
}
# 4. 检查蓝屏日志
Write-Host -NoNewline "4. tcpip.sys 崩溃检查: "
$crashes = Get-WinEvent -FilterHashtable @{
LogName = 'System'
StartTime = (Get-Date).AddDays(-7)
} -ErrorAction SilentlyContinue | Where-Object {
$_.Message -match 'tcpip.sys'
}
if ($crashes.Count -eq 0) {
Write-Host "PASS (无崩溃)" -ForegroundColor Green
} else {
Write-Host "WARN (发现 $($crashes.Count) 次崩溃)" -ForegroundColor Yellow
}
# 5. 检查系统版本
Write-Host -NoNewline "5. 系统版本: "
$os = Get-CimInstance Win32_OperatingSystem
Write-Host $os.Caption -ForegroundColor White
Write-Host "=== 验证完成 ===" -ForegroundColor Cyan
7. 踩坑指南
1:安装补丁后服务器蓝屏
现象:安装 6 月补丁后,服务器频繁蓝屏。
根因:补丁可能与某些驱动程序或第三方软件冲突。
解决:
powershell
# 卸载有问题的补丁
wusa.exe /uninstall /kb:5061080 /quiet /norestart
# 分析蓝屏转储
# 下载 Windows Debugging Tools
# 分析 minidump
kd -z C:\Windows\Minidump\*.dmp
2:补丁安装失败
现象:补丁安装报错 0x80070002。
根因:Windows Update 组件损坏。
解决:
powershell
# 重置 Windows Update 组件
Stop-Service -Name wuauserv -Force
Stop-Service -Name cryptSvc -Force
Stop-Service -Name bits -Force
Stop-Service -Name msiserver -Force
# 重命名更新目录
Rename-Item C:\Windows\SoftwareDistribution SoftwareDistribution.old
Rename-Item C:\Windows\System32\catroot2 catroot2.old
# 重启服务
Start-Service -Name wuauserv
Start-Service -Name cryptSvc
Start-Service -Name bits
Start-Service -Name msiserver
# 重新尝试安装
Get-WindowsUpdate -Install -AcceptAll
3:云服务器无法自动更新
现象:云上的 Windows 服务器无法通过 Windows Update 获取补丁。
根因:云平台可能使用自定义的更新源。
解决:通过云平台控制台手动安装补丁,或使用云平台提供的补丁管理工具。
8. 总结
核心要点
- CVE-2026-45657:Windows 内核 TCP/IP 栈 UAF 漏洞,CVSS 9.8,可蠕虫化
- 历史意义:6 月补丁星期二创纪录的 206 个漏洞,此为最危险的一个
- 影响范围:Windows 11、Server 2022/2025,公网暴露服务器风险最高
- 修复方案:安装 6 月补丁星期二更新
- 临时缓解:禁用 SMBv1、限制防火墙、网络分段
- 长期加固:建立补丁管理流程、网络分段、监控告警
修复优先级
markdown
P0(24小时内):
- 公网暴露的 Windows 服务器
- DMZ 区域的 Windows 服务器
- Windows Server 2022/2025
P1(72小时内):
- 内网 Windows 服务器
- Windows 11 工作站
- 混合云环境
P2(1周内):
- 所有 Windows 系统统一更新
- 建立补丁管理流程
- 部署网络分段方案
- 建立 SIEM 监控体系
与 EternalBlue 的对比
| 维度 | EternalBlue (CVE-2017-0144) | CVE-2026-45657 |
|---|---|---|
| CVSS | 8.1 | 9.8 |
| 漏洞类型 | SMBv1 缓冲区溢出 | TCP/IP 栈 UAF |
| 影响组件 | SMB 服务 | TCP/IP 协议栈 |
| 攻击端口 | 445 (SMB) | 任意 TCP/IP 端口 |
| 蠕虫化 | 是(WannaCry) | 是(潜在) |
| 影响系统 | Windows XP-2016 | Windows 11/Server 2022+ |
| 修复方式 | MS17-010 补丁 | 6 月补丁星期二 |