Alex Matrosov / 文章
漏洞在EDK II里待了18年,TianoCore把远程代码执行标到了9.5分
Anthropic用未公开的内部研究模型,在服务器固件项目EDK II的网络启动代码里发现了CVE-2026-97631。问题出在操作系统和Secure Boot生效之前。参考代码已在10月15日合入补丁,作者根据以往披露估计,更新到设备可能还要6到12个月以上。
乔木改写
9月上旬,Anthropic用一款尚未发布的内部研究模型,检查了开源项目EDK II的网络代码,找到了安全漏洞CVE-2026-97631。EDK II是大多数服务器固件的底层代码。

媒体未能载入,请通过下方原文链接查看。
团队在受控实验室里,用参考固件复现了这个漏洞,并用测试工具确认可以执行代码。Claude还写出了补丁,团队核验后,在披露过程中交给了EDK II的维护者。维护者改过一版,于10月15日合入参考代码。
TianoCore是EDK II背后的项目。它按CVSS 4.0给这个漏洞打了10分里的9.5分。这是网络启动驱动里的远程代码执行问题。有问题的代码会在操作系统加载前运行,也早于Secure Boot拦下不受信任软件的时机。它可以追溯到2008年4月,在补丁合入前,出现在每一份EDK II发行版里。
Anthropic说,他们把这件事写出来,有两个原因。第一,维护者改过代码,审计人员查过,模糊测试项目也打过,这份缺陷还是在代码库里待了18年,可见现在这种有AI协助的审查能找到什么样的问题。第二,它最终被发现时,Anthropic的团队和Google的一个团队几乎同时各自找到了它。在他们看来,手里有类似工具的其他人,也有可能找到。他们预计这种平行发现会越来越常见,防守的一方需要赶在攻击者前面找到并修好。
文中把漏洞的技术细节、攻击面、谁真正能碰到,以及可能造成的影响都写清楚了。AI驱动的安全分析,已经把发现、验证和写出修复的时间缩短到几小时或几天,但更新部署到最终系统,往往还要几个月。攻击者也会得到同样的加速:他们可以自己再发现一次,也可以从公开补丁反推,利用代码有可能在更新到达设备之前就准备好。多数运维人员没法自己改固件,在对应设备的更新发布之前,他们能做的是减少暴露,比如隔离用来装机的网络,或者在不需要时关掉网络启动。
一次未认证的ICMP差错,就能在预启动阶段执行代码
未通过认证的攻击者,只要在机器用PXE(预启动执行环境)从网络启动时,向它发一份精心构造的ICMP差错消息,就可能破坏固件内存,并在预启动环境里执行代码。
PXE让服务器从网络启动,不再走本地磁盘。固件先通过DHCP拿到地址,再通过TFTP下载一个小的启动程序并运行。数据中心经常用它来安装、重装和恢复机器。很多服务器出厂就把网络启动排在启动顺序的第一位,所以每次开机并收到DHCP响应时,这段PXE代码都会跑一遍。
有漏洞的代码,从固件拿到地址开始,一直暴露到启动程序不再使用PXE为止,通常是每次启动里的几秒到几分钟。最现实的攻击者,已经控制了同一网段里的另一台机器,比如一台正等着重装、但已被攻陷的服务器,可以通过观察DHCP交换,得知目标地址和时机。ICMP差错是可路由的,如果装机网络没有隔离,网段外的主机也能碰到这个漏洞,不过要另想办法获知地址和时机。用EDK II的虚拟机固件OVMF做网络启动的虚拟机,则暴露给任何能到达其虚拟网络的对象。在这些情形里,只要够得着、时机也对,就足以让启动挂住;真要执行代码,还需要按目标的固件编译版本调整攻击。

媒体未能载入,请通过下方原文链接查看。
图中还标出了暴露窗口:它覆盖TFTP下载和启动程序运行这段时间。Secure Boot和度量启动的检查更靠后,发生在操作系统加载器阶段。
504字节的拷贝循环里,有两个都能写爆边界的错误
UEFI规范要求PXE驱动把ICMP差错报告给它的调用方。EDK II的做法,是把每条进来的ICMP差错,一片一片拷进一个固定504字节的字段Mode.IcmpError。
这段拷贝循环里有两个编码错误。
一旦累计长度超过504字节,循环仍按超出上限的字节数去拷,没有改成只拷还装得下的那一段。
每拷完一片,目标指针按累计总量向前移动,没有按刚拷进去的长度移动。
两个错误单独拿出来,都可能让循环写到字段末尾之外。它们被放进同一个CVE,也由同一份补丁修复,所以作者把它们当成一个缺陷来讨论。

媒体未能载入,请通过下方原文链接查看。
图里把2008年4月2日合入EDK II的循环,和2026年10月15日被修掉的循环放在一起。作者说,两者几乎一样,只是指针名字从CopiedPointer改成了IcmpError。下方时间线把它在每一份EDK II发行版里待过的时间写成18年6个月:2008年1月导入PXE驱动,2008年4月加入这段循环,2010年11月建立NetworkPkg时,这段循环留在IPv4里,并被复制到IPv6,2018年12月删掉2008年的那份拷贝,2021年12月做了文件格式整理,2024年2月在相邻文件里修过PixieFail,直到2026年10月才改掉这段循环。
理解它在实际环境里的限制,和评估真实影响同样重要。要利用这个漏洞,攻击者必须在目标做网络启动时,能够从网络访问到它;只从本地磁盘启动的系统不受影响。对通过网络批量装机的机群来说,现实风险是装机过程被大规模拒绝服务,以及对当时正在启动的设备,在操作系统起来之前执行代码。
过去18年里,这段代码被修改、审计和模糊测试过,缺陷还是没被发现。作者认为,一个原因可能是近年来缺少活跃的维护者。包含这段PXE驱动的EDK II软件包NetworkPkg,自2023年年中起就没有指定负责人。2026年2月,TianoCore把它列为优先级最高的无人维护软件包。
另一个原因,可能是以往的检测工具和AI模型做事的方式本来就不一样。传统的模糊测试、静态分析和基于规则的检测器,通常需要别人先精确告诉它们检查哪里、什么算缺陷。这一次的Claude,也就是那款未发布的内部研究模型,并不需要这类指令。它质疑了拷贝循环else分支的逻辑,分析了处理超大载荷时的执行路径,并评估了异常大的ICMP差错会带来什么影响。人在审查时,往往会默认这类差错消息保持很小,因而容易忽略这条路径。它没有依赖既有的特征签名、崩溃转储或测试工具,就把这类冷路径过了一遍。发现机制的这种变化是双向的:防守的一方可以在缺少几十年领域经验的情况下,找出遗留软件里潜伏很久的漏洞;攻击者也可以。
模型交出的不只是一份缺陷报告
作者认为,AI驱动的代码审查不只是更快,覆盖面也会更宽、更深。模型可以按接近专家的标准,系统检查完整代码库,去看人工抽查和模糊测试可能漏掉的冷僻路径。于是,那些被认为已经安全的旧代码里,一些安静、埋得很深的缺陷会被翻出来。这份缺陷存在了18年,经历了维护者的四次修订,也躲过了专门的安全审计和模糊测试项目。他们把这看成更大趋势的一部分:过去一年,Anthropic的披露工作向主要开源项目提交了数千项发现。

媒体未能载入,请通过下方原文链接查看。
图里用三张格子示意“被分析到的部分”。人工审计对少数区域看得深,但漏掉了这段ICMP差错拷贝循环;模糊测试跑过了大部分格子,却没有同等深度的分析,同样漏掉了它;Claude对每个格子都做了深度分析,并找到了它。图注写明,这些覆盖形态是示意,不是实测数据。
AI还扩大了一次安全审查能交出的东西。除了指出问题,模型还生成了修复补丁、单元测试、向旧版本移植的修改,以及检测规则,输出从一份缺陷报告变成了可执行的修复。
两家几乎同时发现,补丁要穿过一层层固件供应链
这个缺陷差不多在同一时间被两个团队独立发现。Google也用自己的模型找到了它,Anthropic随后与Dan Holmes-Mitra及其团队合作,把研究和修复工作合并到一起。作者写道,随着更多团队用上有AI协助的漏洞研究,这种重叠发现会更频繁。协调因此更重要,可以让维护者和厂商少处理重复报告和相互竞争的补丁。
他们提出的修复本身并不复杂:每次拷贝只限字段里剩下的空间,指针也只按实际拷入的字节数向前移动,这样过长的消息会被截断,而不会写到字段外面。TianoCore的开发者在评审中改得更贴合现有代码,并于10月15日合入EDK II参考代码。一周后,TianoCore发布了公告。

媒体未能载入,请通过下方原文链接查看。
这张题为“时间都花在哪”的时间线,写的是一次高危UEFI固件披露的典型时间安排。作者根据以往类似披露给出估计:按现在的流程,全程常常是6到12个月以上。其中第一跳的分诊、修复和发布大约要四个半月;下一跳要经过独立BIOS厂商,再进入各家OEM,把这三步再走一遍,到第8个月之后;此后才是终端部署,并持续到12个月以后。他们也画了另一种可能:如果用上Claude,分诊、修复和发布可以与BIOS厂商、OEM的工作并行,大约一个半月做完,然后再进入终端部署,整体有机会从“几个月”变成“几周”。这些数字是作者的估计,不是这一次披露已经测到的实际进度。
要把修复送到已经部署的机器上,要难得多,因为UEFI固件是一层层由不同各方构建的栈,并不是一件单独交付的产品。TianoCore发布参考代码,芯片厂商再包上平台软件包,独立BIOS厂商在这些软件包上做产品,设备制造商(OEM和ODM)再为每个型号和每个BIOS版本各做一份映像,有时还要经过代为维护BIOS的承包商。相关项目也会继承同一批文件,包括微软的Project Mu、许多虚拟机使用的OVMF,以及Arm和DPU的分支。
参考代码里的一处修复,必须穿过这些层,才能到达最终系统,所以往往要几个月。每一方都得先弄清自己哪些产品含有这段代码,把补丁合进自己的分支,测试后再往下传。测试做得很细是有原因的:一家厂商可能要支持数百种主板和处理器组合,而一次有问题的固件更新,可能让机器再也开不了机。运维人员随后还要验证更新,并在机群里安排重启。

媒体未能载入,请通过下方原文链接查看。
图中还标出,参考代码会直接分出Arm服务器、DPU和网络设备等分支,以及Project Mu和OVMF;沿供应链向下,经过芯片厂商平台代码、独立BIOS厂商,再到为每个型号和BIOS版本单独出包的OEM和ODM,最后到达云、企业和电信等运营方。作者写道,现场会有数千种不同的固件构建。
为了管理这次披露,他们使用了Akrites机制。Akrites由Linux基金会、OpenSSF和其他伙伴在2026年成立,Anthropic和Google也在其中。它的目标,是帮助开源维护者处理越来越多的、由AI协助提交的安全报告和重复发现,并把分诊、去重、修复验证以及整个生态的补丁分发放到一套统一的响应结构里。这次披露走了Akrites流程,参与的包括上游维护者和众多下游硬件厂商。
参考代码已经修好,更新到设备仍要再等
作者说,这个漏洞现在已经在GitHub上的EDK II参考代码里修好。他们一直在与TianoCore,以及AMI、Insyde、AMD、Intel、Dell、Supermicro等厂商协调。补丁仍必须继续向下进入各厂商的固件,再覆盖到各条产品线。考虑到UEFI生态的复杂程度,以及以往类似漏洞完成修补所花的时间,他们预计这个过程还要几个月。
这样的时间跨度并不只属于这一次。传统的系统固件漏洞响应,正在难以跟上AI驱动的漏洞发现速度。作者认为,需要在协调、测试、缓解和安全更新上采用新办法,以应对AI辅助攻击带来的更大威胁。Anthropic表示,公司正在投入资源,主动加固基础系统固件,这类披露是其中一部分。在行业继续讨论如何加快固件安全响应时,他们会继续与TianoCore、固件厂商和Akrites合作,让修复更早到达机器。
对还在等待设备更新的人,文中已经给出眼下能做的事:把用来安装和恢复机器的网络隔离开;如果并不需要网络启动,就把它关掉。
原文
Finding and fixing an 18-year-old vulnerability in server firmware

媒体未能载入,请通过下方原文链接查看。

媒体未能载入,请通过下方原文链接查看。

媒体未能载入,请通过下方原文链接查看。

媒体未能载入,请通过下方原文链接查看。

媒体未能载入,请通过下方原文链接查看。

媒体未能载入,请通过下方原文链接查看。
Finding and fixing an 18-year-old vulnerability in server firmware
Frontier Red Team
Alex Matrosov
Nov 30, 2026

In early September, we used an unreleased, internal research model to analyze the networking code in EDK II, an open-source project that underpins most server firmware, and identified a security flaw, CVE-2026-97631. Our team reproduced the vulnerability on reference firmware in a controlled lab environment and confirmed code execution using a test harness. Alongside these findings, Claude developed a patch, which our team verified and shared with EDK II’s maintainers during the disclosure process. They merged a refined version into the EDK II reference code on October 15.
CVE-2026-97631 is a remote code execution flaw in the TianoCore EDK II network-boot driver. The vulnerable code runs before the operating system loads and before Secure Boot can block untrusted software. It dates back to April 2008 and, despite security audits and automated testing, was present in every EDK II release until the patch was merged.
We’re highlighting this flaw for two reasons. First, it went unnoticed for 18 years in a codebase that maintainers had revised, auditors had reviewed, and fuzzing projects had targeted. This shows the kind of flaw that AI-assisted review can now find. Second, when it finally surfaced, our team and a team at Google discovered it independently at around the same time, which suggests that others with similar tools could have found it too. We expect parallel discovery like this to become more common, which makes it urgent for defenders to find and fix these flaws before attackers do.
In this post, we share the technical details of the flaw, its attack surface, who can realistically reach it, and what impact it could have. While AI-driven security analysis has shortened the time needed to discover, validate, and develop remediations for critical flaws to hours or days, deploying updates to end-user systems can still take several months. Unfortunately, attackers benefit from the same speedup. They can rediscover a flaw on their own or work it out from a public patch, meaning an exploit may be ready long before the update reaches deployed machines. Most operators can’t patch firmware themselves, so until an update for their specific device is released, the best they can do is limit their exposure—for example, by isolating the networks they use to set up machines, or by turning off network boot where it isn’t needed. We explain why these types of fixes take months in the section on coordinating this disclosure, below.
Vulnerability overview
An unauthenticated attacker who can deliver a crafted ICMP error message to a machine while it boots over the network using PXE (the Preboot Execution Environment) can corrupt firmware memory and execute code in the pre-boot environment. TianoCore, the project behind EDK II, rates the flaw 9.5 out of 10 under CVSS 4.0.
PXE lets a server boot from the network instead of a local disk: the firmware obtains an address over DHCP, downloads a small boot program over TFTP, and runs it. Data centers use it constantly to install, reimage, and recover machines, and many servers ship with network boot first in the boot order, so the PXE code runs every time the server powers on and receives a DHCP response.
The vulnerable code is exposed from the moment the firmware gets its address until the boot program stops using PXE, typically seconds to a few minutes per boot. The most realistic attacker already controls another machine on the same network segment, such as a compromised server waiting to be reimaged, and can learn the target’s address and timing by watching the DHCP exchange. ICMP errors are routable, so if the provisioning network isn’t isolated, a host elsewhere can reach the flaw too, though it has to learn the address and timing some other way. Virtual machines that boot over the network with OVMF, the EDK II firmware for VMs, are exposed to anything that can reach their virtual network. In each case, reach and timing are enough to hang the boot, while running code also requires tailoring the attack to the target’s firmware build.

CVE-2026-97631’s attack surface and impact.
The UEFI specification requires the PXE driver to report ICMP errors to its caller. EDK II does this by copying each incoming ICMP error into a fixed 504-byte field (Mode.IcmpError), fragment by fragment.
The copy loop contains two coding errors:
- Once the running total exceeds 504 bytes, the loop copies the number of bytes over the limit rather than the number that would still fit.
- After each fragment, the destination pointer advances by the running total, rather than by the length just copied.
Either coding error on its own can make the loop write past the end of the field. Both are covered by the same CVE and fixed by the same patch, so we refer to them as a single flaw.

The same vulnerable code, 18 years apart.
Understanding the flaw’s operational constraints is as important as evaluating its real-world impact. Exploitation requires network access to the target while it is booting over the network; systems that boot exclusively from local disk remain unaffected. For fleets provisioned over the network, the practical risks are fleet-wide denial of provisioning and pre-OS code execution on any devices that are actively booting at the time.
This code has been revised, audited, and fuzzed over the past 18 years, yet the flaw went undetected. One reason may have been a lack of active maintainers, at least in recent years. NetworkPkg, the EDK II package that includes the PXE driver, has not had a designated owner since mid-2023. In February 2026, TianoCore named it its highest-priority unmaintained package.
Another reason may be that previous detection tools work in a fundamentally different way from AI models. Traditional fuzzers, static analyzers, and rule-based detectors typically need precise instructions on where to inspect and what counts as a flaw. Claude (in this case, an unreleased internal research model) didn’t need such instructions. Like an expert vulnerability researcher, it questioned the logic of the copy loop’s else branch, analyzed the execution flow when handling oversized payloads, and evaluated the impact of an abnormally large ICMP error—a scenario that human reviewers, who may assume such errors remain small, typically overlook. Operating without preexisting signatures, crash dumps, or test harnesses, it systematically evaluated cold paths. This shift in discovery mechanisms cuts both ways: defenders can find latent vulnerabilities in legacy software without decades of historical domain knowledge, but so can attackers.
Implications for modern security audits
Beyond making analysis faster, AI-driven code review also makes coverage broader and deeper. Models can systematically inspect full codebases with expert-level scrutiny, evaluating obscure paths that manual audits only sample and automated fuzzers can miss. This capability surfaces quiet, deeply embedded defects in code long presumed secure. Indeed, this flaw endured for 18 years, survived four revisions by maintainers, and slipped past dedicated security audits and fuzzing initiatives. This is part of a broader pattern. Over the past year, Anthropic’s disclosure initiatives submitted thousands of findings to major open-source projects.

What earlier methods missed, AI can find.
Furthermore, AI expands what a security review can deliver. In addition to identifying the issue, the model generated the remediation patch, unit tests, backported fixes, and detection rules, changing the output from a simple bug report to an actionable fix.
Coordination on this disclosure
This flaw was discovered independently by two teams at around the same time. Google had also found it using one of its models, so we collaborated with Dan Holmes-Mitra and his team to consolidate our research and remediation efforts. Overlapping discoveries like this are happening more often as AI-assisted vulnerability research spreads to more teams. That makes such coordination increasingly important, because it spares maintainers and vendors from sorting through duplicate reports and competing patches.
The fix we proposed is simple. It limits each copy to the space left in the field and advances the pointer by only the number of bytes actually copied, so an oversized message is cut short instead of writing past the end of the field. TianoCore’s developers refined the fix during review to better fit the codebase and merged it into the EDK II reference code on October 15. TianoCore published its advisory a week later.

UEFI fix delivery timeline.
Getting the fix onto deployed machines is much harder because of the way UEFI firmware is built and shipped. UEFI firmware is not a single product but a stack of layers, each built by a different party. TianoCore publishes the reference code. Silicon vendors wrap it in platform packages. Independent BIOS vendors build products on top of those packages. Device manufacturers (OEMs and ODMs) then produce a separate image for every model and BIOS version, sometimes through a contractor that maintains the BIOS on the manufacturer’s behalf. Related projects also inherit the same files, including Microsoft’s Project Mu, the OVMF firmware used by many virtual machines, and the Arm and DPU forks.
A fix to the reference code has to pass through each of these layers before it reaches end-user systems, which is why it can take months to arrive. Each party has to work out which of its products include the affected code, merge the patch into its own branch, and test the result before passing it on. That testing is thorough for good reason, since a vendor may support hundreds of board and processor combinations, and a faulty firmware update can leave a machine unable to boot. Operators then have to qualify the update and schedule reboots across their fleets.

The UEFI firmware supply chain. Each layer forks the code from the layer above it.
To manage disclosure, we used the Akrites initiative, which was established in 2026 by the Linux Foundation, OpenSSF, and other partners, including Anthropic and Google. Akrites aims to help open-source maintainers handle the growing volume of AI-assisted security reports and duplicate findings. By establishing a unified response structure, it facilitates triage, deduplication, fix verification, and coordinated ecosystem-wide patch distribution. This disclosure went through the Akrites workflow, which involved upstream maintainers and numerous downstream hardware vendors.
Conclusion
The vulnerability is now fixed in the EDK II reference code on GitHub, and we have been coordinating with TianoCore and vendors including AMI, Insyde, AMD, Intel, Dell, and Supermicro. The fix still has to move downstream into vendors’ firmware and across product lines. Given the complexity of the UEFI ecosystem and how long similar vulnerabilities have taken to patch in the past, we expect this process to take months.
That time frame is not unique to this flaw. Traditional vulnerability response processes for system firmware are struggling to keep pace with AI-powered vulnerability discovery. New approaches to coordination, testing, mitigation, and security updates are needed to address the growing threat of AI-enabled attacks. Anthropic is investing significantly in proactively hardening foundational system firmware, including through disclosures like this one. As industry-wide discussions about improving firmware security response continue, we will keep working with TianoCore, firmware vendors, and Akrites to help fixes reach machines sooner.