Back

Oxide Security Advisory 20261009-2: Fragmented IP packets misprocessed by the Oxide Packet Transformation Engine (OPTE)

Specially crafted fragmented packets may be erroneously delivered to guests and external-facing control plane services.

A bug in the parser logic of the Oxide Packet Transformation Engine (OPTE) causes data bytes to be interpreted as source and destination ports for IP datagram fragments. These packets are then assigned to an incorrect flow for firewall processing and transformation. An attacker can cause increased memory usage at a target guest or service which attempts to reassemble these fragments.

Table 1. Revision History
RevisionDate (YYYYMMDD)Changes

1.0

20261009

Initial Release

Impacted Products

Release lineAffectedFixed in

23.x

Not affected

N/A (fixed in 23.0)

22.x and earlier

22.1 and earlier

22.2

Impact

This vulnerability leads to additional memory usage in the guest OS, the host OS, or both. The recipient temporarily holds onto fragments to attempt reassembly, which cannot be completed and are eventually dropped. Crafted packets may create additional flow table entries in the host OS, causing further memory use and minor network throughput reduction.

The flaw may be used by any remote endpoint with network connectivity to the rack.

Action Required

Update to Oxide software version 23.0 or 22.2 following our update procedure.

Mitigations

Apply ACLs on upstream network switches to deny all fragmented IPv4 and IPv6 traffic directed to the rack.

Technical Background

OPTE is a kernel module which processes all network packets moving in and out of virtual machines, and provides network isolation, stateful firewalling, and network address translation. OPTE determines how a packet should be transformed by parsing out its protocol layers and extracting a flow 5-tuple, which comprises a packet’s source and destination IP addresses, its layer 4 protocol, and its source and destination layer 4 ports.

When a network packet is too large to be carried along a link, an IP datagram may be fragmented into a group of smaller packets. Each fragment’s IP header contains an identification number, offset, and flags for the recipient to assemble any such packets. When fragmentation occurs, the first packet typically contains all protocol headers (Ethernet, IP, and layer 4) and some portion of the inner payload. All subsequent fragments omit the layer 4 header and carry Ethernet, IP, and further data bytes from the source packet. As a result, the flow 5-tuple is only directly carried on the first fragment.

OPTE was not designed to handle fragmented packets. As a result, non-first fragments have their packet bodies interpreted as though they were layer 4 headers, and payload data bytes are used in place of source and destination ports. This leads to inconsistent traffic processing:

  • Initial fragments of UDP packets are dropped by OPTE during parsing. The UDP protocol contains a mandatory length field, and the packet is rejected because the reported length is longer than the packet body itself.

  • Initial fragments of TCP packets are processed normally. They may be rejected during parsing if the fragment body does not contain all TCP options in the initial header.

  • Subsequent fragments of either protocol will be processed by OPTE, if any bytes treated as length values are less than or equal to the length of the packet body.

    • The packet will be assigned a 5-tuple whose ports are derived from the packet body, which may cause the firewall layer to erroneously permit or deny the packet.

    • If the derived ports match those of an existing source NAT flow, then packet bytes corresponding to the port and checksum offsets will be corrupted.

In ordinary operation, the receiving TCP/IP stack may lose fragments and be unable to reassemble the original packet. Corrupted fragments will result in a checksum mismatch against the value reported in the initial fragment, and will be discarded. UDP fragmented traffic can never be reassembled, as the first fragment is always dropped.

Crafted packets may temporarily hold additional flow table space within OPTE. The recipient’s TCP/IP stack may hold onto these packets until some timeout occurs, consuming memory until the reassembly window expires.

The patch fixing this issue explicitly rejects all fragmented IP packets within OPTE.