Description
In the Linux kernel, the following vulnerability has been resolved:

net: phy: sfp: free mii_bus in sfp_i2c_mdiobus_destroy

sfp_i2c_mdiobus_create() allocates the I2C MDIO bus with mdio_i2c_alloc(),
a plain (non-devm) allocation, and registers it. sfp_i2c_mdiobus_destroy()
only unregisters the bus and clears sfp->i2c_mii without calling
mdiobus_free(). As the only reference to the bus is then cleared, the
struct mii_bus is leaked.

This is hit whenever a copper/RollBall SFP module that instantiated an MDIO
bus is removed: sfp_sm_main() takes the global teardown path and calls
sfp_i2c_mdiobus_destroy(). sfp_cleanup(), on driver unbind, frees
sfp->i2c_mii directly, which is why the leak only triggered on module
hot-removal and not on unbind.

Free the bus in sfp_i2c_mdiobus_destroy() to match the allocation done in
sfp_i2c_mdiobus_create().
Published: 2026-08-15
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability occurs when a Small Form‑factor Pluggable (SFP) module removes its MDIO bus without freeing the allocated struct mii_bus. Because the bus is created with a plain allocation and the destroy function only unregisters it, the memory is leaked each time a copper or RollBall SFP module is hot‑removed. This memory‑management weakness is an instance of CWE‑772: missing release of memory after allocation. Repeated leaks can consume kernel memory, potentially destabilizing the host system and leading to a denial‑of‑service state. There is no known remote exploitation vector; the impact arises only from the physical removal of an SFP device that the driver manages.

Affected Systems

This flaw affects Linux kernel systems that load the net phy sfp driver, specifically the MDIO bus creation path used for copper/RollBall SFP modules. The fault is present in kernel versions before the fix, which introduced a free call in the driver’s destroy routine. No specific version numbers are listed in the advisory, so any kernel that implements the legacy sfp_i2c_mdiobus_create/destroy pair is potentially affected.

Risk and Exploitability

The CVSS score is 5.5, and the EPSS score is < 1%, indicating a moderate to low exploitation probability. The flaw is not catalogued by CISA KEV, further suggesting it has not been widely exploited. Since the vulnerability requires a SFP module to be physically hot‑removed, the attack surface is restricted to environments where such modules are used and removed manually or via automation. The risk is moderate: while it does not allow code execution, repeated memory leaks can degrade system performance or trigger a reboot, representing a low‑to‑medium impact on availability in vulnerable deployments.

Generated by OpenCVE AI on August 22, 2026 at 07:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a version that contains the commit fixing the MDIO bus free operation (see GRUB kernel release notes or vendor kernel update advisories).
  • If an update is not immediately possible, disable or avoid hot‑removal of SFP modules; keep the modules in a stable state or unplug them only when the system is stopped.
  • Continuously monitor kernel memory usage with tools such as vmstat or /proc/meminfo to detect abnormal memory growth that could indicate a residual leak.

Generated by OpenCVE AI on August 22, 2026 at 07:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 05:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Thu, 20 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Sat, 15 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: phy: sfp: free mii_bus in sfp_i2c_mdiobus_destroy sfp_i2c_mdiobus_create() allocates the I2C MDIO bus with mdio_i2c_alloc(), a plain (non-devm) allocation, and registers it. sfp_i2c_mdiobus_destroy() only unregisters the bus and clears sfp->i2c_mii without calling mdiobus_free(). As the only reference to the bus is then cleared, the struct mii_bus is leaked. This is hit whenever a copper/RollBall SFP module that instantiated an MDIO bus is removed: sfp_sm_main() takes the global teardown path and calls sfp_i2c_mdiobus_destroy(). sfp_cleanup(), on driver unbind, frees sfp->i2c_mii directly, which is why the leak only triggered on module hot-removal and not on unbind. Free the bus in sfp_i2c_mdiobus_destroy() to match the allocation done in sfp_i2c_mdiobus_create().
Title net: phy: sfp: free mii_bus in sfp_i2c_mdiobus_destroy
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:13:45.125Z

Reserved: 2026-08-09T03:40:39.924Z

Link: CVE-2026-72391

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:12.627

Modified: 2026-08-17T06:19:05.587

Link: CVE-2026-72391

cve-icon Redhat

Severity : Low

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72391 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T08:00:13Z

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime