KernelScan.io

HIGH Introduced in 5.19

calipso BigTcp Wraparound

CVE-2026-99191

CVSS 7.5 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: calipso: keep BIG TCP payload_len in calipso_skbuff_setattr() calipso_skbuff_setattr() adjusts payload_len by the length of the option it inserts or resizes: payload = ntohs(ip6_hdr->payload_len); ip6_hdr->payload_len = htons(payload + len_delta); GRO can build BIG TCP packets larger than IPV6_MAXPLEN, and stores payload_len == 0 for them; ipv6_payload_len() then falls back to skb->len. For such a packet forwarded to a destination mapped to CALIPSO, the code above writes len_delta (or 65536 + len_delta when shrinking) into payload_len, and ipv6_payload_len() no longer falls back to skb->len. nf_tables, conntrack and sch_cake rely on it. The same arithmetic also wraps when a packet grows past IPV6_MAXPLEN, and a BIG TCP packet that shrinks below IPV6_MAXPLEN should get its real length back. Set payload_len from the skb length with ipv6_set_payload_len(), which stores 0 above IPV6_MAXPLEN and the real length otherwise, as ipv6_gro_complete() does. The network header was just reset to skb->data, so skb->len - sizeof(*ip6_hdr) is the payload length. Tested on one kernel (arm64, QEMU) with SELinux permissive, a minimal mdp-generated policy (network_peer_controls=1), "netlabelctl calipso add pass doi:16" and a NetLabel mapping of fd00:2::/64 to CALIPSO DOI 16. calipso_skbuff_setattr() was called through netlbl_skbuff_setattr() from a test-only debugfs hook (not part of this patch) adding a level-only label; payload_len after the call: case before fix after fix real length 1000, unlabeled 1016 1016 1016 70000 GSO, payload_len 0 16 0 70016 65530 GSO, grows past MAXPLEN 10 0 65546 65540 GSO with a 24 byte hop header, shrinks below MAXPLEN 65528 65532 65532 1000 with a 24 byte hop header 992 992 992 (0 means ipv6_payload_len() returns the real length.) On the forward path, with a client injecting unlabeled UDP through a router to a server, the router adds the CALIPSO option and the server delivers all datagrams (Udp6InDatagrams 5, Ip6InTruncatedPkts 0) with this patch.

02

Engine v0.9.0

Risk summary

A local attacker on a system with CALIPSO/NetLabel configured can send crafted IPv6 packets that trigger an integer wraparound in payload length calculation, causing incorrect packet processing by nf_tables, conntrack, and sch_cake. This leads to packet drops, potential firewall bypass, and possible out-of-bounds memory access in dependent subsystems.

Affectednet/ipv6/calipso.c (calipso IPv6 NetLabel)

Vulnerability analysis

The CALIPSO IPv6 option handler incorrectly updates the IPv6 payload_len field when inserting or resizing CALIPSO options on forwarded packets. For BIG TCP packets (GRO packets larger than 64KB), the kernel stores payload_len as 0 and relies on ipv6_payload_len() falling back to skb->len. The buggy code read this 0 value, added the option length delta, and wrote the result back — breaking the fallback and causing ipv6_payload_len() to return a truncated or wrapped length. The fix replaces the manual arithmetic with ipv6_set_payload_len(), which correctly encodes 0 for payloads exceeding 64KB and the true length otherwise, matching the behavior of ipv6_gro_complete(). An attacker who can inject forwarded IPv6 traffic through a CALIPSO-mapped interface (requiring only local network access on a system where an administrator has enabled CALIPSO/NetLabel) can trigger this condition, disrupting traffic processing and potentially subverting firewall or QoS decisions.

03

BranchIntroducedFixed inPatch commit
6.125.196.12.115929dc8e2c916
6.185.196.18.591c9fcfca51e3
6.65.196.6.161e29d0a00c619
7.25.197.2.138ee0e0366382
mainline5.197.38070ed578b6b
cip/6.125.196.12.117-cip35929dc8e2c916

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.117-cip35
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)