KernelScan.io

HIGH Introduced in 4.13

stmmac TsoHeader Truncation

CVE-2026-98288

CVSS 7.0 / 10.0 KernelScan AI

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

01

In the Linux kernel, the following vulnerability has been resolved: net: stmmac: fix TSO header length truncation stmmac_tso_xmit() stores the protocol header length returned by stmmac_tso_header_size() in a u8. stmmac_tso_valid_packet() admits headers up to 1023 bytes, so a header longer than 255 bytes wraps modulo 256 (486 becomes 230, 256 becomes 0). A TCP over IPv6 socket carrying a few hundred bytes of sticky destination/hop-by-hop options makes skb_tcp_all_headers() exceed 255 while staying below the 1023-byte limit, so such an skb reaches stmmac_tso_xmit(). Widen proto_hdr_len to unsigned int, which is sufficient since the value is bounded by the hardware limit, and adjust the debug print specifier accordingly.

02

Engine v0.7.0

Risk summary

An unprivileged local user on a device with a stmmac Ethernet interface can trigger an integer truncation in the kernel's TSO transmit path by sending TCP over IPv6 traffic with large extension headers. This could lead to kernel memory disclosure over the network, data corruption, or a system crash.

Affecteddrivers/net/ethernet/stmicro/stmmac/stmmac_main.c (stmmac Ethernet driver)

Vulnerability analysis

The stmmac Ethernet driver's TCP Segmentation Offload transmit path stores the combined protocol header length in a byte-sized variable, so headers longer than 255 bytes wrap around modulo 256 — a 486-byte header becomes 230, a 256-byte header becomes zero. When this truncated value is used to program the DMA engine, the hardware reads packet data at wrong offsets, which can corrupt outgoing traffic or cause the kernel to crash. A local user without special privileges can trigger this by opening a TCP over IPv6 socket, attaching a few hundred bytes of sticky hop-by-hop or destination extension headers, and sending data out through a stmmac network interface. The fix widens the variable to an unsigned int so the full hardware-supported range up to 1023 bytes is preserved.

03

BranchIntroducedFixed inPatch commit
7.24.137.2.8bcf6013c2b4d
mainline4.137.315989abd74f1

04

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

CIP treeState
cip/6.12Affected — no CIP fix yet (latest 6.12.114-cip34)
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)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)