HIGH Introduced in 5.6
xfrm ESPinTCP OOB
CVE-2026-98417
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: net: xfrm: reject unrepresentable espintcp transport headers ESP-in-TCP can hand xfrm packets whose transport header offset no longer fits after the stream parser trims the TCP envelope. The plain transport header reset truncates that offset and triggers the skb warning path. Use the careful transport-header helper and drop the skb through the existing XFRM error path when the offset cannot be represented.
02KernelScan AI Analysis
Risk summary
An unauthenticated remote attacker can send crafted ESP-in-TCP packets that cause the kernel to read beyond the packet buffer, triggering a kernel warning and packet drop. This results in a denial of service for IPsec-over-TCP connections. No privilege escalation or information leak is possible.
Vulnerability analysis
The ESP-in-TCP stream parser trims the TCP envelope from received packets before handing them to the XFRM layer. In certain cases, the resulting transport header offset no longer fits within the skb's representable range. The original code unconditionally reset the transport header, which truncated the offset and triggered a kernel warning path. The fix replaces the unconditional reset with a careful helper that validates the offset first; if the offset cannot be represented, the packet is dropped through the existing XFRM error path instead of triggering a warning. This vulnerability is reachable from the network by any peer capable of sending ESP-in-TCP traffic (RFC 8229) to a host with the feature enabled. No authentication or local access is required.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 5.6 | 5.10.271 | d37a5b87577c |
| 5.15 | 5.6 | 5.15.222 | 6c29681207bc |
| 6.1 | 5.6 | 6.1.189 | 4a8243fd2e21 |
| 6.12 | 5.6 | 6.12.112 | 327b2a457dd7 |
| 6.18 | 5.6 | 6.18.54 | cce630c75127 |
| 6.6 | 5.6 | 6.6.158 | b2b84e73e038 |
| 7.2 | 5.6 | 7.2.8 | 206f396f4614 |
| mainline | 5.6 | 7.3 | 96f01b53c2d0 |
| cip/5.10 | 5.6 | 5.10.271-cip78 | d37a5b87577c |
| cip/5.10-rt | 5.6 | 5.10.272-cip79-rt35 | d37a5b87577c |
| cip/6.1 | 5.6 | 6.1.189-cip61 | 4a8243fd2e21 |
| cip/6.1-rt | 5.6 | 6.1.189-cip61-rt32 | 4a8243fd2e21 |
| cip/6.12 | 5.6 | 6.12.112-cip33 | 327b2a457dd7 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |