Critical EDK II Firmware Flaw Exposes Servers to Pre-Boot Code Execution

| 5 min read

Most Servers on the Planet Are Vulnerable to This Firmware Code-Execution Flaw

By Dan Goodin, Ars Technica · Security · Oct. 28, 2026, 4:30 PM

A flaw in firmware that runs before the operating system starts puts a wide range of servers at risk. The bug is rated 9.5 out of 10, and its reach comes from the code’s role as a common foundation for UEFI firmware used by server vendors and data centers. That makes this more significant than a vulnerability in one product: fixes must travel through a sprawling hardware supply chain.

Photo Illustration of the Globes Servers being Disrupted

The new vulnerability allows hackers to access servers as they start up. Photo-Illustration: Jobanny Cabrera; Getty Images

The defect is in TianoCore EDK II, an open source project that hardware makers and cloud providers use to build UEFI firmware. UEFI runs during startup, before the operating system can apply its own protections. A UEFI Forum representative described EDK II last year as the “preeminent solution / implementation of the UEFI specifications.” Independent BIOS vendors including AMI, Insyde, and Phoenix rely on its reference code extensively. Microsoft’s hardened EDK2 fork, Project Mu, also used the vulnerable component.

Tracked as CVE-2026-97631, the flaw is a memory corruption bug in an ICMP component. It can let an attacker run code before defenses such as Secure Boot are in place. Secure Boot helps establish a trusted chain for code loaded during startup, including the Trusted Platform Module (TPM). The initial payload doesn’t persist on its own, but it could help an attacker install other code that runs early every time the machine boots.

The disclosure got ahead of itself

Alex Matrosov of Anthropic and Dan Holmes of Google, who found the vulnerability, had planned to keep it confidential until a coordinated disclosure in January. Then AMI, a maker of motherboards and other hardware, published a pull request last month that described the bug and included a fix. After the researchers raised the issue, TianoCore Project members published a public advisory last week.

Once patch code is public, skilled attackers can study the flaw and work out how to exploit it. Getting a UEFI fix onto millions of devices is also slow: thousands of hardware makers and cloud providers are involved. The disclosure followed another botched security announcement by six days, this one concerning a critical code-execution bug in PHP. Defenders have had to respond to another such problem recently, but the firmware issue presents a different challenge: the vulnerable code sits beneath the operating system.

“This vulnerability in the ICMP parser of the EDK2 network stack is interesting in terms of how it affects the chain of trust and the broader ecosystem,” said HD Moore, creator of Metasploit and chief research officer at Dragos. Someone with access to a nearby endpoint or server could seize control of execution while the boot process can still reach sensitive components such as the TPM, he said. That could help an attacker break disk encryption with brief network access; in a theft scenario, Moore said, it would be easier.

The root cause is a 16-year-old buffer overflow in the PXE-Base Code driver, NetworkPkg/UefiPxeBcDxe. The driver lets servers, storage equipment, and other devices start from code downloaded over a local network. During this pre-execution environment boot, it listens for ICMP error messages. It fails to cap a memory copy at 504 bytes, so a malicious insider or someone with low-level access to the local network can send an oversized message and overwrite adjacent data. The result is corruption in the IUEFI module running on the CPU.

The advisory describes the bug this way:

During network boot, the PXE Base Code driver (NetworkPkg/UefiPxeBcDxe) keeps a receive request open for ICMP error messages and copies each received message into the fixed 504-byte field Mode.IcmpError of its private context structure. The copy loop’s bounds handling is incorrect in both the IPv4 and IPv6 handlers (PxeBcIcmpErrorDpcHandle and PxeBcIcmp6ErrorDpcHandle): for a message longer than 504 bytes it still copies bytes into the field, and it advances the destination pointer by the cumulative rather than the per-fragment length, so an oversized message writes attacker-controlled bytes past the field. Nothing earlier on the receive path restricts the message length.

An attacker can send the malicious error as a unicast message to a target device’s IP address from any network distance, provided it arrives during PXE boot. The simplest outcome may be a denial of service that leaves startup hanging. With knowledge of the target firmware build, an attacker can instead plant a “counterfeit event” that runs code on the CPU inside the UEFI environment, at ring 0—the processor’s most privileged level. Because this execution can bypass attestation checks that cryptographically assure remote systems the hardware is secure, the flaw may also help attackers turn limited access into greater control.

Yet Another Forever Day

A familiar weakness in the boot chain

The significance of CVE-2026-97631 is easier to see alongside earlier UEFI failures. LogoFail showed how flaws in firmware logo rendering could break the chain of trust and let malicious code run before the operating system or Secure Boot. PixieFail was closer to this case: faulty PXE boot code in EDK2. After PixieFail, researchers launched several fuzzingprojects against the open source EDK2 codebase, yet this flaw escaped them. The list also includes PKFail, which exposed non-production test keys that had remained public for more than a decade and appeared in hundreds of device models; BootHole; a Linux UEFI bootkit; and BlackLotus. The pattern matters: code that runs at startup can act before the operating system, TPM protections, and other defenses are available. Moore’s assessment is that CVE-2026-97631 could become a “forever” bug on systems that have reached end of support.

Who is exposed, and what can be done

That risk has limits. An attacker needs some control of the local network, so the flaw doesn’t appear to offer a way into an organization by itself. It could matter to insiders or to nation-state and ransomware operators who already have a foothold and want to raise their privileges. Exploitation also takes target-specific work: Jesse Michael, a principal researcher at firmware security firm Eclypsium, told Ars that attackers must guess particular system addresses. An exploit would need tuning for each device model, firmware version, and configuration; one payload won’t reliably deliver remote code execution across varied machines. Michael also said remediation should be simpler than for some earlier Secure Boot failures, including BootHole, Black Lotus, and Baton Drop. A code change and BIOS or UEFI update should address the flaw; organizations shouldn’t need to manage Secure Boot key revocations or update operating systems and provisioning media. The affected systems are those that boot from a local network, or potentially an Internet-connected resource, and use EDK2’s PXE functionality, which is enabled by default. Home and small-office machines that boot only from disk aren’t affected. Intel said it knows of no affected commercial products still under security support. The company said its reference code doesn’t include the affected EDK2 functionality, though an OEM board maker or system manufacturer may add it, and advised customers to ask their manufacturer. Public Intel reference code does mention EDK2, and TianoCore describes each Intel UEFI development kit as a validated implementation for a particular EDK II revision. Arm said the vulnerability doesn’t directly apply to its product portfolio, although Arm’s published firmware draws heavily on EDK2, as TianoCore’s documentation also describes. Those statements leave room for platform-specific exceptions, so server operators should check their firmware rather than assume they’re covered. AMD, Phoenix Technologies, AMI, Microsoft, Amazon, and the TianoCore Project had not responded when the story was published. Without their answers, the scope across their products and the steps customers should take remain unclear. That’s frustrating, but early reporting can be thin on practical guidance, particularly when a disclosure has been disrupted. For affected organizations, the immediate steps are straightforward: ask the firmware vendor for guidance, consider disabling network boot temporarily where possible, and watch logs for exploitation attempts. TPM and Secure Boot should remain enabled when available, though neither blocks this particular attack. The flaw’s dependence on network boot narrows the target set; its presence in long-lived firmware could make cleanup slow. This story originally appeared on Ars Technica.
Source: Dan Goodin, Ars Technica · www.wired.com