CVE-2026-98594 PUBLISHED

tg3: clean up PHYLIB resources on probe failure

Assigner: Linux
Reserved: 25.09.2026 Published: 18.10.2026 Updated: 18.10.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 158d7abdae85e9ac43d99780c372d79c119f7626 to ce86d6929d03e6b0abcb781dfa50f9f0816bff78 (excl.)
  • affected from 158d7abdae85e9ac43d99780c372d79c119f7626 to a449eedb3b1eb5b8b1f5ed116a1bfe85eaaf81df (excl.)
  • affected from 158d7abdae85e9ac43d99780c372d79c119f7626 to 0844402326d4e48a28688f93ec6442e93bb442fa (excl.)
  • affected from 158d7abdae85e9ac43d99780c372d79c119f7626 to e766321288b507afb70d2bfef6ba443213329f79 (excl.)
  • affected from 158d7abdae85e9ac43d99780c372d79c119f7626 to d2abb0013b933d59ee441185df0eca9e8c0b33eb (excl.)
  • affected from 158d7abdae85e9ac43d99780c372d79c119f7626 to 6515c41503eef849abd2c7364f34e4bb25110f90 (excl.)
  • affected from 158d7abdae85e9ac43d99780c372d79c119f7626 to b6c0c757c65893ad7bb17e8bcf33cdd8257d7b3d (excl.)
  • affected from 158d7abdae85e9ac43d99780c372d79c119f7626 to a92e1a412c53dc0d9ad639e7abf8b3fc70a5b6ad (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 2.6.27 is affected
  • unaffected from 0 to 2.6.27 (excl.)
  • unaffected from 5.10.271 to 5.10.* (incl.)
  • unaffected from 5.15.222 to 5.15.* (incl.)
  • unaffected from 6.1.189 to 6.1.* (incl.)
  • unaffected from 6.6.158 to 6.6.* (incl.)
  • unaffected from 6.12.112 to 6.12.* (incl.)
  • unaffected from 6.18.55 to 6.18.* (incl.)
  • unaffected from 7.2.9 to 7.2.* (incl.)
  • unaffected from 7.3-rc5 to * (incl.)

References