CVE-2026-98594

tg3: clean up PHYLIB resources on probe failure

Published Oct 18, 2026 CVSS 3.1 · 1.9 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

During initialization, the tg3 network driver registers an MDIO bus and connects a PHY when the USE_PHYLIB flag is enabled. If the subsequent probe fails, the error path releases device mappings and the network device but fails to unregister the MDIO bus and disconnect the PHY. This leaves underlying PHYLIB resources allocated, which can cause further probe attempts to fail, degrade device availability, and may ultimately exhaust kernel resources. The flaw arises from improper resource cleanup and is related to CWE-772.

Affected Systems

Any Linux kernel distribution that includes the tg3 driver used on hardware requiring PHYLIB support. The vulnerability applies to all kernel versions that compile tg3 with the USE_PHYLIB option enabled, regardless of distribution or minor release.

Risk and Exploitability

The CVSS score of 1.9 and EPSS <1% classify this as low severity. Because the flaw appears only when the tg3 driver is probed, the likely attack vector is local interaction with the host system that initiates the driver load; this inference is drawn from the driver-level registration behavior described in the fix. The vulnerability is not listed in CISA KEV. An attacker who can repeatedly trigger probe failures could cause local denial of service by exhausting PHYLIB resources, but this remains limited to environments where the driver is frequently loaded under failure conditions. The risk is therefore modest and largely contingent on the exposure of the driver to local fault conditions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the tg3 driver patch to correctly unregister MDIO and PHY resources.
  • Disable the tg3 driver or its PHYLIB interface on affected hardware if an immediate kernel upgrade is not possible.
  • Monitor system logs for MDIO or PHY registration anomalies and check resource usage to detect lingering allocations.

Generated by OpenCVE AI on October 22, 2026 at 21:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9022-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9023-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9029-1 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-9039-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9183-1 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-399
CWE-401
Type Values Removed Values Added
Weaknesses CWE-399
CWE-401
CWE-772
Type Values Removed Values Added
Description 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.
Title tg3: clean up PHYLIB resources on probe failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:22 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Oct 19, 2026, 10:19 AM
Severity
Low
Public date
Oct 18, 2026, 12:00 AM