Skip to content
Heist/ feed
Back to feed
UnratedFix available

tg3: clean up PHYLIB resources on probe failure

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: tg3: clean up PHYLIB resources on probe failure tg3_get_invariants() can register an MDIO bus and connect a PHY for USE_PHYLIB devices. If tg3_init_one() later fails, its common error path releases the mappings and netdev without undoing those PHYLIB resources. Disconnect the PHY and unregister the MDIO bus before the remaining teardown. Guard PHY cleanup with USE_PHYLIB to match tg3_phy_init(), and call tg3_mdio_fini() unconditionally to match tg3_mdio_init(). The existing IS_CONNECTED and MDIOBUS_INITED flags make both helpers safe when initialization only completed partially. This issue was identified during our ongoing static-analysis research while reviewing kernel code.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.271, 5.15.222, 6.1.189, 6.12.112, 6.18.55, 6.6.158, 7.2.9
CVEs
CVE-2026-98594
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 03:03 UTC · Revision 1

Source evidence

tg3: clean up PHYLIB resources on probe failure

core-osv · Original source

Published 18 Oct 2026, 15:19 UTC

In the Linux kernel, the following vulnerability has been resolved: tg3: clean up PHYLIB resources on probe failure tg3_get_invariants() can register an MDIO bus and connect a PHY for USE_PHYLIB devices. If tg3_init_one() later fails, its common error path releases the mappings and netdev without undoing those PHYLIB resources. Disconnect the PHY and unregister the MDIO bus before the remaining teardown. Guard PHY cleanup with USE_PHYLIB to match tg3_phy_init(), and call tg3_mdio_fini() unconditionally to match tg3_mdio_init(). The existing IS_CONNECTED and MDIOBUS_INITED flags make both helpers safe when initialization only completed partially. This issue was identified during our ongoing static-analysis research while reviewing kernel code.

osv:CVE-2026-98594

Kernel

Fixed versions: 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.55, 7.2.9

Complete source record
{
  "id": "2780d3eca4b8e57bf6e851eafc519d585af50b2f3f7b7ca7bb8bb44305889593",
  "url": "https://osv.dev/vulnerability/CVE-2026-98594",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "tg3: clean up PHYLIB resources on probe failure",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: tg3: clean up PHYLIB resources on probe failure tg3_get_invariants() can register an MDIO bus and connect a PHY for USE_PHYLIB devices. If tg3_init_one() later fails, its common error path releases the mappings and netdev without undoing those PHYLIB resources. Disconnect the PHY and unregister the MDIO bus before the remaining teardown. Guard PHY cleanup with USE_PHYLIB to match tg3_phy_init(), and call tg3_mdio_fini() unconditionally to match tg3_mdio_init(). The existing IS_CONNECTED and MDIOBUS_INITED flags make both helpers safe when initialization only completed partially. This issue was identified during our ongoing static-analysis research while reviewing kernel code.",
    "evidence": "osv:CVE-2026-98594",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.271",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.222",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.189",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.158",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.112",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.55",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.9",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-98594",
      "aliases": [
        "CVE-2026-98594"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "158d7abdae85e9ac43d99780c372d79c119f7626"
                },
                {
                  "fixed": "ce86d6929d03e6b0abcb781dfa50f9f0816bff78"
                },
                {
                  "fixed": "a449eedb3b1eb5b8b1f5ed116a1bfe85eaaf81df"
                },
                {
                  "fixed": "0844402326d4e48a28688f93ec6442e93bb442fa"
                },
                {
                  "fixed": "e766321288b507afb70d2bfef6ba443213329f79"
                },
                {
                  "fixed": "d2abb0013b933d59ee441185df0eca9e8c0b33eb"
                },
                {
                  "fixed": "6515c41503eef849abd2c7364f34e4bb25110f90"
                },
                {
                  "fixed": "b6c0c757c65893ad7bb17e8bcf33cdd8257d7b3d"
                },
                {
                  "fixed": "a92e1a412c53dc0d9ad639e7abf8b3fc70a5b6ad"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98594.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.27"
                },
                {
                  "fixed": "5.10.271"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.222"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.189"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.158"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.112"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.55"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.2.9"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98594.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.345819790Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0844402326d4e48a28688f93ec6442e93bb442fa",
        "https://git.kernel.org/stable/c/6515c41503eef849abd2c7364f34e4bb25110f90",
        "https://git.kernel.org/stable/c/a449eedb3b1eb5b8b1f5ed116a1bfe85eaaf81df",
        "https://git.kernel.org/stable/c/a92e1a412c53dc0d9ad639e7abf8b3fc70a5b6ad",
        "https://git.kernel.org/stable/c/b6c0c757c65893ad7bb17e8bcf33cdd8257d7b3d",
        "https://git.kernel.org/stable/c/ce86d6929d03e6b0abcb781dfa50f9f0816bff78",
        "https://git.kernel.org/stable/c/d2abb0013b933d59ee441185df0eca9e8c0b33eb",
        "https://git.kernel.org/stable/c/e766321288b507afb70d2bfef6ba443213329f79",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98594.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-98594",
        "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/98xxx/CVE-2026-98594.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-98594",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 492105,
  "published_at": "2026-10-18T15:19:06.696+00:00"
}