Skip to content
Heist/ feed
Back to feed
UnratedFix available

net: altera-tse: fix skb leak on DMA mapping error in tse_start_xmit()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: net: altera-tse: fix skb leak on DMA mapping error in tse_start_xmit() When dma_map_single() fails in tse_start_xmit(), the function returns NETDEV_TX_OK without freeing the skb. Since NETDEV_TX_OK tells the stack the packet was consumed, the skb is never freed, leaking memory on every DMA mapping failure. Add dev_kfree_skb_any() before returning to properly free the skb.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.253, 5.15.203, 6.1.169, 6.12.82, 6.18.23, 6.19.13, 6.6.135
CVEs
CVE-2026-31658
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:14 UTC · Revision 1

Source evidence

net: altera-tse: fix skb leak on DMA mapping error in tse_start_xmit()

core-osv · Original source

Published 24 Apr 2026, 14:45 UTC

In the Linux kernel, the following vulnerability has been resolved: net: altera-tse: fix skb leak on DMA mapping error in tse_start_xmit() When dma_map_single() fails in tse_start_xmit(), the function returns NETDEV_TX_OK without freeing the skb. Since NETDEV_TX_OK tells the stack the packet was consumed, the skb is never freed, leaking memory on every DMA mapping failure. Add dev_kfree_skb_any() before returning to properly free the skb.

osv:CVE-2026-31658

Kernel

Fixed versions: 5.10.253, 5.15.203, 6.1.169, 6.6.135, 6.12.82, 6.18.23, 6.19.13

Complete source record
{
  "id": "bd1951c6f4dfcc4edd1092990dcb4eb66cbb9f8618184bbe85348e332d6d5d0a",
  "url": "https://osv.dev/vulnerability/CVE-2026-31658",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net: altera-tse: fix skb leak on DMA mapping error in tse_start_xmit()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: net: altera-tse: fix skb leak on DMA mapping error in tse_start_xmit() When dma_map_single() fails in tse_start_xmit(), the function returns NETDEV_TX_OK without freeing the skb. Since NETDEV_TX_OK tells the stack the packet was consumed, the skb is never freed, leaking memory on every DMA mapping failure. Add dev_kfree_skb_any() before returning to properly free the skb.",
    "evidence": "osv:CVE-2026-31658",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.253",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.203",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.169",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.135",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.82",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.23",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.19.13",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-31658",
      "aliases": [
        "CVE-2026-31658"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "bbd2190ce96d8fce031f0526c1f970b68adc9d1a"
                },
                {
                  "fixed": "ae2cd46f57f422b51aedd406ff5d75cbff401d5d"
                },
                {
                  "fixed": "cb1d318702fdf643061350d164250198df4116f2"
                },
                {
                  "fixed": "d5ec406f0543bd6cdfd563b08015fdec8c4d5712"
                },
                {
                  "fixed": "2eb9d67704ca8f1101f7435b85f113ede471f9f2"
                },
                {
                  "fixed": "9f3ec44aeb58501d11834048d5d0dbaeacb6d4e7"
                },
                {
                  "fixed": "60f462cd2716d86bd2174f9d5e035c9278f30480"
                },
                {
                  "fixed": "3aca300e88afe56afb000cdc4c65383014fb17f9"
                },
                {
                  "fixed": "6dede3967619b5944003227a5d09fdc21ed57d10"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31658.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.15.0"
                },
                {
                  "fixed": "5.10.253"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.203"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.169"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.135"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.82"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.23"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "6.19.13"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31658.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.305924507Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-019113.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-082556.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-457936.html",
        "https://git.kernel.org/stable/c/2eb9d67704ca8f1101f7435b85f113ede471f9f2",
        "https://git.kernel.org/stable/c/3aca300e88afe56afb000cdc4c65383014fb17f9",
        "https://git.kernel.org/stable/c/60f462cd2716d86bd2174f9d5e035c9278f30480",
        "https://git.kernel.org/stable/c/6dede3967619b5944003227a5d09fdc21ed57d10",
        "https://git.kernel.org/stable/c/9f3ec44aeb58501d11834048d5d0dbaeacb6d4e7",
        "https://git.kernel.org/stable/c/ae2cd46f57f422b51aedd406ff5d75cbff401d5d",
        "https://git.kernel.org/stable/c/cb1d318702fdf643061350d164250198df4116f2",
        "https://git.kernel.org/stable/c/d5ec406f0543bd6cdfd563b08015fdec8c4d5712",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31658.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-31658",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31658.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-31658",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 504552,
  "published_at": "2026-04-24T14:45:09.566+00:00"
}