Author: Dan Holmes-Mitra, Staff Software Engineer
For 18 years, an unauthenticated remote code execution vulnerability sat untouched in TianoCore EDK II, the open-source reference codebase behind modern UEFI system firmware. It shipped across nearly every UEFI server, workstation, and virtual machine firmware image in the industry. It survived thousands of commits and even the 2023 PixieFail security audit, which uncovered nine CVEs in the same UEFI network subsystem while passing right over the ICMP error handler. Then, between May and September 2026, three security teams uncovered it independently of one another.
When our firmware security team at Google identified the flaw in May using our Gemini-powered firmware review pipeline and built an end-to-end proof of concept, we dubbed it PXECUTE. Tracked as CVE-2026-97631 (GHSA-99cj-7hg9-mp4m) and fixed upstream in EDK II (PR #13302), the bug became public ahead of schedule after an inadvertent pull request exposed the patch during coordinated disclosure. As downstream vendor BIOS updates roll out across fleets, we are sharing how a 2008 specification helper turned into a routed Secure Boot bypass, how operators can filter the attack surface without breaking Path MTU Discovery, and why three teams converging on the same flaw in four months forces a rethink of pre-boot attack surfaces, embargo timelines, and memory-unsafe C.
| Google Cloud customer impact: Standard Google Cloud workloads, including Compute Engine virtual machines, do not boot over external PXE networks and require no customer action for CVE-2026-97631. No in-the-wild exploitation has been observed. Organizations operating bare-metal or on-premises environments that rely on UEFI PXE provisioning should apply the boot-order and router ACL mitigations below while deploying vendor firmware updates. |
From a 2008 spec helper to Secure Boot bypass
In April 2008, a developer committed a small, well-intentioned feature to EDK II. Under the UEFI specification, the Preboot Execution Environment (PXE) network-boot interface sets aside a fixed 504-byte buffer so bootloaders can check whether an ICMP network error packet arrived during boot. Nothing in EDK II actually reads that buffer; it was wired up purely for specification completeness.
Two years later, in November 2010, EDK II added a dedicated network package and introduced IPv6 network boot support. Under IPv4 (RFC 792), routers typically quote only the IP header plus 8 bytes of the offending packet inside an ICMP error message, which fits comfortably inside 504 bytes. Under IPv6 (RFC 4443), however, routers are instructed to return as much of the original packet as possible up to the 1,280-byte IPv6 minimum MTU. The UEFI binary interface was already frozen, so that 504-byte buffer could not grow. Instead, the copy loop in the PXE driver was duplicated for ICMPv6, carrying over a broken bounds calculation from 2008.
1. Two compounding bugs in 15 lines of C
While a machine is attempting a PXE boot over IPv4 or IPv6, any unauthenticated sender with network reach to it can trigger memory corruption without controlling the DHCP or TFTP server. Throughout the PXE boot attempt, the UEFI PXE driver keeps a background listener open for incoming ICMP error packets. Whenever an error packet arrives, a callback in
NetworkPkg/UefiPxeBcDxe/PxeBcSupport.c copies the packet fragments into that 504-byte buffer inside the driver's heap-allocated state structure:
CopiedLen = 0;
IcmpError = (UINT8 *)&Mode->IcmpError;
for (Index = 0; Index < RxData->FragmentCount; Index++) {
CopiedLen += RxData->FragmentTable[Index].FragmentLength;
if (CopiedLen <= sizeof (EFI_PXE_BASE_CODE_ICMP_ERROR)) {
CopyMem (
IcmpError,
RxData->FragmentTable[Index].FragmentBuffer,
RxData->FragmentTable[Index].FragmentLength
);
} else {
CopyMem (
IcmpError,
RxData->FragmentTable[Index].FragmentBuffer,
// Bug 1 (CWE-131 / CWE-787): copies excess instead of space left
CopiedLen - sizeof (EFI_PXE_BASE_CODE_ICMP_ERROR)
);
}
// Bug 2 (CWE-122): advances by running total, not fragment length
IcmpError += CopiedLen;
}
Two distinct bounds bugs sit inside this loop:
-
Copying the excess instead of the remaining space (CWE-131 / CWE-787): When
CopiedLenexceedssizeof(EFI_PXE_BASE_CODE_ICMP_ERROR(504 bytes), theelsebranch computesCopiedLen - 504instead of clamping to the space left in the buffer. Send a single, unfragmented 1,400-byte ICMP error payload and the driver copies1,400 - 504 = 896attacker-controlled bytes into that 504-byte buffer, overflowing 392 bytes straight into adjacent fields on the firmware heap. -
Advancing the pointer by the running total (CWE-122): At the bottom of each iteration,
IcmpError += CopiedLenadvances the destination pointer by the cumulative byte count across all fragments seen so far rather than the length of the current fragment, walking quadratically past the end of the buffer on multi-fragment packets.
Sitting 840 bytes past the start of that buffer inside the same heap structure are the driver's active timer and packet-completion event pointers. Immediately after overwriting its own receive event pointer, the handler re-arms the listener for the next packet. When that corrupted event fires on the next packet or timer tick, the UEFI core checks a 4-byte signature on a forged event structure planted inside the packet buffer itself and jumps straight to an attacker-supplied function pointer. Pre-boot UEFI firmware runs at full hardware privilege (Ring 0 on x86, EL2 on ARM) with flat, identity-mapped memory and no Address Space Layout Randomization (ASLR), making heap layouts deterministic for any given firmware build.
2. Layer-3 routability and running beneath UEFI Secure Boot
PXE starts with a link-local DHCP broadcast, so it is easy to assume an attacker must sit on the same Layer-2 VLAN to reach a booting host. That holds true only until DHCP finishes. As soon as the host receives an IP address from DHCP and begins pulling its boot image over TFTP, the PXE driver listens for unicast ICMP errors at Layer 3. Standard routers forward unicast ICMP Destination Unreachable and Packet Too Big messages across subnets because Path MTU Discovery depends on them. Provided the ICMP error payload starts with a plausible quoted inner IP and UDP header matching the booting client's IP address, the UEFI IP stack accepts the packet across routed hops during the multi-second TFTP download window, which is why the upstream TianoCore advisory scores the flaw as network-reachable (AV:N) rather than adjacent-network-only.

In datacenters and enterprise fleets, PXE provisioning is routinely paired with factory-enforced UEFI Secure Boot under the assumption that cryptographic signature checks on the downloaded bootloader neutralize network tampering. UEFI Secure Boot verifies binaries loaded by pre-boot firmware, but it cannot protect against memory corruption inside that firmware itself. Secure Boot is enforced by internal authentication hooks whose function-pointer tables sit in writable RAM alongside the network stack. In our proof of concept, under 80 bytes of x86-64 shellcode repaired the overwritten heap pointers so the network stack would not crash on teardown, patched those in-memory authentication hooks to return success unconditionally, and handed control cleanly back to the boot manager. With Secure Boot still enabled, the firmware booted an unsigned OS image without complaint.
From Ring 0 before boot services exit, an attacker does not need direct SPI flash write access on the first packet to persist. Code execution there is enough to hook Trusted Platform Module (TPM) measurement protocols so a modified kernel boots with clean PCR hashes, swap an older vulnerable-but-signed bootloader onto the local EFI System Partition, or stage a crafted NVRAM variable across a warm reset to target pre-lock System Management Mode (SMM) bugs.
Operational exposure and zero-downtime PXE defense
While the vulnerable PXE driver ships inside most UEFI firmware images, which explains why binary scans look alarming on paper, actual exploitability is tied strictly to how a machine boots. The vulnerable driver runs only during pre-boot, opening its ICMP listener exclusively while performing a PXE network boot. Once an operating system or hypervisor takes over and exits UEFI boot services, the pre-boot network stack is torn down and the vulnerable code is inert.
Across fleet environments, real-world exposure breaks down into three tiers:
-
Not exposed (local-disk boot, HTTP Boot, or LinuxBoot): Servers, workstations, and virtual machines configured to boot from local NVMe or SSD storage with PXE disabled (or ordered behind healthy local media) never open the vulnerable listener. Fleets that use UEFI HTTP(S) Boot, which follows a separate code path, or LinuxBoot are likewise unaffected.
-
Conditionally exposed (boot-order fallback and re-imaging windows): Machines that boot from local disk day-to-day while leaving PXE enabled lower in the boot order become reachable during bare-metal provisioning, scheduled re-imaging, or unplanned boot fall-through if a primary drive fails or is wiped.
-
Directly exposed (PXE provisioning and diskless environments): Bare-metal infrastructure, HPC clusters, and enterprise data centers that provision or recycle hosts via automated PXE boot, along with diskless workstation fleets in universities, labs, hospitals, and retail environments that boot over the network on every power cycle.
If a machine never enters PXE, PXECUTE cannot reach it. Where PXE cannot be turned off immediately, router and switch ACLs in front of provisioning subnets are the fastest zero-downtime mitigation while waiting on vendor BIOS updates, provided they avoid two traps: blocking all ICMP errors (which breaks Path MTU Discovery and stalls large boot images) or filtering only oversized ICMPv4 Type 3 packets. The IPv4 PXE handler accepts ICMP types 3, 4, 5, 11, and 12, while the IPv6 handler accepts ICMPv6 types 1, 2, 3, and 4. In addition, IP fragmentation feeds multiple smaller fragments into the quadratic pointer advance, bypassing simple stateless per-packet length checks.
| Mitigation layer | Recommended action | Coverage notes |
| Provisioning router / switch ACLs | Drop inbound ICMPv4 types 3, 4, 5, 11, 12 and ICMPv6 types 1, 2, 3, 4 exceeding 500 bytes, and drop IP-fragmented ICMP/ICMPv6 packets toward PXE subnets. | Immediate zero-downtime protection against routed and cross-rack attacks without breaking normal PMTUD or PXE DHCP/TFTP. |
| Boot architecture | Disable PXE boot where unused, place local disk ahead of PXE in the boot order, or migrate network provisioning to UEFI HTTP(S) Boot. | Removes the vulnerable PXE listener from normal boot paths. |
| Firmware remediation | Apply vendor BIOS updates incorporating TianoCore PR #13302. | Permanent fix; clamps fragment copies to remaining buffer capacity and clears stale error state. |
Firmware teams maintaining older pre-2018 EDK II forks should check both NetworkPkg and the legacy PXE driver copy under MdeModulePkg, which carried the original 2008 IPv4 bug.
When three teams find the same bug: Scaling firmware reviews without "AI bug slop"
How does a vulnerability survive 18 years of production use, multiple code cleanups, fuzzing harnesses, and a dedicated third-party audit of the UEFI network stack, only for researchers at Google, Anthropic, and a major silicon vendor to all uncover it independently within four months?
Pre-boot wire and media parsers are historically some of the highest-exposure code in system firmware. Network stacks, disk partition and filesystem drivers, console handlers, and configuration parsers all ingest untrusted external input in memory-unsafe C before the operating system boots. Today, general-purpose models can flag localized arithmetic bugs like PXECUTE during a straightforward code review pass, without specialized fuzzing infrastructure or custom static analyzers.
At Google, PXECUTE surfaced in May 2026 while benchmarking an internal, Gemini-powered multi-stage agentic pipeline built to review firmware repositories end to end. Finding a broken bounds check in one file is easy; running that across a full firmware tree without burying engineers in false positives is the hard part. Our pipeline models firmware lifecycles and pairs consensus across Gemini Pro and Flash variants with an adversarial "devil's advocate" pass, deduplication, and automated reachability checks before an engineer ever sees a finding.
Across the industry, from Project Glasswing to Google's Equilibrium effort and open-source harnesses like Google Mantis, generating candidate bug leads in legacy C firmware now costs pennies. Proving whether a candidate is genuinely reachable across firmware boot phases, building deterministic full-system reproductions, and validating fixes without regressing platform boot still takes careful domain engineering.
Open-source maintainers (especially on foundational yet under-resourced subsystems like EDK II's network package, which has lacked a listed maintainer since 2023) are increasingly buried under unverified, hallucinated LLM bug reports from CVE chasers. Flooding volunteer maintainers with raw model output is noise, not security research. Using AI responsibly means filtering aggressively, proving real-world impact, and showing up with tested patches and unit tests, as both discovery teams worked to do here and as Michael Kinney cemented with GoogleTest coverage in PR #13302.
Supply-chain relays, compressed embargoes, and default attack surface
In the UEFI ecosystem, fixes travel down a multi-hop relay: upstream TianoCore EDK II feeds silicon vendor reference firmware and independent BIOS vendors, which in turn feed server and client OEMs and ODMs before signed firmware updates reach fleet operators. Rolling out a faulty firmware image at scale can brick remote machines beyond out-of-band recovery, and nobody wants to turn a rushed security patch into a self-inflicted outage. Vendors guard their board qualification cycles for good reason, which is why the industry historically defaulted to 6-to-12-month embargoes tied to semi-annual release trains.
In 2026, holding a 9-month secret on a localized bug in public C code is no longer viable. When multiple good-faith teams converge on the same flaw in a single summer, defenders have to assume well-resourced adversaries can find it just as quickly. Even with disciplined coordination through Akrites, the Linux Foundation's cross-industry vulnerability consortium, keeping dozens of downstream organizations synchronized in secret for months is inherently fragile, as demonstrated here when a downstream developer inadvertently opened a normal public pull request (PR #13200) instead of using a private advisory fork, ending the embargo immediately.
In September 2026, TianoCore opened RFC PR #47 (AI-Discovered Security Vulnerability Reporting Policy), drawing on precedents from the Linux kernel security policy and the Open Device Partnership. The RFC observes that vulnerabilities easily found in public EDK II code with a one- or two-sentence LLM prompt for a few dollars of compute cannot realistically be treated as secret, and proposes handling them as effectively public upon confirmation rather than holding 60-plus-day embargoes. At the same time, downstream vendors on that thread raised a real operational constraint: even for a 15-line patch, shipping fleet-wide firmware updates is bottlenecked by per-SKU signing, qualification pipelines, rollout bandwidth, and disruptive host reboots.
Legacy coordinated disclosure ceremony also taxes good-faith engineers into inaction while attackers operate with zero process overhead. Most firmware engineers are not chasing CVEs; when they spot broken bounds math or brittle state handling in legacy C, they just want to fix the code. Yet when landing a 10-line defensive fix requires building a full-system exploit reproduction, clearing formal advisory queues, and trading GPG-encrypted emails across dozens of organizations for months, the process penalizes proactive hardening. When cleaning up legacy parsers means signing up for one multi-month embargo cycle after another, engineers stop doing broad hardening sweeps.
Closing that gap comes down to three practical shifts:
-
Separate proactive code hardening from heavyweight embargo theater: Fixing an objectively broken bounds check with a deterministic unit test should not require a weaponized Ring-0 exploit or a six-month secret coordination cycle. Following the Linux kernel model and TianoCore's proposed policy, routine defensive fixes backed by unit tests need a fast, low-friction path into the mainline.
-
Move cross-industry trust groups from GPG email chains to real-time engineering channels: Consortia like Akrites are the right foundation, and the next step is binding upstream maintainers, silicon vendors, IBVs, OEMs, and cloud operators into an always-on, pre-authenticated workspace where teams can share assessments, hardening batches, and downstream mitigations immediately rather than routing encrypted messages through slow per-incident relays.
-
Shrink the default pre-boot attack surface and pool vendor hardening practices: Board qualification and host reboots will always pace fleet reflashing, so defenders cannot bet fleet safety on long embargoes holding. Disabling unused network boot protocols, filesystems, and legacy parsers by default keeps bugs like PXECUTE unreachable, while sharing common downstream hardening patterns and pairing upstream fixes with immediate network-layer mitigations lets vendors and operators defend fleets together rather than in silos.
Hardening C firmware today while building memory-safe replacements
Automated auditing of C firmware is necessary triage, and we will find plenty more bugs like CVE-2026-97631 over the next couple of years. Better scanners, shorter embargoes, network ACLs, and tighter boot defaults all buy time, not immunity.
Reassembling packet fragments into a fixed-size buffer is ordinary systems code. An unused 2008 specification helper ended up compromising Ring 0 and bypassing Secure Boot because C makes every developer track raw pointers, running byte totals, and buffer capacities by hand, where one inverted bounds check hands over the machine.
Rust's integration into the Linux kernel has already shown that memory-safe systems languages work in bare-metal, zero-overhead environments. In safe Rust, copying packet fragments into a fixed-size byte slice uses bounds-checked operations, making PXECUTE unrepresentable without explicit unsafe blocks that stand out in code review.
Rust will not solve every firmware problem. Logic bugs, broken state machines, bad trust boundaries between boot phases, and mishandled secrets still require sound architecture and ongoing review. Still, eliminating spatial and temporal memory corruption removes the most common path to pre-boot RCE. Efforts like Microsoft's Project Mu / Patina and oreboot show how parts of the boot stack can move in that direction, even though millions of lines of C across EDK II, U-Boot, Trusted Firmware-A (TF-A), and silicon initialization will keep booting fleets for years. Practically, we have to do both across the firmware ecosystem: use LLM-assisted auditing, tighter boot defaults, and faster coordination to harden the C codebases shipping today, while rewriting the highest-exposure wire and media parsers in Rust so we stop shipping the same bugs tomorrow.
Acknowledgments
Many thanks to Alex Matrosov and the team at Anthropic, who independently discovered this issue, mapped its binary footprint across shipped firmware images, and partnered closely with us throughout disclosure; to Michael Kinney (Intel), John Mathews, Brian Mullen (AMI), Bruce Monroe (AMD), and the TianoCore community for turning around the upstream fix, unit tests, and advisory once the pull request became public; to Christopher Robinson, Francis Perron, and the Akrites (Linux Foundation) team for coordinating across the hardware ecosystem; and to our colleagues across Google (Eric Brewer, Andrés Lagar-Cavilla, Larry Zektser, Alex Yursha, and Google 3PVD) for their support, feedback, and coordination throughout this effort.
