# Critical EDK II flaw lets a single ICMP packet run code before Secure Boot

CVE-2026-97631, a buffer overflow in the EDK II PXE network-boot driver, lets an unauthenticated remote attacker execute code at ring 0 during boot. No patched release is available yet.

Source: https://junglewise.ai/news/critical-edk-ii-flaw-lets-a-single-icmp-packet-run-code-before-secure-boot  
Byline: Junglewise News Desk, https://junglewise.ai/news  
Topic: Vulnerabilities and exploitation  
Published: 1 December 2026  
Reading time: 5 min

![Close-up of a blue Ethernet cable plugged into a network tester device](https://images.unsplash.com/photo-1729549223893-b340db51e577?ixid=M3w0NDU4NjF8MHwxfHNlYXJjaHwyfHxldGhlcm5ldCUyMGNhYmxlJTIwY2xvc2V1cHxlbnwxfDB8fHwxNzk2MTQ2NDM0fDA&ixlib=rb-4.1.0&w=1600&q=80&fm=jpg&fit=crop)

Picture: Photo by [Gavin Allanwood](https://unsplash.com/@fp4?utm_source=junglewise&utm_medium=referral) on [Unsplash](https://unsplash.com/?utm_source=junglewise&utm_medium=referral)

![Close-up of an Ethernet cable with RJ45 connector on a dark surface](https://images.unsplash.com/photo-1615309662472-4ca77a77a189?ixid=M3w0NDU4NjF8MHwxfHNlYXJjaHwxfHxldGhlcm5ldCUyMGNhYmxlJTIwY2xvc2V1cHxlbnwxfDB8fHwxNzk2MTQ2NDM0fDA&ixlib=rb-4.1.0&w=1600&q=80&fm=jpg&fit=crop)

Picture: Photo by [Compagnons](https://unsplash.com/@sigmund?utm_source=junglewise&utm_medium=referral) on [Unsplash](https://unsplash.com/?utm_source=junglewise&utm_medium=referral)

![Close-up of a green circuit board with a serial port connector and heat sink](https://images.unsplash.com/photo-1579803168178-4706710f722b?ixid=M3w0NDU4NjF8MHwxfHNlYXJjaHwzfHxzZXJ2ZXIlMjBtb3RoZXJib2FyZCUyMG5ldHdvcmslMjBjYXJkfGVufDF8MHx8fDE3OTYxNDY0MDh8MA&ixlib=rb-4.1.0&w=1600&q=80&fm=jpg&fit=crop)

Picture: Photo by [Florian Olivo](https://unsplash.com/@florianolv?utm_source=junglewise&utm_medium=referral) on [Unsplash](https://unsplash.com/?utm_source=junglewise&utm_medium=referral)

A buffer overflow in the network-boot code used in many computers' UEFI firmware allows an attacker who can send a single packet to a machine while it boots to run code before the operating system, and before Secure Boot has verified anything. The flaw, [CVE-2026-97631](/threats/cve-2026-97631-edk2-contains-a-vulnerability-in-bios-where-a-user-may-cause-out), sits in EDK II, the open source reference implementation of UEFI firmware that hardware and server vendors build their own firmware from, and specifically in its PXE Base Code driver (`NetworkPkg/UefiPxeBcDxe`), the component that fetches a boot image over the network.

The attacker needs no credentials and no foothold. According to the [advisory published on GitHub](https://github.com/tianocore/edk2/security/advisories/GHSA-99cj-7hg9-mp4m) by the EDK II project, it is enough to deliver a unicast ICMP error message addressed to the booting client's IP address, from any distance on the network, during the window in which the machine is performing a PXE boot. In the milder case the machine's firmware trips a CPU exception and the boot hangs, which denies provisioning and recovery. In the worse case, an attacker who knows the target's firmware build can execute their own bytes at ring 0 during the DXE phase, the stage at which drivers are loaded, well before any operating system security control exists to object. The CVSS v4 base score is 9.5, rated critical.

Anything that network-boots is in scope: provisioning fleets, bare-metal servers rebuilt from the network, diskless workstations and recovery workflows that rely on PXE. Machines that boot from local disk and never start the PXE stack are not exposed through this path. No exploitation in the wild has been recorded.

There is no patched version. The fix is tracked as pull request #13302 in the EDK II project, and the advisory's own patched-versions field reads "Not patched currently". Because EDK II is reference code, even once that lands, each hardware vendor has to pick it up, build it into their firmware and ship it, which is historically the slowest stage of firmware remediation.

The bug was found by Alex Matrosov of Anthropic and Dan Holmes-Mitra of Google, who also supplied the recommended fix. "Thanks to Alex Matrosov (Anthropic) and Dan Holmes-Mitra (Google) for finding this issue and providing the recommended fix," the advisory states. The Hacker News has published two articles on the flaw, under headlines calling it [16 years old](https://thehackernews.com/2026/10/critical-16-year-old-uefi-flaw-can-run.html) in October and [18 years old](https://thehackernews.com/2026/12/google-and-anthropic-ai-found-18-year.html) in December; the content retrieved from both pages contained no substantive reporting beyond the headlines, so the precise age of the code is best treated as unsettled.

## What to do now

No firmware update is available for this yet, so the work is containment and inventory.

1. Identify which systems actually use PXE. Check for machines configured to attempt network boot, including those where PXE sits in the boot order as a fallback and only runs when a disk boot fails. Those fall back silently and are easy to miss in an asset list.
2. Disable PXE in firmware settings on any machine that does not need it, and remove network boot from the boot order where it is only there as a legacy default. This closes the exposure window entirely for those systems.
3. For fleets that must network-boot, isolate the provisioning network. Put PXE clients and their boot servers on a dedicated VLAN or segment with no route to general user networks or the internet, so that an attacker cannot deliver a unicast ICMP error message to a booting client in the first place.
4. Filter ICMP toward the provisioning segment. Both IPv4 and IPv6 handlers are affected, so block or tightly restrict ICMP and ICMPv6 error messages reaching PXE clients from outside the segment.
5. Keep the boot window short. The exposure lasts only as long as PXE is running, so avoid leaving machines parked at a network-boot prompt or retrying PXE indefinitely.
6. Treat an unexplained boot hang on a PXE client as worth investigating rather than as a flaky network. Deterministic corruption of the driver's private data causing a CPU exception in the DXE core is one of the documented outcomes.
7. Ask hardware and server vendors when they will ship firmware containing the EDK II fix, and track it per model. Reference code landing upstream is not the same as an update reaching a motherboard.

## Technical details

CVE-2026-97631 is tracked in the EDK II project as advisory GHSA-99cj-7hg9-mp4m, titled "Pre-boot RCE in EDK II PXE driver", [published on 22 October 2026](https://github.com/tianocore/edk2/security/advisories) by GitHub user jkmathews with critical severity. The vulnerability was present in the EDK II master branch as of 14 September 2026.

The defect is in the handling of ICMP error messages by the PXE Base Code driver. Incoming errors are copied into a fixed 504-byte field, `Mode.IcmpError`, with incorrect bounds checking. For messages longer than 504 bytes, the bytes are copied anyway, and the destination pointer is advanced by the cumulative length rather than the per-fragment length, producing out-of-bounds writes past the end of the buffer. Both the IPv4 and IPv6 paths are affected, in `PxeBcIcmpErrorDpcHandle` and `PxeBcIcmp6ErrorDpcHandle` respectively.

The weaknesses are classified as CWE-120 (buffer copy without checking input size), CWE-131 (incorrect buffer size calculation) and CWE-787 (out-of-bounds write).

Two impacts are described. The first is deterministic corruption of the driver's private data, which raises a CPU exception in the DXE core and hangs the boot, denying operating system provisioning and recovery. The second, requiring knowledge of the target firmware build, is for the attacker to plant a counterfeit event structure in the same packet so that `CoreSignalEvent()` dispatches attacker-supplied bytes during the DXE phase, at ring 0, ahead of Secure Boot verification and ahead of the operating system.

The CVSS v4 vector is `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`, giving a base score of 9.5. The attack complexity is low and no privileges or user interaction are required; the one brake on it is the attack requirement, namely that the target must be in its PXE boot window when the packet arrives.

The patch is pull request #13302. No fixed version is currently recorded, and no exploitation in the wild has been reported.

## On Junglewise Threat Intelligence

- [CVE-2026-97631: EDK2 buffer overflow in PXE driver pre-boot RCE](https://junglewise.ai/threats/cve-2026-97631-edk2-contains-a-vulnerability-in-bios-where-a-user-may-cause-out)

## Related articles

- [WhatsApp and Telegram push iPhone users to update over iOS browser exploits](https://junglewise.ai/news/whatsapp-and-telegram-push-iphone-users-to-update-over-ios-browser-exploits)
- [Ruby2Shell: Ruby patches seven memory bugs, five with RCE proof-of-concepts](https://junglewise.ai/news/ruby2shell-ruby-patches-seven-memory-bugs-five-with-rce-proof-of-concepts)
- [Attackers exploit critical WP Rocket flaw to run code on WordPress sites](https://junglewise.ai/news/attackers-exploit-critical-wp-rocket-flaw-to-run-code-on-wordpress-sites)
- [Anthropic publishes the lattice cryptography papers behind the RSA-2048 rumour](https://junglewise.ai/news/cryptographers-push-back-on-unverified-claim-that-an-ai-lab-broke-rsa-2048)
