Skip to content
Heist/ feed
Back to feed
HighFix available

octeontx2-pf: Fix potential use after free in otx2_tc_add_flow()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: octeontx2-pf: Fix potential use after free in otx2_tc_add_flow() This code calls kfree_rcu(new_node, rcu) and then dereferences "new_node" and then dereferences it on the next line. Two lines later, we take a mutex so I don't think this is an RCU safe region. Re-order it to do the dereferences before queuing up the free.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.155, 6.12.50, 6.16.10, 6.6.109
CVEs
CVE-2025-39978
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:30 UTC · Revision 1

Source evidence

octeontx2-pf: Fix potential use after free in otx2_tc_add_flow()

core-osv · Original source

Published 15 Oct 2025, 07:55 UTC

In the Linux kernel, the following vulnerability has been resolved: octeontx2-pf: Fix potential use after free in otx2_tc_add_flow() This code calls kfree_rcu(new_node, rcu) and then dereferences "new_node" and then dereferences it on the next line. Two lines later, we take a mutex so I don't think this is an RCU safe region. Re-order it to do the dereferences before queuing up the free.

osv:CVE-2025-39978

Kernel

Fixed versions: 6.1.155, 6.6.109, 6.12.50, 6.16.10

Complete source record
{
  "id": "ef355e1bd5c7274d4b3918d314cd0913ffdaed2bf4e3617b962bd0c69021335b",
  "url": "https://osv.dev/vulnerability/CVE-2025-39978",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "octeontx2-pf: Fix potential use after free in otx2_tc_add_flow()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: octeontx2-pf: Fix potential use after free in otx2_tc_add_flow() This code calls kfree_rcu(new_node, rcu) and then dereferences \"new_node\" and then dereferences it on the next line. Two lines later, we take a mutex so I don't think this is an RCU safe region. Re-order it to do the dereferences before queuing up the free.",
    "evidence": "osv:CVE-2025-39978",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.155",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.109",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.50",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.16.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-39978",
      "aliases": [
        "CVE-2025-39978"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "68fbff68dbea35f9e6f7649dd22fce492a5aedac"
                },
                {
                  "fixed": "5723120423a753a220b8b2954b273838b9d7e74a"
                },
                {
                  "fixed": "df2c071061ed52d2225d97b212d27ecedf456b8a"
                },
                {
                  "fixed": "c41b2941a024d4ec7c768e16ffb10a74b188fced"
                },
                {
                  "fixed": "a8a63f27c3a8a3714210d32b12fd0f16d0337414"
                },
                {
                  "fixed": "d9c70e93ec5988ab07ad2a92d9f9d12867f02c56"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39978.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.14.0"
                },
                {
                  "fixed": "6.1.155"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.109"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.50"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.16.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39978.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.363072183Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-019113.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-457936.html",
        "https://git.kernel.org/stable/c/5723120423a753a220b8b2954b273838b9d7e74a",
        "https://git.kernel.org/stable/c/a8a63f27c3a8a3714210d32b12fd0f16d0337414",
        "https://git.kernel.org/stable/c/c41b2941a024d4ec7c768e16ffb10a74b188fced",
        "https://git.kernel.org/stable/c/d9c70e93ec5988ab07ad2a92d9f9d12867f02c56",
        "https://git.kernel.org/stable/c/df2c071061ed52d2225d97b212d27ecedf456b8a",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39978.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-39978",
        "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/2025/39xxx/CVE-2025-39978.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-39978",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 497353,
  "published_at": "2025-10-15T07:55:58.949+00:00"
}