{
  "id": "CVE-2025-39978",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39978",
  "published_at": "2025-10-15T07:55:58.949Z",
  "title": "octeontx2-pf: Fix potential use after free in otx2_tc_add_flow()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nocteontx2-pf: Fix potential use after free in otx2_tc_add_flow()\n\nThis code calls kfree_rcu(new_node, rcu) and then dereferences \"new_node\"\nand then dereferences it on the next line.  Two lines later, we take\na mutex so I don't think this is an RCU safe region.  Re-order it to do\nthe dereferences before queuing up the free.",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 68fbff68dbea35f9e6f7649dd22fce492a5aedac, \u003c 5723120423a753a220b8b2954b273838b9d7e74a",
          "\u003e= 68fbff68dbea35f9e6f7649dd22fce492a5aedac, \u003c df2c071061ed52d2225d97b212d27ecedf456b8a",
          "\u003e= 68fbff68dbea35f9e6f7649dd22fce492a5aedac, \u003c c41b2941a024d4ec7c768e16ffb10a74b188fced",
          "\u003e= 68fbff68dbea35f9e6f7649dd22fce492a5aedac, \u003c a8a63f27c3a8a3714210d32b12fd0f16d0337414",
          "\u003e= 68fbff68dbea35f9e6f7649dd22fce492a5aedac, \u003c d9c70e93ec5988ab07ad2a92d9f9d12867f02c56"
        ],
        "fixed_in": [
          "5723120423a753a220b8b2954b273838b9d7e74a",
          "df2c071061ed52d2225d97b212d27ecedf456b8a",
          "c41b2941a024d4ec7c768e16ffb10a74b188fced",
          "a8a63f27c3a8a3714210d32b12fd0f16d0337414",
          "d9c70e93ec5988ab07ad2a92d9f9d12867f02c56"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.14"
        ],
        "fixed_in": [
          "0",
          "6.1.155",
          "6.6.109",
          "6.12.50",
          "6.16.10",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 5723120423a753a220b8b2954b273838b9d7e74a or df2c071061ed52d2225d97b212d27ecedf456b8a or c41b2941a024d4ec7c768e16ffb10a74b188fced or a8a63f27c3a8a3714210d32b12fd0f16d0337414 or d9c70e93ec5988ab07ad2a92d9f9d12867f02c56 or later.",
      "Upgrade Linux to 0 or 6.1.155 or 6.6.109 or 6.12.50 or 6.16.10 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
