Skip to main content
Vulnerability Database/CVE-2026-98288

CVE-2026-98288: Linux Kernel Buffer Overflow Vulnerability

CVE-2026-98288 is a buffer overflow flaw in the Linux kernel network driver that causes TSO header length truncation in certain network configurations. This article covers technical details, impact, and fixes.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98288 Overview

CVE-2026-98288 is a numeric truncation vulnerability in the Linux kernel's stmmac network driver. The flaw resides in stmmac_tso_xmit(), which stores the protocol header length returned by stmmac_tso_header_size() in an 8-bit unsigned integer. Because stmmac_tso_valid_packet() accepts headers up to 1023 bytes, any header exceeding 255 bytes wraps modulo 256. A header of 486 bytes becomes 230, and a 256-byte header becomes 0. The condition is reachable through a TCP over IPv6 socket carrying sticky destination or hop-by-hop options, causing skb_tcp_all_headers() to exceed 255 bytes while remaining below the 1023-byte driver limit.

Critical Impact

Transmitted TSO packets can be constructed with a truncated header length value, leading to malformed descriptors, packet corruption, or potential denial of service on devices using the stmmac Ethernet driver.

Affected Products

  • Linux kernel versions containing the stmmac TSO transmit path prior to the fix in commits 15989abd74f1 and bcf6013c2b4d
  • Systems using Synopsys DesignWare Ethernet MAC (stmmac driver) hardware
  • Platforms with IPv6 enabled where applications can set sticky destination or hop-by-hop options

Discovery Timeline

  • 2026-10-06 - CVE-2026-98288 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98288

Vulnerability Analysis

The vulnerability is a numeric truncation error [CWE-197] in the Linux kernel's TCP Segmentation Offload (TSO) transmit path for the stmmac driver. The driver computes the total protocol header length through stmmac_tso_header_size() and stores the result in a u8 variable named proto_hdr_len. The surrounding validation in stmmac_tso_valid_packet() permits header lengths up to 1023 bytes, creating a mismatch between the validator and the storage type.

When a header exceeds 255 bytes, the u8 assignment silently wraps modulo 256. A 486-byte header is stored as 230, and a 256-byte header becomes 0. The driver then programs TSO descriptors using this truncated value, which no longer corresponds to the actual header length in the socket buffer. The hardware subsequently builds segments with incorrect header boundaries.

The upstream fix widens proto_hdr_len to unsigned int, which safely accommodates the 1023-byte hardware limit, and adjusts the debug print specifier accordingly.

Root Cause

The root cause is an undersized integer type used to hold a value whose maximum is bounded by a larger validator. The validator accepts up to 1023 bytes, but the storage variable can only represent 0–255. There is no explicit range check between the two code paths, so values above 255 wrap without warning.

Attack Vector

A local user with the ability to open a TCP over IPv6 socket can attach sticky IPv6 destination options or hop-by-hop options sufficient to push skb_tcp_all_headers() above 255 bytes while staying under 1023 bytes. The resulting skb reaches stmmac_tso_xmit(), where the truncated header length is written into TSO descriptors. The vulnerability requires traffic to egress through a stmmac-driven interface.

The EPSS score for this issue is 0.162% at the 4.874 percentile, consistent with a locally triggered driver bug rather than a remotely weaponizable flaw. See the upstream commits 15989abd74f1 and bcf6013c2b4d for the full patch context.

Detection Methods for CVE-2026-98288

Indicators of Compromise

  • Kernel log entries from the stmmac driver showing unexpected proto_hdr_len debug values near zero or small positive numbers when IPv6 traffic with extension headers is active
  • Transmit errors, TX ring stalls, or NIC resets on interfaces using the Synopsys DWMAC family
  • Packet captures showing malformed TCP segments or truncated headers egressing from affected systems

Detection Strategies

  • Inventory systems running kernels that include the stmmac driver and verify whether the fix commits 15989abd74f1 or bcf6013c2b4d are present
  • Monitor /proc/net/dev and ethtool -S counters for sudden spikes in TX errors or dropped frames on stmmac interfaces
  • Correlate kernel ring buffer messages referencing stmmac_tso_xmit with IPv6 traffic flows that use extension headers

Monitoring Recommendations

  • Enable kernel audit logging and forward dmesg output to a centralized log store for anomaly review
  • Baseline normal TX descriptor behavior on embedded and industrial platforms that commonly use stmmac hardware
  • Alert on repeated interface resets or TSO offload disable events, which may indicate driver instability

How to Mitigate CVE-2026-98288

Immediate Actions Required

  • Apply the upstream Linux kernel patches from commits 15989abd74f1 and bcf6013c2b4d
  • Identify all systems using the Synopsys DWMAC Ethernet controller and prioritize their patching, especially embedded, automotive, and industrial deployments
  • Track distribution advisories for stable kernel series and schedule rolling reboots once backports are available

Patch Information

The fix widens the proto_hdr_len local variable in stmmac_tso_xmit() from u8 to unsigned int, matching the 1023-byte limit enforced by stmmac_tso_valid_packet(). The corresponding debug print format specifier is updated. Review the Kernel Git Commit 15989ab and Kernel Git Commit bcf6013 for the exact changes to the mainline and stable trees.

Workarounds

  • Disable TSO on affected interfaces using ethtool -K <iface> tso off as a temporary mitigation until the patched kernel is deployed
  • Restrict or filter use of IPv6 extension headers from untrusted local users via policy or seccomp where feasible
  • Where supported, prefer alternative NIC hardware for high-risk workloads until the kernel update is validated
bash
# Temporarily disable TCP segmentation offload on the affected interface
sudo ethtool -K eth0 tso off

# Confirm the setting
ethtool -k eth0 | grep tcp-segmentation-offload

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.