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

CVE-2026-97953: Linux Kernel STMMAC Buffer Overflow Vulnerability

CVE-2026-97953 is a buffer overflow flaw in the Linux kernel STMMAC network driver that causes TX ring corruption through incorrect descriptor calculations. This article covers technical details, affected versions, impact, and mitigation.

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-97953 Overview

CVE-2026-97953 is a Linux kernel vulnerability in the stmmac Ethernet driver. The flaw affects the TCP Segmentation Offload (TSO) transmit path in stmmac_tso_xmit(). The driver underestimates the number of free TX descriptors required for highly fragmented TSO skbs. When the availability check passes incorrectly, stmmac_tso_allocator() writes past the available descriptors and corrupts entries still owned by the DMA engine. The resulting TX ring corruption can disrupt network traffic on affected systems using STMicroelectronics MAC hardware.

Critical Impact

TX ring corruption in the stmmac driver can cause denial of service on network interfaces, impacting availability of systems that rely on STMMAC Ethernet controllers.

Affected Products

  • Linux kernel versions containing the vulnerable stmmac_tso_xmit() descriptor accounting logic
  • Systems using the STMicroelectronics MAC (stmmac) Ethernet driver
  • Embedded platforms and SoCs that rely on stmmac for networking

Discovery Timeline

  • 2026-09-25 - CVE-2026-97953 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97953

Vulnerability Analysis

The vulnerability resides in the stmmac_tso_xmit() function of the Linux kernel's STMicroelectronics Ethernet driver. The function estimates descriptor requirements for a TSO skb using the formula (skb->len - proto_hdr_len) / TSO_MAX_BUFF_SIZE + 1. This calculation assumes the payload is split uniformly into TSO_MAX_BUFF_SIZE chunks.

In practice, stmmac_tso_allocator() consumes more descriptors than this estimate predicts. Each skb fragment is mapped individually and requires at least one descriptor regardless of its size. An additional descriptor is used for the L2, L3, and L4 headers. When the Maximum Segment Size (MSS) changes, another descriptor is consumed for the MSS context descriptor.

For a highly fragmented TSO skb, the availability check can succeed when the ring actually has too few free slots. The allocator then writes past the available descriptors and overwrites entries still owned by the DMA engine, corrupting the TX ring.

Root Cause

The root cause is an incorrect descriptor accounting algorithm. The estimation formula treats the payload as a single contiguous block divided into fixed-size chunks. It ignores per-fragment mappings, the header descriptor, and the MSS context descriptor. This mismatch between estimated and actual descriptor consumption classifies the issue as a boundary condition error leading to out-of-bounds writes against the TX descriptor ring.

Attack Vector

Exploitation requires network conditions that produce highly fragmented TSO skbs transmitted through a stmmac-driven interface. An adjacent or remote source generating specific traffic patterns can force the ring into the vulnerable state. Successful triggering corrupts descriptors owned by the DMA engine and typically manifests as interface hangs, dropped traffic, or kernel errors affecting availability.

The fix introduces stmmac_tso_get_num_desc() to compute the exact number of descriptors required for the header, the linear payload, each fragment, and the MSS context descriptor when needed. The availability check then uses this precise count.

Detection Methods for CVE-2026-97953

Indicators of Compromise

  • Kernel log messages referencing stmmac TX hangs, DMA errors, or descriptor inconsistencies
  • Unexpected network interface resets or TX queue timeouts on interfaces served by the stmmac driver
  • Packet loss or interface stalls correlating with high-throughput TSO traffic bursts

Detection Strategies

  • Inventory Linux hosts and embedded devices using the stmmac driver and compare kernel versions against patched commits
  • Monitor dmesg and journalctl output for stmmac-tagged warnings, DMA errors, and TX watchdog messages
  • Correlate network interface statistics (TX errors, dropped frames, resets) with workloads producing fragmented TSO traffic

Monitoring Recommendations

  • Collect kernel logs centrally and alert on stmmac driver error patterns
  • Track ethtool -S counters on affected interfaces for anomalous TX error and reset trends
  • Baseline network availability metrics on embedded and SoC platforms using STMMAC controllers

How to Mitigate CVE-2026-97953

Immediate Actions Required

  • Identify all systems running kernels with the vulnerable stmmac_tso_xmit() logic
  • Apply the upstream Linux kernel patches that introduce stmmac_tso_get_num_desc() for accurate descriptor accounting
  • Prioritize patching on embedded and SoC devices where stmmac is the primary network interface

Patch Information

The fix is available in upstream Linux kernel stable commits. Review and apply the relevant patches: Kernel Git Commit 5e38d73, Kernel Git Commit 65820fc, Kernel Git Commit c281752, and Kernel Git Commit ffa6d24. Rebuild and redeploy affected kernels after validating the patch applies cleanly to the target branch.

Workarounds

  • Disable TCP Segmentation Offload on affected interfaces using ethtool -K <iface> tso off to avoid the vulnerable code path
  • Reduce exposure to highly fragmented TSO traffic by tuning MTU and application-level segmentation where feasible
  • Restart the interface or driver module if TX ring corruption is suspected, pending patch deployment
bash
# Disable TSO on the affected stmmac interface as a temporary workaround
sudo ethtool -K eth0 tso off
sudo 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.