Fragment Overlap Attacks: When Two Pieces Claim the Same Space
Two pieces of a network message arrive claiming the same space, but they contain different data. Which piece should the computer believe? A fragment overlap attack tries to turn that disagreement into a way around a security check or a failure in the receiving system.
A fragment overlap attack uses Internet Protocol (IP) fragments that cover some of the same positions within one packet. Conflicting data can matter when a security device and the destination interpret those fragments differently, or when software handles the unusual input incorrectly.
Reassembling those pieces doesn't automatically run a hidden program. The risk comes from how systems interpret and handle the data.
- Skip the install: pfSense Plus comes preloaded, so you can start writing rules right away.
- Get a firewall, router and VPN in one silent box that sips power.
- Keep receiving pfSense Plus updates for the life of the product.
One Packet, Several Pieces
IP carries data in packets. Each packet has a header, which holds control information used to handle it, as well as the data being carried.
A packet can be split into fragments to fit size limits along a network path. The receiving system performs reassembly, putting those fragments back into one packet. A fragment's offset tells the receiver where its data belongs within that original packet.
A downloaded file can span many packets, so the offset describes only a piece of one packet. TCP, short for Transmission Control Protocol, does a separate job: dividing an application's data stream into segments for transport. These operations belong to different network protocol layers.
Imagine two fragments claiming the same small stretch of a packet. The first supplies one set of bytes; the second supplies different bytes for those positions. A byte is a unit of data. Keeping the first version and keeping the second would produce different reconstructed packets.
Why Big Packets Get Chopped Up
Ordinary fragmentation can produce pieces that fit together without conflict. An overlap attack takes advantage of pieces that compete for the same positions.
The Firewall Approves a Different Packet
A firewall applies rules about which network traffic to allow. A network intrusion detection system, or NIDS, examines traffic for signs of an attack. Both can need an accurate view of what the destination will receive.
A historical overlap technique exploits a gap between an early decision and the final packet. A filter accepts an initial fragment, but later overlapping data changes the packet's transport header when the destination reassembles it. That header holds instructions for handling communication between programs. The destination then processes something different from what the first check allowed.
The IETF's review of IP fragmentation risks describes this filtering problem. It also explains how differing interpretations of fragments can let traffic evade a network monitor.
The older fragment-filtering analysis relies on a particular behavior: later data overwrites earlier data at the destination. Other implementations can handle overlaps differently, so this historical example applies only where its required behavior exists.
An overlap also differs from a tiny-fragment attack, which uses small fragment boundaries to keep important header information out of a filter's view. The techniques can be combined, as a later correction to the filtering guidance explains.
- Keep work, guest and smart-home gear apart with up to 32 VLANs on one small switch.
- Copy any port's traffic to your laptop with port mirroring and see what is on the wire.
- Set it up from a web page instead of learning a command line.
Reassembly Bugs and Memory Limits
This mismatch can allow evasion, meaning traffic escapes a security check. Whether it can harm the destination depends on what the receiving software does with it.
Separately, bugs in reassembly software have caused crashes. The IPv4 security assessment documents the complexity of reassembly and the implementation problems it has created.
Incomplete fragment sets take up memory while the system waits for missing pieces. If enough memory is tied up this way, legitimate work can suffer. This form of resource exhaustion can happen even without overlapping fragments.
For an attacker to run code, there must be an exploitable software flaw or some other vulnerable way for an application to process that data.
IDS or IPS: Watch the Traffic or Stop It?
IPv6 Has an Explicit Rejection Rule
IPv4 and IPv6 are different versions of Internet Protocol. They have different rules and histories for handling overlapping fragments.
Under the IPv6 specification, detecting overlapping fragments requires abandoning reassembly and discarding that packet's fragments. There is a specific allowance for exact duplicates: an implementation may identify a duplicate, discard that copy and retain the other fragments.
IPv4 has a history of differing overlap policies, and security products can check for this condition. For example, Cisco documents overlap checks in Firewall Threat Defense. Actual protection depends on the product, its configuration and the destination's behavior.
What Defenders Need to Check
Inspection should match the destination's way of reconstructing packets. Supported software and appropriate controls also help address known implementation problems.
Reassembly also needs limits. Cisco's fragment-handling guidance provides controls for fragment counts and reassembly timeouts: how much work can accumulate, and how long incomplete sets remain.
An overlap alert records a traffic condition worth investigating. Investigators still need to establish whether fragments were rejected, how the destination handled them and whether a service was affected. An attempted bypass and an actual impact on the host are different outcomes.
Blocking every fragment can disrupt legitimate applications. A policy has to account for the traffic users need as well as the traffic defenders want to reject.
Fragment Offset: Where the Pieces of a Packet Belong

Tiny Fragment Attacks: When a Filter Is Missing Part of the Header

What Does a Firewall Actually Protect You From?

QUOTE:
"Amateurs hack systems, professionals hack people."

