A ping of death is a malformed, fragmented IPv4 ICMP Echo Request whose reassembled size exceeds the 65,535 byte IPv4 maximum, so a target whose reassembly code trusts that length overruns a buffer and goes down. The bug is a missing length check in the network stack, and ICMP is only the delivery vehicle.
That framing changes what you should do about it. Blocking echo requests at the edge feels like a fix and usually isn't. On a modern kernel the crash path is already closed, and the same filter that stops the ping also stops the ICMP "fragmentation needed" and "packet too big" messages that keep Path MTU Discovery working. You end up trading a legacy exploit for the black-hole class of connectivity failure that shows up months later as intermittent application timeouts nobody can explain.
The practical answers are narrower: validate fragment sets, bound reassembly memory, and treat patch status as the primary control. Below is how the original bug worked, which systems still carry the failure mode, and the commands that separate a fragment problem from everything else that looks like one.
Table of Contents
- What a Ping of Death Is and Why It Worked
- The Byte Budget Behind the 65,535 Byte Limit
- Which Systems Still Fail and How to Verify Patches
- How to Test Path MTU Without Sending Malformed Packets
- Recognizing Fragment Abuse in Logs and Telemetry
- Filtering ICMP and Fragments Without Breaking Path MTU Discovery
- When to Escalate Fragment Problems
What a Ping of Death Is and Why It Worked
The clearest way to hold the mechanism in your head is a shipping analogy. A large consignment gets split into numbered boxes so each one fits on the truck, and the receiver stacks them by the labels, expecting the pile to match the declared shipment. A box whose label claims a position past the end of the shipment breaks the unpacking table, and that's the whole exploit: bad metadata on a legitimate-looking part.
Fixing it means looking at the reassembly path rather than at the ping binary.

Bad labels, not bad packets
IPv4 splits any datagram larger than the local MTU into fragments, each carrying an offset and a length in its header. The destination rebuilds the original from those fields. When the attacker sets offsets and lengths that, read together, describe a final packet bigger than the protocol permits, a stack that trusts the metadata copies the payload into a buffer sized for the declared total and writes past the end.
The exploit became widely known in 1996, and the IETF's account of the exploit documents both the year and the reach of the exposure: Windows 95, Windows NT, early Linux releases, Solaris x86, Macintosh systems, and some networking equipment of that era all failed to validate the reassembled length correctly. The same document records that a contemporaneous security page dates the public "Ping O' Death" writeup to October 21, 1996.
The reason it landed so hard is the economics. Volumetric DDoS needs sustained traffic and bandwidth to burn. This needed one correctly malformed request, delivered once, and the IETF account notes exactly that: a single specially constructed request could disable a target rather than requiring a flood.
A ping of death never needed volume. One malformed fragment set, sent once, was enough to take a host off the network.
The outcomes on vulnerable systems were memory corruption, kernel crashes, lockups, and forced reboots. Servers running production workloads came back up on their own or didn't, and the operator had no traffic graph to explain it, because there was no traffic. That's what makes the class of attack memorable: the failure looked like a hardware fault, not an intrusion.
The durable lesson in that IETF account is the one worth carrying into current designs: protocol-compliant fragmentation is not safe, and a mechanism the standard permits becomes a denial-of-service vector when the operating system doesn't enforce a maximum on the reassembled result.
The Byte Budget Behind the 65,535 Byte Limit
The arithmetic is short enough to do by hand, and doing it once makes every fragment rule afterwards obvious.
| Component | Size (bytes) | Notes |
|---|---|---|
| IPv4 Total Length field maximum | 65,535 | 16-bit field that includes the IP header |
| IPv4 header without options | 20 | Minimum header size |
| Maximum IPv4 payload | 65,515 | 65,535 minus the 20 byte header |
| ICMP header | 8 | Type, code, checksum, identifier and sequence |
| Largest ICMP echo data in one datagram | 65,507 | 65,515 minus the 8 byte ICMP header |
| Standard Ethernet MTU | 1,500 | Packets larger than this are fragmented |
The IPv4 specification, RFC 791 sets the ceiling with a 16-bit Total Length field that counts the header in its total, which is why the payload figure is slightly under the headline number. The ICMP header then eats 8 more bytes and leaves 65,507 for echo data in a single datagram.
Payload size is not wire size
This is the confusion that trips people during diagnosis. When you ask ping for 1,472 bytes, you're asking for 1,472 bytes of ICMP data. Add the 8 byte ICMP header and the 20 byte IPv4 header and the frame on the wire is 1,500 bytes, which is exactly a standard Ethernet MTU. Two different numbers, one packet, and only the second one matters to the link.
The check that should exist
Correct reassembly validation compares each fragment's offset plus its payload length against the protocol ceiling before any buffer is allocated or copied. A fragment set whose implied total exceeds the maximum is malformed by definition and gets discarded. That's the entire defense at the stack level, and it's why the modern failure mode isn't an overflow but a wrongly configured edge device that drops fragments it could safely reassemble.
Which Systems Still Fail and How to Verify Patches
The uncomfortable answer is that the classic 1996 overflow is largely history, because current stacks validate reconstructed length, and the assumption that follows from that isn't safe. Patch status, not ICMP policy, is the control that matters, and the record shows the same class of failure reappearing in IPv6 handling at regular intervals.
| Flaw | Affected stack | Status and fix |
|---|---|---|
| Classic IPv4 reassembly overflow, 1996 | Windows 95, Windows NT, early Linux, Solaris x86, Macintosh systems and some networking equipment | Closed in current stacks that validate reconstructed length |
| CVE-2013-3183 | Windows IPv6 ICMPv6 processing | Fixed by Microsoft security update MS13-065 |
| CVE-2020-16898 | Windows 10 and Windows Server 2019 IPv6 Router Advertisement handling | Fixed in the October 2020 Patch Tuesday release |
| Legacy embedded firmware and appliances | IPv4 fragment handling | Check the vendor advisory for your exact model and firmware |
The documented history of the exploit is instructive on the second and third rows. Microsoft's 2013 IPv6 issue, CVE-2013-3183, came from malformed ICMPv6 processing and went out in security update MS13-065. The 2020 flaw, CVE-2020-16898, hit Windows 10 and Windows Server 2019 through malformed IPv6 Router Advertisement handling and was fixed in the October 2020 Patch Tuesday release, with remote denial of service as the practical outcome and code execution under specified conditions.
Notice what those two have in common: neither is an echo request. Both live in the ICMPv6 control path, which is machinery you need for the network to function.
Where the exposure actually sits
- Unpatched firmware: appliances and embedded controllers in the path rarely get the same patch cadence as servers, and their fragment handling was often written years ago.
- Middleboxes and virtual firewalls: a device that reassembles differently from the endpoint becomes an evasion surface in itself.
- Custom packet processing: anything you wrote yourself, or a DPDK or eBPF path you inherited, needs the offset-plus-length check verified rather than assumed.
The patch check to run this week
Inventory OS builds and firmware across hosts, hypervisors and edge firewalls, then match each against the vendor advisory for the exact version. Include hosts where IPv6 is disabled, because the disabled state is often a temporary fallback rather than a permanent decision, and a re-enable later puts an unpatched stack back on the wire.
Then watch for the symptom rather than the cause. Repeated kernel crashes, lockups, or fragment and ICMPv6 parsing errors in kernel logs are the signals that something in the reassembly or control path is unhappy. Disabling IPv6 entirely is a fallback for networks that don't use it, never a substitute for patching.
How to Test Path MTU Without Sending Malformed Packets
You can verify MTU behavior with valid, standards-compliant probes, and those probes are the opposite of a malformed fragment set. The test packet stays inside every limit and declines to fragment.
- Confirm the local interface MTU. On a standard Ethernet port the output carries
mtu 1500.
ip link show eth0
- Send the largest payload that fits without fragmenting, using Don't Fragment.
ping -M do -s 1472 192.0.2.1
- Read the success case. A working path returns replies rather than an error.
64 bytes from 192.0.2.1: icmp_seq=1 ttl=64 time=0.412 ms
Recognize the two failure strings. A local MTU refusal shows up as
ping: local error: message too long, while a remote device reporting an oversized frame returns a "Frag needed" response. Lower the payload in steps of 8 bytes until the probe passes, then compare the passing size against the table below.Repeat the same test from Windows.
ping -f -l 1472 192.0.2.1sets Don't Fragment and supplies the payload length in one flag pair.Record the largest passing size per path and change MSS or path MTU only on the segments that fail. Blanket MTU reduction to the lowest common denominator costs throughput everywhere to fix a problem that lives in one hop.
| Path | MTU (bytes) | ping -s payload (IPv4, DF set) |
|---|---|---|
| Standard Ethernet | 1500 | 1472 |
The payload column is the MTU minus 28 bytes of IPv4 and ICMP headers. A VXLAN overlay loses 50 bytes to the outer headers and the encapsulated frame, which is why overlay traffic that passes a 1,500 byte test fails once encapsulation is added.
If you're new to the tool itself, the ping commands reference for Linux covers the flag families and output fields in more depth.
None of this recreates a ping of death. Each probe is valid, each stays under the ceiling, and the result tells you whether your path handles size correctly.
Recognizing Fragment Abuse in Logs and Telemetry
Fragment abuse is usually low volume, so packets per second tells you nothing. A flood dashboard shows a flat line while the host is dropping fragments and applications are timing out. The stack counters are where the signal lives.
nstat -az | grep -i reasm
You're looking for IpReasmReqds, IpReasmOKs, IpReasmFails and IpReasmTimeout. A rising failure or timeout count against flat ingress traffic is the trigger to investigate, and it means fragments are arriving that either never complete or cannot be validated.
To see the traffic itself, capture fragments rather than guessing:
tcpdump -nn -i eth0 '(ip[6:2] & 0x3fff) != 0'
That expression masks out the flags in the fragment field and matches any packet with a nonzero offset or the More Fragments bit set. Parentheses matter here; the bare form is easy to misread when you paste it into a script, and a wrong filter shows you a clean capture that proves nothing.
Standards work keeps flagging the same territory. The IETF's analysis of fragment security concerns treats overlapping fragments, atomic fragments and fragmented IPv6 traffic as security and interoperability concerns, including cases where a device reassembles one way and a firewall validates another.
The attribution trap
An upstream firewall that drops fragments produces application timeouts that look exactly like a server fault or a DNS problem. The customer sees a slow checkout page; the host shows healthy CPU and no errors. Compare edge telemetry against host telemetry before changing anything, preserve the capture first, and only then adjust a rule.
On any shared host, an intermittent timeout with flat traffic, no CPU spike and no application error is a path problem until proven otherwise. A twenty second capture settles it faster than an hour in the application logs.
Track four things in your monitoring: overlapping or duplicate fragment ranges, impossible total lengths, fragment chains that expire without completing, and ICMPv6 Packet Too Big behavior on the path. If you need a starting point for where these signals sit alongside other attack telemetry, the DDoS attack detection walkthrough covers the counters and baselines that make a quiet anomaly visible.
Filtering ICMP and Fragments Without Breaking Path MTU Discovery
Blanket ICMP denial is the wrong instrument because it breaks the protocol's own repair mechanism. RFC 8201 defines Path MTU Discovery for IPv6, and it depends on Packet Too Big messages reaching the sender. Filter narrowly, in layers, and keep the control messages flowing.
Start by rate-limiting echo rather than removing it:
iptables -A INPUT -p icmp --icmp-type echo-request -m limit --limit 5/second --limit-burst 10 -j ACCEPT
iptables -A INPUT -p icmp --icmp-type echo-request -j DROP
The second rule must sit below the first, otherwise the limit never applies. Monitoring and diagnostics keep working, and a flood gets clamped to a rate the host can absorb.
Then protect IPv6 discovery explicitly:
ip6tables -A INPUT -p icmpv6 --icmpv6-type packet-too-big -j ACCEPT

Reassembly itself is bounded by kernel settings rather than by rules, and defaults vary by kernel version, so read them before tuning.
| Setting | What it bounds |
|---|---|
| net.ipv4.ipfrag_high_thresh | Ceiling on memory held by the reassembly queue |
| net.ipv4.ipfrag_low_thresh | Low-water mark where the kernel resumes accepting fragments |
| net.ipv4.ipfrag_time | Seconds an incomplete fragment chain stays queued |
Read them with sysctl -n net.ipv4.ipfrag_high_thresh net.ipv4.ipfrag_low_thresh net.ipv4.ipfrag_time and check the kernel ip-sysctl documentation for the semantics on your release before changing anything. Low thresholds drop legitimate fragments; high ones let a malformed chain hold memory. Set both deliberately.
For a visual walkthrough of the filter order and how the counters confirm it, this covers the same sequence:
Save state before you touch the rules
iptables-save > /root/fw-before.rules
sysctl -n net.ipv4.ipfrag_high_thresh net.ipv4.ipfrag_low_thresh net.ipv4.ipfrag_time > /root/ipfrag-before.txt
Check which backend you're driving with iptables -V. On Debian 12 and Ubuntu 24.04 it reports nf_tables, meaning the iptables command is the nft-backed compatibility layer and your rules also appear under nft list ruleset. Mixing the two toolsets on one host is how rules disappear after a reboot.
Persist on Debian with netfilter-persistent save, and confirm the restored order with iptables -L INPUT -n -v --line-numbers. Rule order is the whole difference between a limiter and a black hole.
Acceptance test and rollback
Pass only when oversized reassembled lengths, inconsistent offsets and expired fragment queues are dropped without kernel errors, without service interruption and without unbounded memory growth. If any of that fails, restore the saved state:
iptables-restore < /root/fw-before.rules
sysctl -w net.ipv4.ipfrag_high_thresh=<recorded value>
The Linux firewall configuration reference covers persistence paths and backend differences across distributions if the rules don't survive the reboot.
When to Escalate Fragment Problems
Escalate when fragment failures persist after the filters and MTU work are in place. The triggers are specific: reassembly failures or timeouts still climbing on flat traffic after the acceptance test passes, Frag needed or Packet Too Big messages missing on a path that fails the MTU probe, a kernel crash or lockup on a host you've confirmed is patched, or packet loss that vanishes when the upstream edge is bypassed.
Attach the nstat output from before and after, the capture file, the saved rule set, your MTU table results, and the exact OS build and firmware version. A crash ticket also needs the crash log from the same window. Teams that would rather hand the patch inventory and firewall review to someone else can start with fully managed infrastructure services.
ARPHost, LLC runs colocation, bare metal, VPS, Proxmox private clouds and managed IT from Tampa, Florida, and every service ships with layered DDoS protection, firewalls and 24/7 monitoring. If fragment handling or ICMPv6 patching on your estate needs a second set of eyes, our engineers can review the edge rules, the reassembly limits and the firmware inventory against your vendor advisories. Visit ARPHost, LLC and open a ticket with your capture files and rule set attached.

Leave a Reply
You must be logged in to post a comment.