Skip to content
Heist/ feed
High

net: stmmac: fix TX descriptor availability check for TSO traffic

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: net: stmmac: fix TX descriptor availability check for TSO traffic stmmac_tso_xmit() estimates the number of free TX descriptors required by a TSO skb as: (skb->len - proto_hdr_len) / TSO_MAX_BUFF_SIZE + 1 which assumes the payload is split into TSO_MAX_BUFF_SIZE chunks. This underestimates the descriptors actually consumed by stmmac_tso_allocator(), since each fragment is mapped individually and so it needs at least one descriptor regardless of its size. Moreover, one descriptor is used for the L2/L3/L4 headers and, when the MSS changes, one more is consumed for the MSS context descriptor. For a highly fragmented TSO skb the check can therefore pass even when the ring has too few free slots. stmmac_tso_allocator() then writes past the available descriptors, overwriting descriptors still owned by the DMA engine, corrupting the TX ring. Add stmmac_tso_get_num_desc() to compute the exact number of descriptors needed for the header, the linear payload and each fragment, plus the MSS context descriptor when required, and use it in the availability check.

Announced Group revision 1
Original source ↗

CVE-2026-97953

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-97953

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "f748be531d7012c456b97f66091d86b3675c5fef",
        "lessThan": "09c30547da2c45bb79f7d3adffc860af332c2d42",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f748be531d7012c456b97f66091d86b3675c5fef",
        "lessThan": "ffa6d2481bc1c87f822ecd626561484e4ee24cef",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f748be531d7012c456b97f66091d86b3675c5fef",
        "lessThan": "c28175220f808c867d5618de8ecc6dbcc815c773",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f748be531d7012c456b97f66091d86b3675c5fef",
        "lessThan": "65820fc743eae322f7f94f6a64d07861211d4b21",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f748be531d7012c456b97f66091d86b3675c5fef",
        "lessThan": "5e38d732ec67a5b1f9a56e6c73add480c4b6030a",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/stmicro/stmmac/stmmac_main.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.7"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.7",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.111",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.53",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.7",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/stmicro/stmmac/stmmac_main.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-97953

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#48815 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement